-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
67 lines (58 loc) · 1.92 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
from setuptools import find_packages, setup
def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
"""
with open(os.path.join(package, "__init__.py")) as f:
return re.search("__version__ = ['\"]([^'\"]+)['\"]", f.read()).group(1)
def get_long_description():
"""
Return the README.
"""
with open("README.md", encoding="utf8") as f:
return f.read()
INSTALL_REQUIRES = [
"loguru>=0.5.0",
"confluent-kafka>=1.6.0",
"starlette>=0.16.0",
"pydantic>=1.0.0",
"PyYAML>=5.4.*",
"aiohttp>=3.7.0",
"janus>=1.0.0",
"blinker>=1.4",
"sentry-sdk>=1.5.0",
"statsd",
]
setup(
name="eventbus",
version=get_version("eventbus"),
author="Benn Ma",
author_email="[email protected]",
description="A reliable event/message hub for boosting Event-Driven architecture & big data ingestion.",
long_description=get_long_description(),
long_description_content_type="text/markdown",
python_requires=">=3.7.0",
url="https://github.com/thenetcircle/event-bus-3",
project_urls={
"Bug Tracker": "https://github.com/thenetcircle/event-bus-3/issues",
},
license="Apache License, Version 2.0",
packages=find_packages(include=("eventbus*",)),
install_requires=INSTALL_REQUIRES,
keywords=("event-bus eventbus eventhub messagehub event-driven micro-services"),
classifiers=[
# Trove classifiers
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)