setup   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 47
dl 0
loc 55
rs 10
c 0
b 0
f 0
1
import os
2
from setuptools import setup
3
4
5
here = os.path.abspath(os.path.dirname(__file__))
6
meta_info = {}
7
with open(os.path.join(here, 'jsons', '_package_info.py'), 'r') as f:
8
    exec(f.read(), meta_info)
9
10
with open('README.md', 'r') as f:
11
    long_description = f.read()
12
13
setup(
14
    name=meta_info['__title__'],
15
    version=meta_info['__version__'],
16
    author=meta_info['__author__'],
17
    author_email=meta_info['__author_email__'],
18
    description=meta_info['__description__'],
19
    url=meta_info['__url__'],
20
    long_description=long_description,
21
    long_description_content_type='text/markdown',
22
    license=meta_info['__license__'],
23
    packages=[
24
        'jsons',
25
        'jsons.classes',
26
        'jsons.deserializers',
27
        'jsons.serializers',
28
    ],
29
    python_requires='>=3.5',
30
    install_requires=[
31
        'typish>=1.9.2',
32
    ],
33
    extras_require={
34
        'test': [
35
            'dataclasses;python_version=="3.6"',
36
            'tzdata;python_version>="3.9"',
37
            'attrs',
38
            'coverage',
39
            'codecov',
40
            'pytest',
41
            'scons',
42
        ]
43
    },
44
    test_suite='tests',
45
    zip_safe=False,
46
    classifiers=[
47
        'Intended Audience :: Developers',
48
        'License :: OSI Approved :: MIT License',
49
        'Operating System :: OS Independent',
50
        'Natural Language :: English',
51
        'Programming Language :: Python',
52
        'Programming Language :: Python :: 3',
53
        *['Programming Language :: Python :: {}'.format(version)
54
          for version in meta_info['__python_versions__']],
55
    ]
56
)
57