-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
setup.py
69 lines (60 loc) · 1.85 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
"""Scans a Nix store for derivations that are affected by vulnerabilities."""
import os.path
from setuptools import find_packages, setup
def project_path(*names):
return os.path.join(os.path.dirname(__file__), *names)
with open(project_path("VERSION"), encoding="utf-8") as f:
version = f.read().strip()
long_description = []
for rst in ["README.rst", "HACKING.rst", "CHANGES.rst"]:
with open(project_path(rst), encoding="utf-8") as f:
long_description.append(f.read())
setup(
name="vulnix",
version=version,
install_requires=[
"click>=6.7",
"pyyaml>=5",
"requests>=2.18",
"toml>=0.9",
"ZODB>=5.4",
"zodbpickle>=2",
],
extras_require={
"test": [
"freezegun>0.3",
"pytest>=3.2",
"pytest-cov>=2.7",
"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,
)