-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
62 lines (51 loc) · 1.98 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
import re
from pathlib import Path
from setuptools import setup
install_requires = ("marshmallow>=2.20.5,<4",)
def read(*parts: str):
return Path(__file__).resolve().parent.joinpath(*parts).read_text().strip()
def read_version():
regexp = re.compile(r"^__version__\W*=\W*\"([\d.abrc]+)\"")
for line in read("marshmallow_recipe", "__init__.py").splitlines():
match = regexp.match(line)
if match is not None:
return match.group(1)
else:
raise RuntimeError("Cannot find version in marshmallow_recipe/__init__.py")
long_description_parts = []
with open("README.md", "r") as fh:
long_description_parts.append(fh.read())
with open("CHANGELOG.md", "r") as fh:
long_description_parts.append(fh.read())
long_description = "\r\n".join(long_description_parts)
# custom PyPI classifier for pytest plugins
setup(
name="marshmallow-recipe",
version=read_version(),
description="Bake marshmallow schemas based on dataclasses",
long_description=long_description,
long_description_content_type="text/markdown",
platforms=["macOS", "POSIX", "Windows"],
author="Yury Pliner",
python_requires=">=3.11",
project_urls={},
url="https://github.com/Pliner/marshmallow-recipe",
author_email="[email protected]",
license="MIT",
packages=["marshmallow_recipe"],
package_dir={"marshmallow_recipe": "./marshmallow_recipe"},
package_data={"marshmallow_recipe": ["py.typed"]},
install_requires=install_requires,
include_package_data=True,
classifiers=[
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
],
)