-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (23 loc) · 856 Bytes
/
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
#!/usr/bin/env python3
"""Configure all the PEX."""
import os
import setuptools # type: ignore
def _read_reqs(relpath):
fullpath = os.path.join(os.path.dirname(__file__), relpath)
with open(fullpath, encoding="utf-8") as open_file:
return [s.strip() for s in open_file.readlines() if (s.strip() and not s.startswith("#"))]
_INSTALL_REQUIRES = []
_REQUIREMENTS_FILES = ["requirements/base.txt"]
for req in _REQUIREMENTS_FILES:
_REQUIREMENTS_TXT = _read_reqs(req)
_INSTALL_REQUIRES.extend(list(_REQUIREMENTS_TXT))
setuptools.setup(
name="app",
version="0.1",
include_package_data=True,
install_requires=_INSTALL_REQUIRES,
tests_require=_read_reqs("requirements/tests.txt"),
dependency_links=[],
entry_points={"console_scripts": ["app = app.main:main"]},
packages=setuptools.find_packages(),
)