-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
57 lines (49 loc) · 1.87 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
from pathlib import Path
from setuptools import find_packages, setup
def get_version(package: str) -> str:
"""Return package version as listed in `__version__` in `__init__.py`."""
version = Path("src", package, "__init__.py").read_text()
match = re.search("__version__ = ['\"]([^'\"]+)['\"]", version)
assert match is not None
return match.group(1)
def get_long_description() -> str:
with open("README.md", encoding="utf8") as readme:
with open("CHANGELOG.md", encoding="utf8") as changelog:
return readme.read() + "\n\n" + changelog.read()
setup(
name="tartiflette-asgi",
version=get_version("tartiflette_asgi"),
author="Florimond Manca",
author_email="[email protected]",
description="ASGI support for the Tartiflette Python GraphQL engine",
long_description=get_long_description(),
long_description_content_type="text/markdown",
url="https://github.com/tartiflette/tartiflette-asgi",
packages=find_packages("src"),
package_dir={"": "src"},
include_package_data=True,
zip_safe=False,
install_requires=[
"starlette>=0.13,<1.0",
"tartiflette>=1.0,<1.5",
"typing-extensions; python_version<'3.8'",
],
python_requires=">=3.6",
# https://pypi.org/pypi?%3Aaction=list_classifiers
license="MIT",
classifiers=[
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)