-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.py
35 lines (32 loc) · 1.16 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
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:
return [x.strip() for x in fp.read().split("\n") if not x.startswith("#")]
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="fastapi_websocket_rpc",
version="0.1.28",
author="Or Weis",
author_email="[email protected]",
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.9",
install_requires=get_requirements(),
extras_require={
"websocket-client": ["websocket-client>=1.1.0"],
},
)