setup   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 83
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 60
dl 0
loc 83
rs 10
c 0
b 0
f 0
wmc 2

1 Function

Rating   Name   Duplication   Size   Complexity  
A read() 0 6 2
1
#!/usr/bin/env python
2
# -*- encoding: utf-8 -*-
3
from __future__ import absolute_import
4
from __future__ import print_function
5
6
import io
7
import re
8
from glob import glob
9
from os.path import basename
10
from os.path import dirname
11
from os.path import join
12
from os.path import splitext
13
14
from setuptools import find_packages
15
from setuptools import setup
16
17
18
def read(*names, **kwargs):
19
    with io.open(
20
        join(dirname(__file__), *names),
21
        encoding=kwargs.get("encoding", "utf8"),
22
    ) as fh:
23
        return fh.read()
24
25
26
long_description = "%s" % (
27
    re.compile("^.. start-badges.*^.. end-badges", re.M | re.S).sub(
28
        "", read("README.rst")
29
    )
30
)
31
32
33
setup(
34
    name="oemof.network",
35
    version="0.4.0rc0",
36
    license="MIT",
37
    description="The network/graph submodules of oemof.",
38
    long_description=long_description,
39
    long_description_content_type="text/x-rst",
40
    author="oemof developer group",
41
    author_email="[email protected]",
42
    url="https://github.com/oemof/oemof.network",
43
    packages=["oemof"] + ["oemof." + p for p in find_packages("src/oemof")],
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
        # complete classifier list:
50
        #   http://pypi.python.org/pypi?%3Aaction=list_classifiers
51
        "Development Status :: 4 - Beta",
52
        "Intended Audience :: Developers",
53
        "License :: OSI Approved :: MIT License",
54
        "Operating System :: Unix",
55
        "Operating System :: POSIX",
56
        "Operating System :: Microsoft :: Windows",
57
        "Programming Language :: Python",
58
        "Programming Language :: Python :: 3",
59
        "Programming Language :: Python :: 3.7",
60
        "Programming Language :: Python :: 3.8",
61
        "Programming Language :: Python :: 3.9",
62
        "Programming Language :: Python :: Implementation :: CPython",
63
        # uncomment if you test on these interpreters:
64
        # 'Programming Language :: Python :: Implementation :: IronPython',
65
        # 'Programming Language :: Python :: Implementation :: Jython',
66
        # 'Programming Language :: Python :: Implementation :: Stackless',
67
        "Topic :: Utilities",
68
    ],
69
    project_urls={
70
        "Documentation": "https://oemofnetwork.readthedocs.io/",
71
        "Changelog": (
72
            "https://oemofnetwork.readthedocs.io/en/latest/changelog.html"
73
        ),
74
        "Issue Tracker": "https://github.com/oemof/oemof.network/issues",
75
    },
76
    keywords=[
77
        # eg: 'keyword1', 'keyword2', 'keyword3',
78
    ],
79
    python_requires=">=3.7",
80
    install_requires=["pandas", "blinker", "dill", "networkx"],
81
    extras_require={
82
        "dev": ["pytest"],
83
        # eg:
84
        #   'rst': ['docutils>=0.11'],
85
        #   ':python_version=="2.6"': ['argparse'],
86
    },
87
)
88