-
Notifications
You must be signed in to change notification settings - Fork 27
/
setup.py
36 lines (33 loc) · 1.26 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
from setuptools import setup, find_packages
import os
def get_requirements(env=""):
if env:
env = "-{}".format(env)
with open("requirements{}.txt".format(env)) as fp:
requirements = [x.strip() for x in fp.read().split("\n") if not x.startswith("#")]
withWebsocketClient = os.environ.get("WITH_WEBSOCKET_CLIENT", "False")
if bool(withWebsocketClient):
requirements.append("websocket-client>=1.1.0")
return requirements
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="fastapi_websocket_rpc",
version="0.1.27",
author="Or Weis",
author_email="or@permit.io",
description="A fast and durable bidirectional JSON RPC channel over Websockets and FastApi.",
long_description_content_type="text/markdown",
long_description=long_description,
url="https://github.com/permitio/fastapi_websocket_rpc",
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP :: WSGI",
],
python_requires=">=3.7",
install_requires=get_requirements(),
)