-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
setup.py
72 lines (64 loc) · 1.94 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
71
72
"""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',
'pyyaml>=5,<7',
'requests>=2.18',
'toml>=0.9',
'ZODB>=5.4',
'zodbpickle>=2',
],
extras_require={
'test': [
'freezegun>0.3',
'pytest>=3.2',
'pytest-cov>=2.7',
'pytest-flake8',
'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,nixos,nixpkgs,cve,nvd',
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.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
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
)