setup   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 76
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 51
dl 0
loc 76
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A read() 0 4 1
1
#!/usr/bin/env python
2
# -*- encoding: utf-8 -*-
3
from __future__ import absolute_import
4
from __future__ import print_function
5
6
import io
7
import re
8
from glob import glob
9
from os.path import basename
10
from os.path import dirname
11
from os.path import join
12
from os.path import splitext
13
14
from setuptools import find_packages
15
from setuptools import setup
16
17
18
def read(*names, **kwargs):
19
    return io.open(
20
        join(dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8")
21
    ).read()
22
23
24
setup(
25
    name="mypy-structured-data",
26
    version="0.1.1",
27
    license="MIT license",
28
    description="Mypy plugin for the Structured Data library",
29
    long_description="%s\n%s"
30
    % (
31
        re.compile("^.. start-badges.*^.. end-badges", re.M | re.S).sub(
32
            "", read("README.rst")
33
        ),
34
        re.sub(":[a-z]+:`~?(.*?)`", r"``\1``", read("CHANGELOG.rst")),
35
    ),
36
    author="Max Woerner Chase",
37
    author_email="[email protected]",
38
    url="https://github.com/mwchase/python-mypy-structured-data",
39
    packages=find_packages("src"),
40
    package_dir={"": "src"},
41
    py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")],
42
    include_package_data=True,
43
    zip_safe=False,
44
    classifiers=[
45
        # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
46
        "Development Status :: 1 - Planning",
47
        "Intended Audience :: Developers",
48
        "License :: OSI Approved :: MIT License",
49
        "Operating System :: Unix",
50
        "Operating System :: POSIX",
51
        "Operating System :: Microsoft :: Windows",
52
        "Programming Language :: Python",
53
        "Programming Language :: Python :: 3",
54
        "Programming Language :: Python :: 3.7",
55
        "Programming Language :: Python :: Implementation :: CPython",
56
        # 'Programming Language :: Python :: Implementation :: PyPy',
57
        # uncomment if you test on these interpreters:
58
        # 'Programming Language :: Python :: Implementation :: IronPython',
59
        # 'Programming Language :: Python :: Implementation :: Jython',
60
        # 'Programming Language :: Python :: Implementation :: Stackless',
61
        "Topic :: Utilities",
62
    ],
63
    keywords=[
64
        # eg: 'keyword1', 'keyword2', 'keyword3',
65
    ],
66
    install_requires=[
67
        "mypy",
68
        # eg: 'aspectlib==1.1.1', 'six>=1.7',
69
    ],
70
    extras_require={
71
        # eg:
72
        #   'rst': ['docutils>=0.11'],
73
        #   ':python_version=="2.6"': ['argparse'],
74
    },
75
    python_requires=">=3.7",
76
)
77