-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
26 lines (25 loc) · 848 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
from setuptools import setup, find_packages
import configparser
config = configparser.ConfigParser()
config.read("setup.cfg")
metadata = config["metadata"]
options = config["options"]
# Define the setup() arguments
setup(
name=metadata["name"],
version='{{VERSION_PLACEHOLDER}}',
author=metadata["author"],
author_email=metadata["author_email"],
description=metadata["description"],
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url=metadata["url"],
license=metadata["license"],
packages=find_packages("src"),
package_dir={"": "src"},
package_data={"": ["*.model"]},
python_requires=">=3.6",
install_requires=options["install_requires"],
extras_require=config["options.extras_require"],
classifiers=metadata["classifiers"].splitlines(),
)