-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
73 lines (64 loc) · 2.26 KB
/
Copy pathsetup.py
File metadata and controls
73 lines (64 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import os
import sys
from setuptools import setup, find_packages
import pyicontract_lint_meta
# pylint: disable=redefined-builtin
here = os.path.abspath(os.path.dirname(__file__)) # pylint: disable=invalid-name
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as fid:
long_description = fid.read() # pylint: disable=invalid-name
# yapf: disable
install_requires = [
'icontract>=2.0.0,<3',
'astroid>=2.4.2,<3'
]
if sys.version_info < (3, 8):
# We need to install typing-extensions for TypedDict's, Final's *etc.*
install_requires.append('typing-extensions')
setup(
name=pyicontract_lint_meta.__title__,
version=pyicontract_lint_meta.__version__,
description=pyicontract_lint_meta.__description__,
long_description=long_description,
url=pyicontract_lint_meta.__url__,
author=pyicontract_lint_meta.__author__,
author_email=pyicontract_lint_meta.__author_email__,
classifiers=[
# yapf: disable
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX'
# yapf: enable
],
license='License :: OSI Approved :: MIT License',
keywords='design-by-contract precondition postcondition validation lint',
packages=find_packages(exclude=['tests']),
install_requires=install_requires,
extras_require={
'dev': [
# yapf: disable
'mypy==0.910',
'pylint==2.9.2',
'yapf==0.20.2',
'tox>=3.0.0',
'pydocstyle>=2.1.1,<3',
'coverage>=4.5.1,<5'
# yapf: enable
],
},
entry_points={"console_scripts": ["pyicontract-lint = icontract_lint.main:main"]},
py_modules=['icontract_lint', 'pyicontract_lint_meta'],
include_package_data=True,
package_data={
"packagery": ["py.typed"],
'': ['LICENSE.txt', 'README.rst'],
})