e2nIEE / pandapipes
1
# Copyright (c) 2020-2021 by Fraunhofer Institute for Energy Economics
2
# and Energy System Technology (IEE), Kassel, and University of Kassel. All rights reserved.
3
# Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4

5 0
from setuptools import find_packages
6 0
from setuptools import setup
7 0
import re
8

9 0
with open('README.rst', 'rb') as f:
10 0
    install = f.read().decode('utf-8')
11

12 0
with open('CHANGELOG.rst', 'rb') as f:
13 0
    changelog = f.read().decode('utf-8')
14

15 0
classifiers = [
16
    'Development Status :: 4 - Beta',
17
    'Environment :: Console',
18
    'Intended Audience :: Developers',
19
    'Intended Audience :: Education',
20
    'Intended Audience :: Science/Research',
21
    'License :: OSI Approved :: BSD License',
22
    'Natural Language :: English',
23
    'Operating System :: OS Independent',
24
    'Programming Language :: Python',
25
    'Programming Language :: Python :: 3']
26

27 0
with open('.github/workflows/run_tests_master.yml', 'rb') as f:
28 0
    lines = f.read().decode('utf-8')
29 0
    for version in re.findall('python: 3.[0-9]', lines):
30 0
        classifiers.append('Programming Language :: Python :: 3.%s' % version[-1])
31

32 0
long_description = '\n\n'.join((install, changelog))
33

34 0
setup(
35
    name='pandapipes',
36
    version='0.4.0',
37
    author='Dennis Cronbach, Daniel Lohmeier, Simon Ruben Drauz, Jolando Marius Kisse',
38
    author_email='dennis.cronbach@iee.fraunhofer.de, daniel.lohmeier@iee.fraunhofer.de, '
39
                 'simon.ruben.drauz@iee.fraunhofer.de, jolando.kisse@uni-kassel.de',
40
    description='A pipeflow calculation tool that complements pandapower in the simulation of multi energy grids',
41
    long_description=long_description,
42
	long_description_content_type='text/x-rst',
43
    url='http://www.pandapipes.org',
44
    license='BSD',
45
    install_requires=["pandapower>=2.6.0", "matplotlib"],
46
    extras_require={"docs": ["numpydoc", "sphinx", "sphinx_rtd_theme", "sphinxcontrib.bibtex"],
47
                    "plotting": ["plotly", "python-igraph"],
48
                    "test": ["pytest", "pytest-xdist"]},
49
    python_requires='>=3, <4',
50
    packages=find_packages(),
51
    include_package_data=True,
52
    classifiers=classifiers
53
)

Read our documentation on viewing source code .

Loading