-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathsetup.py
54 lines (47 loc) · 1.76 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
import os
import setuptools
def get_version():
package_init = os.path.join(
os.path.abspath(os.path.dirname(__file__)), "fastapi_events", "__init__.py"
)
with open(package_init) as f:
for line in f:
if line.startswith("__version__ ="):
return line.split("=")[1].strip().strip("\"'")
def get_long_description():
with open("README.md", "r") as fh:
return fh.read()
setuptools.setup(
name="fastapi-events",
version=get_version(),
author="Melvin Koh",
author_email="[email protected]",
description="Event dispatching library for FastAPI",
long_description=get_long_description(),
long_description_content_type="text/markdown",
url="https://github.com/melvinkcx/fastapi-events",
packages=setuptools.find_packages(exclude=["tests.*"]),
package_data={"fastapi_events": ["py.typed"]},
classifiers={
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
},
python_requires=">=3.7",
keywords=["starlette", "fastapi", "starlite", "pydantic"],
extras_require={
"aws": ["boto3>=1.14"],
"google": ["google-cloud-pubsub>=2.13.6"],
"otel": ["opentelemetry-api>=1.12.0,<2.0"],
},
)