setup   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 93
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 65
dl 0
loc 93
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, print_function
4
5
from glob import glob
6
from os.path import basename, dirname, join, splitext
7
import io
8
import re
9
10
from setuptools import find_packages, setup
11
12
13
def read(*names, **kwargs):
14
    with io.open(
15
        join(dirname(__file__), *names),
16
        encoding=kwargs.get('encoding', 'utf8'),
17
    ) as fh:
18
        return fh.read()
19
20
21
setup(
22
    name='oemof.db',
23
    # Unfortunately we can't use a `__version__` attribute on `oemof.db` as
24
    # we can't import that module here. It depends on packages which might
25
    # not be available prior to installation.
26
    version='0.0.6',
27
    license='MIT',
28
    description=(
29
        'Open Energy Modelling Framework'
30
        ' - An extension for all database related things'
31
    ),
32
    long_description='%s\n%s'
33
    % (
34
        re.compile('^.. start-badges.*^.. end-badges', re.M | re.S).sub(
35
            '', read('README.rst')
36
        ),
37
        '\n'.join(
38
            [
39
                re.sub(':[a-z]+:`~?(.*?)`', r'``\1``', read(path))
40
                for path in glob('docs/whatsnew/*')
41
            ]
42
        ),
43
    ),
44
    author='oemof developer group',
45
    author_email='[email protected]',
46
    url='https://github.com/oemof/oemof.db',
47
    packages=['oemof'] + ['oemof.' + p for p in find_packages('src/oemof')],
48
    package_dir={'': 'src'},
49
    py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
50
    include_package_data=True,
51
    zip_safe=False,
52
    classifiers=[
53
        # complete classifier list:
54
        #   http://pypi.python.org/pypi?%3Aaction=list_classifiers
55
        "Development Status :: 4 - Beta",
56
        'Intended Audience :: Developers',
57
        'License :: OSI Approved :: MIT License',
58
        'Operating System :: Unix',
59
        'Operating System :: POSIX',
60
        'Operating System :: Microsoft :: Windows',
61
        'Programming Language :: Python',
62
        'Programming Language :: Python :: 3',
63
        'Programming Language :: Python :: 3.5',
64
        'Programming Language :: Python :: 3.6',
65
        'Programming Language :: Python :: 3.7',
66
        'Programming Language :: Python :: 3.8',
67
        'Programming Language :: Python :: Implementation :: CPython',
68
        # uncomment if you test on these interpreters:
69
        # 'Programming Language :: Python :: Implementation :: IronPython',
70
        # 'Programming Language :: Python :: Implementation :: Jython',
71
        # 'Programming Language :: Python :: Implementation :: Stackless',
72
        'Topic :: Utilities',
73
    ],
74
    project_urls={
75
        'Documentation': 'https://oemofdb.readthedocs.io/',
76
        'Changelog': 'https://oemofdb.readthedocs.io/en/latest/changelog.html',
77
        'Issue Tracker': 'https://github.com/oemof/oemof.db/issues',
78
    },
79
    keywords=[
80
        # eg: 'keyword1', 'keyword2', 'keyword3',
81
    ],
82
    python_requires='!=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
83
    install_requires=[
84
        'oemof',
85
        'sqlalchemy >= 1.0',
86
        'keyring >= 4.0',
87
        'shapely',
88
        'psycopg2',
89
        'keyrings.alt',
90
        'pandas >=0.19.1',
91
    ],
92
    extras_require={
93
        # eg:
94
        #   'rst': ['docutils>=0.11'],
95
        #   ':python_version=="2.6"': ['argparse'],
96
    },
97
)
98