forked from nix-community/vulnix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
70 lines (63 loc) · 1.98 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
64
65
66
67
68
69
70
# This should be only one line. If it must be multi-line, indent the second
# line onwards to keep the PKG-INFO file format intact.
"""Scans a Nix store for derivations that are affected by vulnerabilities."""
from setuptools import setup, find_packages
import os.path
def project_path(*names):
return os.path.join(os.path.dirname(__file__), *names)
with open(project_path('VERSION')) as f:
version = f.read().strip()
long_description = []
for rst in ['README.rst', 'HACKING.rst', 'CHANGES.rst']:
with open(project_path(rst)) as f:
long_description.append(f.read())
setup(
name='vulnix',
version=version,
install_requires=[
'click==6.7',
'colorama==0.3.9',
'lxml==3.8.0',
'pyyaml==3.12',
'requests==2.18.3',
'ZODB==5.2.4',
],
extras_require={
'test': [
'pytest>=3.2',
'pytest-catchlog>=1.2',
'pytest-cov>=2.5',
'pytest-runner>=2.11,<3dev',
'pytest-timeout>=1.2',
'setuptools_scm>=1.15',
],
},
entry_points="""
[console_scripts]
vulnix = vulnix.main:main
""",
author='Flying Circus Internet Operations GmbH',
author_email='[email protected]',
license='BSD-3-Clause',
url='https://github.com/flyingcircusio/vulnix',
keywords='security',
classifiers="""\
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: System Administrators
License :: OSI Approved :: BSD License
Operating System :: POSIX
Programming Language :: Python
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Topic :: System :: Systems Administration
"""[:-1].split('\n'),
description=__doc__.strip(),
long_description='\n\n'.join(long_description),
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
zip_safe=False
)