-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (42 loc) · 1.47 KB
/
setup.py
File metadata and controls
49 lines (42 loc) · 1.47 KB
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
import re
from setuptools import setup
def get_version():
"""
Return package version as listed in `__version__`.
"""
with open("starlette_early_data.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()
setup(
name="starlette-early-data",
python_requires=">=3.6",
version=get_version(),
url="https://github.com/HarrySky/starlette-early-data",
license="Unlicense",
description="Middleware and decorator for processing TLSv1.3 early data requests in Starlette",
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="Igor Nehoroshev",
author_email="mail@neigor.me",
py_modules=["starlette_early_data"],
data_files=[("", ["LICENSE"])],
include_package_data=True,
# Since 0.12.11 we have starlette.status.HTTP_425_TOO_EARLY
install_requires=["starlette>=0.12.11"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: Public Domain",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
)