e2nIEE / pandapower
1
# -*- coding: utf-8 -*-
2

3
# Copyright (c) 2016-2021 by University of Kassel and Fraunhofer Institute for Energy Economics
4
# and Energy System Technology (IEE), Kassel. All rights reserved.
5

6 0
from setuptools import setup, find_packages
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 :: 5 - Production/Stable',
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/github_test_action.yml', 'rb') as f:
28 0
    lines = f.read().decode('utf-8')
29 0
    versions = set(re.findall('3.[0-9]', lines))
30 0
    for version in versions:
31 0
        classifiers.append('Programming Language :: Python :: 3.%s' % version[-1])
32

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

35 0
setup(
36
    name='pandapower',
37
    version='2.7.0',
38
    author='Leon Thurner, Alexander Scheidler',
39
    author_email='leon.thurner@iee.fraunhofer.de, alexander.scheidler@iee.fraunhofer.de',
40
    description='An easy to use open source tool for power system modeling, analysis and optimization with a high degree of automation.',
41
    long_description=long_description,
42
	long_description_content_type='text/x-rst',
43
    url='http://www.pandapower.org',
44
    license='BSD',
45
    install_requires=["pandas>=0.17",
46
                      "networkx>=2.5",
47
                      "scipy<=1.6.0",
48
                      "numpy>=0.11",
49
                      "packaging",
50
                      "xlsxwriter",
51
                      "xlrd",
52
                      "openpyxl",
53
                      "cryptography"],
54
    extras_require={
55
        "docs": ["numpydoc", "sphinx", "sphinx_rtd_theme"],
56
        "plotting": ["plotly", "matplotlib", "python-igraph"],
57
        "test": ["pytest", "pytest-xdist"],
58
        "performance": ["ortools"]},
59
    packages=find_packages(),
60
    include_package_data=True,
61
    classifiers=classifiers
62
)

Read our documentation on viewing source code .

Loading