setup   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Importance

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