-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
76 lines (67 loc) · 2.32 KB
/
setup.py
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
74
75
76
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import os
from setuptools import setup, find_packages
import mapry_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 f:
long_description = f.read() # pylint: disable=invalid-name
with open(os.path.join(here, 'requirements.txt'), encoding='utf-8') as fid:
install_requires = [
line for line in fid.read().splitlines() if line.strip()
]
setup(
name=mapry_meta.__title__,
version=mapry_meta.__version__,
description=mapry_meta.__description__,
long_description=long_description,
url=mapry_meta.__url__,
author=mapry_meta.__author__,
author_email=mapry_meta.__author_email__,
classifiers=[
'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'
],
license='License :: OSI Approved :: MIT License',
keywords='object mapping json serialization deserialization graph',
packages=find_packages(exclude=['doc', 'tests*', 'test_cases*']),
install_requires=install_requires,
extras_require={
# yapf: disable
'dev': [
'coverage>=4.5.1,<5',
'pydocstyle>=3.0.0,<4',
'mypy==0.782',
'pylint==2.6.0',
'yapf==0.27.0',
'temppathlib>=1.0.3,<2',
'isort>=4.3.4,<5',
'twine>=1.12.1,<2',
'pyicontract-lint>=2.0.0,<3',
],
'testcpp': [
'conan>=1.13.0,<2',
'temppathlib>=1.0.3,<2',
],
'testgo': [
'temppathlib>=1.0.3,<2',
],
'testpy': [
'pytz==2018.9',
'temppathlib>=1.0.3,<2',
# needed so that we can mypy the generated code
'mypy==0.670'
],
# yapf: enable
},
py_modules=['mapry', 'mapry_meta'],
entry_points={"console_scripts": ["mapry-to = mapry.main:entry_point"]},
package_data={"mapry": ["py.typed"]})