setup   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Importance

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