forked from NHERI-SimCenter/pelicun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
100 lines (93 loc) · 2.71 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
88
89
90
91
92
93
94
95
96
97
98
99
100
"""
setup.py file of the `pelicun` package.
"""
import io
from setuptools import setup, find_packages
import pelicun
def read(*filenames, **kwargs):
"""
Utility function to read multiple files into a string
"""
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
long_description = read('README.md')
setup(
name='pelicun',
version=pelicun.__version__,
url='http://nheri-simcenter.github.io/pelicun/',
license='BSD License',
author='Adam Zsarnóczay',
tests_require=['pytest'],
author_email='[email protected]',
description=(
'Probabilistic Estimation of Losses, Injuries, '
'and Community resilience Under Natural hazard events'
),
long_description=long_description,
long_description_content_type='text/markdown',
# packages=['pelicun'],
packages=find_packages(),
include_package_data=True,
platforms='any',
install_requires=[
'numpy>=1.22.0, <2.0',
'scipy>=1.7.0, <2.0',
'pandas>=1.4.0, <3.0',
'colorama>=0.4.0, <0.5.0',
'numexpr>=2.8, <3.0'
# 'tables>=3.7.0',
],
extras_require={
'development': [
'flake8',
'flake8-bugbear',
'flake8-rst',
'flake8-rst-docstrings',
'pylint',
'pylint-pytest',
'pydocstyle',
'mypy',
'black',
'pytest',
'pytest-cov',
'glob2',
'jupyter',
'jupytext',
'sphinx',
'sphinx-autoapi',
'nbsphinx',
'flake8-rst',
'flake8-rst-docstrings',
'pandas-stubs',
'types-colorama',
],
},
classifiers=[
'Programming Language :: Python',
'Development Status :: 5 - Production/Stable',
'Natural Language :: English',
'Environment :: Console',
'Framework :: Jupyter',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Unix',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Scientific/Engineering',
],
entry_points={
'console_scripts': [
'pelicun = pelicun.tools.DL_calculation:main',
]
},
)