-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
33 lines (27 loc) · 930 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
33
from setuptools import setup
import os
# Get the readme and requirements
with open("README.md", "r") as fh:
long_description = fh.read()
with open("requirements.txt", "r") as f:
install_requires = f.read().splitlines()
# Get the absolute path to the directory containing setup.py
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "src/pymt/__about__.py"), "r") as f:
about = {}
exec(f.read(), about)
setup(
include_package_data=True,
name=about["__title__"],
version=about["__version__"],
author=about["__author__"],
author_email=about["__author_email__"],
description=about["__description__"],
long_description=long_description,
long_description_content_type="text/markdown",
py_modules=[about["__title__"]],
package_dir={"": "src"},
install_requires=install_requires,
python_requires=">=3.8",
license=about["__license__"],
)