-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (44 loc) · 1.34 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
48
49
50
51
52
53
from pathlib import Path
from typing import List
from setuptools import find_packages, setup
THIS_DIR = Path(__file__).parent
# with open(THIS_DIR / "docs/description.md", encoding="utf-8") as f:
with open(THIS_DIR / "README.md", encoding="utf-8") as f:
long_description = f.read()
def read_requirements(filepath: Path) -> List[str]:
with open(filepath, encoding="utf-8") as fd:
return [
package.strip("\n")
for package in fd.readlines()
if not package.startswith("#")
]
requirements = read_requirements(THIS_DIR / "requirements.txt")
setup(
name="spt",
version="0.2.4",
description="Scientific matplotlib plot rcParams configuration template python package.",
long_description=long_description,
long_description_content_type="text/markdown",
keywords=[
"matplotlib",
],
author="yangsl",
author_email="3304839708@qq.com",
maintainer="yangsl",
maintainer_email="330839708@qq.com",
url="https://github.com/Bit-Part-Young/spt",
packages=find_packages(),
zip_safe=False,
install_requires=requirements,
extras_require={
"examples": [
"pandas",
"scikit-learn",
]
},
python_requires=">=3.8",
platforms=["all"],
classifiers=[
"Programming Language :: Python :: 3",
],
)