-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
63 lines (59 loc) · 1.81 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
62
63
import os
import re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
def read_version():
version_file_path = os.path.join(here, 'src', 'xmonkey_curator', '__version__.py')
with open(version_file_path, encoding='utf-8') as f:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
with open("README", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name='xmonkey-curator',
version=read_version(),
description="Automated OSS curation scanner",
long_description=long_description,
long_description_content_type='text/x-rst',
author="Oscar Valenzuela",
author_email="[email protected]",
url='https://github.com/Xpertians/xmonkey-curator',
license='Apache 2.0',
package_dir={'': 'src'},
packages=find_packages(where='src'),
install_requires=[
'click>=7.0',
'lief>=0.11.5',
'python-magic',
'libmagic',
'pygments',
'ssdeep',
'tqdm',
'rpmfile',
'zstandard',
'requests',
'oslili',
'tabulate',
],
extras_require={
'test': ['pytest'],
},
entry_points={
'console_scripts': [
'xmonkey-curator=xmonkey_curator.scanner:cli',
],
},
include_package_data=True,
package_data={
'xmonkey_curator': ['signatures/*.json', 'licenses/*.json', 'rules/*.json'],
},
test_suite="tests",
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
],
python_requires='>=3.6',
)