-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
executable file
·74 lines (64 loc) · 2.84 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
73
74
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Base setup stuff for packaging of scap. Version numbers, authors, all that
jazz
Copyright © 2014-2017 Wikimedia Foundation and Contributors.
This file is part of Scap.
Scap is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import os.path
from setuptools import setup
AUTHORS = [
("Antoine Musso", "[email protected]"),
("Bryan Davis", "[email protected]"),
("Chad Horohoe", "[email protected]"),
("Dan Duvall", "[email protected]"),
("Giuseppe Lavagetto", "[email protected]"),
("Mukunda Modell", "[email protected]"),
("Ori Livneh", "[email protected]"),
("Tyler Cipriani", "[email protected]"),
("Ahmon Dancy", "[email protected]"),
("Jaime Nuche", "[email protected]"),
]
# Read version from file shared with the module using technique from
# https://python-packaging-user-guide.readthedocs.io/en/latest/single_source_version/
VERSION = {}
FILENAME = os.path.join(os.path.dirname(__file__), "scap", "version.py")
# pylint complains about exec, but that's exactly what we want here
# pylint: disable=W0122
exec(compile(open(FILENAME, "rb").read(), FILENAME, "exec"), VERSION)
setup(
name="Scap",
version=VERSION["__version__"],
description="Deployment toolchain for Wikimedia projects",
long_description=open("README.rst", "rb").read().decode("UTF8"),
python_requires=">=3.7",
author=", ".join([name for name, _ in AUTHORS]),
author_email=", ".join([email for _, email in AUTHORS]),
license="GNU GPLv3",
maintainer="Wikimedia Foundation Release Engineering",
maintainer_email="[email protected]",
url="https://gitlab.wikimedia.org/repos/releng/scap",
packages=["scap", "scap.spiderpig", "web.dist", "web.dist.assets"],
include_package_data=True,
scripts=["bin/scap", "bin/install_local_version.sh"],
install_requires=[line.strip() for line in open("requirements.txt")],
keywords=["deploy", "deployment", "scap", "scap2", "scap3"],
classifiers=[
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
],
options={"bdist_wheel": {"python_tag": "py37"}},
)