forked from ForensicArtifacts/artifacts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·61 lines (51 loc) · 1.8 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Installation and deployment script."""
import glob
import os
import sys
try:
from setuptools import find_packages, setup, Command
except ImportError:
from distutils.core import find_packages, setup, Command
# Change PYTHONPATH to include artifacts so that we can get the version.
sys.path.insert(0, '.')
import artifacts
artifacts_version = artifacts.__version__
# Command bdist_msi does not support the library version, neither a date
# as a version but if we suffix it with .1 everything is fine.
if 'bdist_msi' in sys.argv:
artifacts_version = '{0:s}.1'.format(artifacts_version)
artifacts_description = (
'ForensicArtifacts.com Artifact Repository.')
artifacts_long_description = (
'A free, community-sourced, machine-readable knowledge base of forensic '
'artifacts that the world can use both as an information source and '
'within other tools.')
setup(
name='artifacts',
version=artifacts_version,
description=artifacts_description,
long_description=artifacts_long_description,
license='Apache License, Version 2.0',
url='https://github.com/ForensicArtifacts/artifacts',
maintainer='The ForensicArtifacts.com Artifact Repository project',
scripts=[
os.path.join('tools', 'validator.py'),
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
packages=find_packages('.', exclude=[u'tests', u'tests.*', u'tools']),
package_dir={'artifacts': 'artifacts'},
data_files=[
('share/artifacts', glob.glob(os.path.join('definitions', '*'))),
],
install_requires=[
'PyYAML >= 3.11',
],
)