-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (36 loc) · 1.22 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
"""setup.py install runs this file"""
import distutils.command.build_py as orig
import os
from setuptools import find_packages, setup
NAME = "src"
VERSION_REQUIREMENT = 3.7
with open("requirements.txt", "r") as f:
REQUIREMENTS = f.read().split("\n")
with open("test-requirements.txt", "r") as f:
TEST_REQUIREMENTS = f.read().split("\n")
def package_files(package, directory):
paths = []
for (path, _, filenames) in os.walk(os.path.join(package, directory)):
for filename in filenames:
paths.append(os.path.join(path, filename))
return paths
if __name__ == "__main__":
setup(
name=NAME,
version="1.0.0",
maintainer="0xfMissingNo.",
maintainer_email="[email protected]",
description="Uatu",
url="[email protected]:0xfMissingNo/Uatu.git",
package_dir={"": NAME},
packages=find_packages(NAME, exclude=["tests*"]),
python_requires=">={}".format(VERSION_REQUIREMENT),
install_requires=REQUIREMENTS + TEST_REQUIREMENTS,
package_data={NAME: package_files(NAME, ".")},
cmdclass={
"build_py": orig.build_py
},
entry_points={
"console_scripts": []
}
)