-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
50 lines (41 loc) · 1.25 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
from pathlib import Path
from setuptools import find_packages, setup
# Variables
ROOT_DIR = Path(__file__).parent
with (ROOT_DIR / ".version").open() as f:
VERSION = f.read().strip()
with (ROOT_DIR / "README.md").open() as f:
README = f.read().strip()
# PyPi Information
PACKAGE = {
"name": "conreq",
"version": VERSION,
"packages": find_packages(str(ROOT_DIR)),
"description": "",
"long_description": README,
"long_description_content_type": "text/markdown",
"author": "Archmonger",
"author_email": "[email protected]",
"url": "https://github.com/Archmonger/Conreq",
"license": "GPLv3",
"include_package_data": True,
"zip_safe": False,
"classifiers": [
"Environment :: Web Environment",
"Programming Language :: Python",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: Internet :: WWW/HTTP",
],
}
# Requirements
requirements = []
with (ROOT_DIR / "requirements" / "main.txt").open() as f:
requirements.extend(
line
for line in map(str.strip, f)
if not line.startswith("#") and not line.startswith("git+")
)
PACKAGE["install_requires"] = requirements
# Install
if __name__ == "__main__":
setup(**PACKAGE)