-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (64 loc) 路 2.15 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
68
69
70
71
"""Installation script for Cyrus."""
from pathlib import Path
from setuptools import setup , find_packages
DESCRIPTION = "Cyrus: Elevate FastAPI with Intelligent Caching by Redis"
APP_ROOT = Path(__file__).resolve().parent
README = (APP_ROOT / "README.md").read_text(encoding = 'utf-8').strip()
AUTHOR = "itz-Amethyst"
AUTHOR_EMAIL = "[email protected]"
PROJECT_URLS = {
"Bug Tracker": "https://github.com/itz-Amethyst/Cyrus/issues",
"Source Code": "https://github.com/itz-Amethyst/Cyrus",
"Documentation": "https://pypi.org/project/Cyrus",
}
KEYWORDS = 'Redis, Redis Caching, Redis Connection, Redis client instance'
CLASSIFIERS = [
"Framework :: FastAPI",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Natural Language :: Persian",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
INSTALL_REQUIRES = [
"fastapi",
"pydantic",
"python-dateutil",
"redis",
]
# Execute version.py and get __version__
version_globals = {}
exec(open(str(APP_ROOT / "src/Cyrus/version.py")).read(), version_globals)
__version__ = version_globals['__version__']
setup(
name="Cyrus-Kit",
description=DESCRIPTION,
long_description=README,
long_description_content_type="text/markdown",
version=__version__,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
keywords = KEYWORDS,
maintainer=AUTHOR,
maintainer_email=AUTHOR_EMAIL,
license="MIT",
url=PROJECT_URLS["Source Code"],
project_urls=PROJECT_URLS,
packages = find_packages(where = "src") ,
package_dir = {"": "src"} ,
include_package_data=True,
python_requires=">=3.7",
classifiers=CLASSIFIERS,
install_requires=INSTALL_REQUIRES,
# zip_safe=True
)