setup   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 53
dl 0
loc 65
rs 10
c 0
b 0
f 0
wmc 0
1
import os
2
3
from setuptools import find_packages, setup
4
5
6
here = os.path.abspath(os.path.dirname(__file__))
7
meta_info = {}
8
with open(os.path.join(here, 'barentsz', '_meta.py'),
9
          mode='r', encoding='utf-8') as f:
10
    exec(f.read(), meta_info)
11
12
with open('README.md', mode='r', encoding='utf-8') as f:
13
    long_description = f.read()
14
15
requirements = [
16
    'typish>=1.7.0',
17
]
18
19
test_requirements = [
20
    'scons',
21
    'pycodestyle',
22
    'pylint',
23
    'mypy',
24
    'pytest',
25
    'pytest-cov',
26
    'coverage',
27
    'radon',
28
    'xenon',
29
    'autoflake',
30
    'isort',
31
32
]
33
34
extras = {
35
    'test': test_requirements,
36
}
37
38
setup(
39
    name=meta_info['__title__'],
40
    version=meta_info['__version__'],
41
    author=meta_info['__author__'],
42
    author_email=meta_info['__author_email__'],
43
    description=meta_info['__description__'],
44
    url=meta_info['__url__'],
45
    long_description=long_description,
46
    long_description_content_type='text/markdown',
47
    license=meta_info['__license__'],
48
    packages=find_packages(exclude=('tests', 'test_resources')),
49
    install_requires=requirements,
50
    tests_require=test_requirements,
51
    extras_require=extras,
52
    python_requires='>=3.6',
53
    test_suite='tests',
54
    zip_safe=False,
55
    classifiers=[
56
        'Intended Audience :: Developers',
57
        'License :: OSI Approved :: MIT License',
58
        'Operating System :: OS Independent',
59
        'Natural Language :: English',
60
        'Programming Language :: Python',
61
        'Programming Language :: Python :: 3',
62
        'Programming Language :: Python :: 3.6',
63
        'Programming Language :: Python :: 3.7',
64
        'Programming Language :: Python :: 3.8',
65
    ]
66
)
67