forked from e2nIEE/pandapipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (46 loc) · 2.12 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
# Copyright (c) 2020-2021 by Fraunhofer Institute for Energy Economics
# and Energy System Technology (IEE), Kassel, and University of Kassel. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
from setuptools import find_packages
from setuptools import setup
import re
with open('README.rst', 'rb') as f:
install = f.read().decode('utf-8')
with open('CHANGELOG.rst', 'rb') as f:
changelog = f.read().decode('utf-8')
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3']
with open('.github/workflows/run_tests_master.yml', 'rb') as f:
lines = f.read().decode('utf-8')
for version in re.findall('python: 3.[0-9]', lines):
classifiers.append('Programming Language :: Python :: 3.%s' % version[-1])
long_description = '\n\n'.join((install, changelog))
setup(
name='pandapipes',
version='0.3.0',
author='Dennis Cronbach, Daniel Lohmeier, Simon Ruben Drauz, Jolando Marius Kisse',
author_email='[email protected], [email protected], '
description='A pipeflow calculation tool that complements pandapower in the simulation of multi energy grids',
long_description=long_description,
long_description_content_type='text/x-rst',
url='http://www.pandapipes.org',
license='BSD',
install_requires=["pandapower>=2.5.0", "matplotlib"],
extras_require={"docs": ["numpydoc", "sphinx", "sphinx_rtd_theme", "sphinxcontrib.bibtex"],
"plotting": ["plotly", "python-igraph"],
"test": ["pytest", "pytest-xdist"]},
python_requires='>=3, <4',
packages=find_packages(),
include_package_data=True,
classifiers=classifiers
)