-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
34 lines (31 loc) · 947 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
34
from setuptools import setup, find_packages
from pathlib import Path
package_names = ["ndsimulator"]
_name = "_".join(package_names)
name = "-".join(package_names)
# see https://packaging.python.org/guides/single-sourcing-package-version/
version_dict = {}
with open(Path(__file__).parents[0] / _name / "_version.py") as fp:
exec(fp.read(), version_dict)
version = version_dict["__version__"]
del version_dict
setup(
name=name,
version=f"{version}",
author="Lixin Sun",
python_requires=">=3.6.9",
packages=find_packages(include=[name, _name, _name + ".*"]),
install_requires=[
"numpy",
"matplotlib",
"pyfile-utils>=1.0.5",
],
entry_points={
# make the scripts available as command line scripts
"console_scripts": [
"ndsimulator = ndsimulator.scripts.run:main",
"ndPEL = ndsimulator.scripts.plot_pot:main",
]
},
zip_safe=True,
)