forked from salvaba94/AutoTor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
32 lines (25 loc) · 912 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
32
import setuptools
import os.path
source = "src"
pkg = "autotor"
setup_dir = os.path.dirname(__file__)
with open(os.path.join(setup_dir, "README.md"), "r") as f:
long_description = f.read()
with open(os.path.join(setup_dir, "requirements.txt"), "r") as f:
required = f.read().splitlines()
metadata = {}
with open(os.path.join(setup_dir, source, pkg, "_metadata.py")) as f:
exec(f.read(), metadata)
setuptools.setup(
name = metadata["__name_pkg__"],
version = metadata["__version__"],
description = metadata["__description__"],
long_description = long_description,
long_description_content_type = "text/markdown",
url = metadata["__url__"],
python_requires = metadata["__python_requires__"],
install_requires = required,
package_dir = {"": source},
packages = setuptools.find_packages(where = source),
classifiers = metadata["__classifiers__"]
)