-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
39 lines (31 loc) · 1.08 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
"""Install module."""
import setuptools
NAME = "aplot"
AUTHOR = "kyrylo.gr"
AUTHOR_EMAIL = "[email protected]"
DESCRIPTION = "Classical plots in one place."
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
def get_version() -> str:
with open(f"{NAME}/__config__.py", "r", encoding="utf-8") as file:
for line in file.readlines():
if line.startswith("__version__"):
return line.split("=")[1].strip().strip('"').strip("'")
raise ValueError("Version not found")
setuptools.setup(
name=NAME,
version=get_version(),
author=AUTHOR,
author_email=AUTHOR_EMAIL,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type="text/markdown",
url=f"https://github.com/kyrylo-gr/{NAME}",
packages=setuptools.find_packages(exclude=["tests", "tests.*", "docs", "docs.*"]),
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
python_requires=">=3.8",
install_requires=["numpy", "scipy", "matplotlib"],
)