forked from yezz123/authx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (51 loc) · 2.05 KB
/
setup.py
File metadata and controls
59 lines (51 loc) · 2.05 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
50
51
52
53
54
55
56
57
58
59
import os
import typing as t
import setuptools
from AuthX import __author__, __author_email__, __license__, __version__
directory = os.path.abspath(os.path.dirname(__file__))
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
def parse_requirement(req_path: str) -> t.List[str]:
with open(os.path.join(directory, "", req_path)) as f:
contents = f.read()
return [i.strip() for i in contents.strip().split("\n")]
setuptools.setup(
name="AuthX",
version=__version__,
author=__author__,
platforms=["any"],
description="Ready to use and customizable Authentications and Oauth2 management for FastAPI",
long_description=long_description,
long_description_content_type="text/markdown",
project_urls={
"Documentation": "https://yezz123.github.io/AuthX/",
"Source Code": "https://github.com/yezz123/AuthX",
"Bug Tracker": "https://github.com/yezz123/AuthX/issues",
"Funding": "https://opencollective.com/yezz123",
},
packages=setuptools.find_packages(exclude=["tests"]),
license=__license__,
include_package_data=True,
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Customer Service",
"Development Status :: 4 - Beta",
"Natural Language :: English",
"Framework :: aiohttp",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Internet :: WWW/HTTP :: Session",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Utilities",
"Typing :: Typed",
],
python_requires=">=3.8",
install_requires=parse_requirement("requirements.txt"),
extras_require={"dev": ["requests == 2.25.1", "uvicorn"]},
)