forked from lovasoa/marshmallow_dataclass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (50 loc) · 1.74 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
from setuptools import setup, find_packages
VERSION = "7.5.2"
CLASSIFIERS = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
]
EXTRAS_REQUIRE = {
"enum": ["marshmallow-enum"],
"union": ["marshmallow-union"],
':python_version == "3.6"': ["dataclasses"],
"lint": ["pre-commit~=1.18"],
"docs": ["sphinx"],
"tests": [
"pytest",
# re: pypy: typed-ast (a dependency of mypy) fails to install on pypy
# https://github.com/python/typed_ast/issues/111
"pytest-mypy-plugins>=1.2.0; implementation_name != 'pypy'",
],
}
EXTRAS_REQUIRE["dev"] = (
EXTRAS_REQUIRE["enum"]
+ EXTRAS_REQUIRE["union"]
+ EXTRAS_REQUIRE["lint"]
+ EXTRAS_REQUIRE["docs"]
+ EXTRAS_REQUIRE["tests"]
)
setup(
name="marshmallow_dataclass",
version=VERSION,
description="Python library to convert dataclasses into marshmallow schemas.",
long_description=open("README.md", "r").read(),
long_description_content_type="text/markdown",
packages=find_packages(
include=["marshmallow_dataclass", "marshmallow_dataclass.*"]
),
author="Ophir LOJKINE",
author_email="[email protected]",
url="https://github.com/lovasoa/marshmallow_dataclass",
keywords=["marshmallow", "dataclass", "serialization"],
classifiers=CLASSIFIERS,
python_requires=">=3.6",
install_requires=["marshmallow>=3.0.0,<4.0", "typing-inspect"],
extras_require=EXTRAS_REQUIRE,
package_data={"marshmallow_dataclass": ["py.typed"]},
)