setup   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 81
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 62
dl 0
loc 81
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
import io
4
import re
5
from glob import glob
6
from os.path import basename
7
from os.path import dirname
8
from os.path import join
9
from os.path import splitext
10
11
from setuptools import find_packages
12
from setuptools import setup
13
14
15
def read(*names, **kwargs):
16
    with io.open(
17
        join(dirname(__file__), *names),
18
        encoding=kwargs.get("encoding", "utf8"),
19
    ) as fh:
20
        return fh.read()
21
22
23
long_description = "%s\n%s" % (
24
    re.compile("^.. start-badges.*^.. end-badges", re.M | re.S).sub(
25
        "", read("README.rst")
26
    ),
27
    re.sub(":[a-z]+:`~?(.*?)`", r"``\1``", read("CHANGELOG.rst")),
28
)
29
30
setup(
31
    name="oemof.tools",
32
    version="0.4.3",
33
    license="MIT",
34
    description="Tiny tools of the oemof project.",
35
    long_description_content_type="text/x-rst",
36
    long_description=long_description,
37
    author="oemof-developer-group",
38
    author_email="[email protected]",
39
    url="https://github.com/oemof/oemof-tools",
40
    packages=["oemof"] + ["oemof." + p for p in find_packages("src/oemof")],
41
    package_dir={"": "src"},
42
    py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")],
43
    include_package_data=True,
44
    zip_safe=False,
45
    classifiers=[
46
        # complete classifier list:
47
        # http://pypi.python.org/pypi?%3Aaction=list_classifiers
48
        "Development Status :: 5 - Production/Stable",
49
        "Intended Audience :: Developers",
50
        "License :: OSI Approved :: MIT License",
51
        "Operating System :: Unix",
52
        "Operating System :: POSIX",
53
        "Operating System :: Microsoft :: Windows",
54
        "Programming Language :: Python",
55
        "Programming Language :: Python :: 3",
56
        "Programming Language :: Python :: 3.8",
57
        "Programming Language :: Python :: 3.9",
58
        "Programming Language :: Python :: 3.10",
59
        "Programming Language :: Python :: Implementation :: CPython",
60
        "Topic :: Utilities",
61
    ],
62
    project_urls={
63
        "Documentation": "https://oemof-tools.readthedocs.io/",
64
        "Changelog": (
65
            "https://oemof-tools.readthedocs.io/en/latest/changelog.html"
66
        ),
67
        "Issue Tracker": "https://github.com/oemof/oemof-tools/issues",
68
    },
69
    keywords=[
70
        # eg: 'keyword1', 'keyword2', 'keyword3',
71
    ],
72
    python_requires=">=3.8",
73
    install_requires=[
74
        # eg: 'aspectlib==1.1.1', 'six>=1.7',
75
    ],
76
    extras_require={
77
        "dev": [
78
            "pytest",
79
            "sphinx",
80
            "sphinx_rtd_theme",
81
        ]
82
    },
83
)
84