-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
54 lines (48 loc) · 1.17 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
from pathlib import Path
from setuptools import setup, find_packages
here = Path(__file__).parent.resolve()
metadata = {}
with open(here / "gdxpds" / "_version.py", encoding='utf-8') as f:
exec(f.read(), None, metadata)
with open(here / "README.txt", encoding="utf-8") as f:
readme = f.read()
test_requires = [
"pytest"
]
admin_requires = [
"ghp-import",
"numpydoc",
"pandoc",
"sphinx",
"sphinx_rtd_theme",
"twine",
"setuptools",
"wheel",
]
setup(
name = metadata["__title__"],
version = metadata["__version__"],
author = metadata["__author__"],
author_email = metadata["__author_email__"],
url = metadata["__url__"],
description = metadata["__description__"],
long_description=readme,
long_description_content_type='text/markdown',
packages=find_packages(),
package_data={
'gdxpds.test': ['*.csv','*.gdx']
},
scripts = [
'bin/csv_to_gdx.py',
'bin/gdx_to_csv.py'
],
install_requires=[
"gdxcc",
"pandas>=0.20.1",
"numpy>=1.7"
],
extras_require={
"test": test_requires,
"admin": test_requires + admin_requires
},
)