forked from NREL/moa_python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
87 lines (78 loc) · 1.91 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
"""The setup script."""
from pathlib import Path
from setuptools import setup, find_packages
# Package meta-data.
NAME = "moa_python"
DESCRIPTION = "moa_python"
URL = "https://github.com/NREL/moa_python"
EMAIL = "[email protected]"
AUTHOR = "NREL National Wind Technology Center"
# What packages are required for this module to be executed?
REQUIRED = [
'feather-format',
'matplotlib',
'numpy',
'numba',
'pandas>=1.5',
'pytest',
'seaborn',
'netCDF4',
"jupyter"
]
EXTRAS = {
"docs": {
"jupyter-book<=0.13.3",
"sphinx-book-theme",
"sphinx-autodoc-typehints",
"sphinxcontrib-autoyaml",
"sphinxcontrib.mermaid",
},
"develop": {
"pytest",
"pre-commit",
"ruff",
"isort",
},
}
ROOT = Path(__file__).parent
with open(ROOT / "moa_python" / "version.py") as version_file:
VERSION = version_file.read().strip()
with open('README.rst') as readme_file:
README = readme_file.read()
setup_requirements = [
# Placeholder
]
test_requirements = [
# Placeholder
]
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=README,
author=AUTHOR,
author_email=EMAIL,
url=URL,
packages=find_packages(include=['moa_python']),
entry_points={
'console_scripts': [
'moa_python=moa_python.cli:main'
]
},
include_package_data=True,
install_requires=REQUIRED,
extras_require=EXTRAS,
license="Apache Software License 2.0",
zip_safe=False,
keywords='moa_python',
classifiers=[
'Development Status :: Release',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
],
test_suite='tests',
tests_require=test_requirements,
setup_requires=setup_requirements,
)