1
|
|
|
#!/usr/bin/env python |
2
|
|
|
# -*- encoding: utf-8 -*- |
3
|
|
|
|
4
|
|
|
import io |
5
|
|
|
import re |
6
|
|
|
from glob import glob |
7
|
|
|
from os.path import basename |
8
|
|
|
from os.path import dirname |
9
|
|
|
from os.path import join |
10
|
|
|
from os.path import splitext |
11
|
|
|
|
12
|
|
|
from setuptools import find_packages |
13
|
|
|
from setuptools import setup |
14
|
|
|
|
15
|
|
|
|
16
|
|
|
def read(*names, **kwargs): |
17
|
|
|
with io.open( |
18
|
|
|
join(dirname(__file__), *names), |
19
|
|
|
encoding=kwargs.get("encoding", "utf8"), |
20
|
|
|
) as fh: |
21
|
|
|
return fh.read() |
22
|
|
|
|
23
|
|
|
|
24
|
|
|
setup( |
25
|
|
|
name="scenario-builder", |
26
|
|
|
version="v0.0.2", |
27
|
|
|
license="MIT", |
28
|
|
|
description=( |
29
|
|
|
"Tools to build scenario inputs from historical data or" |
30
|
|
|
" future assumptions" |
31
|
|
|
), |
32
|
|
|
long_description="%s\n%s" |
33
|
|
|
% ( |
34
|
|
|
re.compile("^.. start-badges.*^.. end-badges", re.M | re.S).sub( |
35
|
|
|
"", read("README.rst") |
36
|
|
|
), |
37
|
|
|
re.sub(":[a-z]+:`~?(.*?)`", r"``\1``", read("CHANGELOG.rst")), |
38
|
|
|
), |
39
|
|
|
long_description_content_type="text/x-rst", |
40
|
|
|
author="reegis", |
41
|
|
|
author_email="[email protected]", |
42
|
|
|
url="https://github.com/reegis/scenario_builder", |
43
|
|
|
packages=find_packages("src"), |
44
|
|
|
package_dir={"": "src"}, |
45
|
|
|
py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")], |
46
|
|
|
include_package_data=True, |
47
|
|
|
zip_safe=False, |
48
|
|
|
classifiers=[ |
49
|
|
|
"Development Status :: 4 - Beta", |
50
|
|
|
"Intended Audience :: Developers", |
51
|
|
|
"License :: OSI Approved :: MIT License", |
52
|
|
|
"Operating System :: Unix", |
53
|
|
|
"Operating System :: POSIX", |
54
|
|
|
"Operating System :: Microsoft :: Windows", |
55
|
|
|
"Programming Language :: Python", |
56
|
|
|
"Programming Language :: Python :: 3", |
57
|
|
|
"Programming Language :: Python :: 3.7", |
58
|
|
|
"Programming Language :: Python :: 3.8", |
59
|
|
|
"Programming Language :: Python :: 3.9", |
60
|
|
|
"Topic :: Utilities", |
61
|
|
|
], |
62
|
|
|
project_urls={ |
63
|
|
|
"Documentation": "https://scenario_builder.readthedocs.io/", |
64
|
|
|
"Changelog": ( |
65
|
|
|
"https://scenario_builder.readthedocs.io/en/latest/changelog.html" |
66
|
|
|
), |
67
|
|
|
"Issue Tracker": "https://github.com/reegis/scenario_builder/issues", |
68
|
|
|
}, |
69
|
|
|
keywords=[ |
70
|
|
|
# eg: 'keyword1', 'keyword2', 'keyword3', |
71
|
|
|
], |
72
|
|
|
python_requires=">=3.7", |
73
|
|
|
install_requires=[ |
74
|
|
|
"pandas", |
75
|
|
|
], |
76
|
|
|
extras_require={ |
77
|
|
|
"reegis": [ |
78
|
|
|
"reegis", |
79
|
|
|
] |
80
|
|
|
# 'rst': ['docutils>=0.11'], |
81
|
|
|
# ':python_version=="2.6"': ['argparse'], |
82
|
|
|
}, |
83
|
|
|
) |
84
|
|
|
|