-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
97 lines (93 loc) · 3.45 KB
/
setup.py
File metadata and controls
97 lines (93 loc) · 3.45 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/env python3
"""
Setup script for Kakashi package.
"""
from setuptools import setup, find_packages
import os
# Read the README file
def read_readme():
with open("README.md", "r", encoding="utf-8") as fh:
return fh.read()
# Read requirements from pyproject.toml
def get_requirements():
requirements = []
if os.path.exists("requirements.txt"):
with open("requirements.txt", "r", encoding="utf-8") as fh:
requirements = [line.strip() for line in fh if line.strip() and not line.startswith("#")]
return requirements
setup(
name="kakashi",
version="0.2.1",
author="Akshat Kotpalliwar",
author_email="akshatkot@gmail.com",
description="High-performance logging utility for Python applications with advanced features",
long_description=read_readme(),
long_description_content_type="text/markdown",
url="https://github.com/IntegerAlex/kakashi",
project_urls={
"Bug Reports": "https://github.com/IntegerAlex/kakashi/issues",
"Documentation": "https://github.com/IntegerAlex/kakashi/wiki",
},
packages=find_packages(),
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Logging",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
],
python_requires=">=3.7",
install_requires=get_requirements(),
extras_require={
"fastapi": ["fastapi>=0.68.0", "starlette>=0.14.0"],
"flask": ["flask>=1.0.0"],
"django": ["django>=3.0.0"],
"web": ["fastapi>=0.68.0", "starlette>=0.14.0", "flask>=1.0.0", "django>=3.0.0"],
# GUI extra intentionally has no install-time dependencies:
# tkinter is part of the Python standard library and not a PyPI package.
"gui": [],
"dev": [
"pytest>=6.0",
"pytest-asyncio>=0.18.0",
"black>=21.0.0",
"flake8>=3.8.0",
"mypy>=0.910",
"pre-commit>=2.15.0",
"build>=0.8.0",
"twine>=4.0.0",
],
"performance": [
"orjson>=3.8.0",
"uvloop>=0.17.0;sys_platform!='win32'",
],
"all": [
"fastapi>=0.68.0",
"starlette>=0.14.0",
"flask>=1.0.0",
"django>=3.0.0",
"orjson>=3.8.0",
"uvloop>=0.17.0;sys_platform!='win32'",
],
},
entry_points={
"console_scripts": [
"kakashi-demo=kakashi.examples.basic_usage:main",
"kakashi-basic=kakashi.examples.basic_usage:main",
"kakashi-web=kakashi.examples.web_framework_examples:run_all_examples",
"kakashi-gui=kakashi.examples.gui_application_example:gui_example",
"kakashi-cli=kakashi.examples.cli_application_example:cli_example",
],
},
include_package_data=True,
zip_safe=False,
keywords=["logging", "logger", "fastapi", "middleware", "colored-logs", "performance", "singleton", "rotation"],
license="LGPL-2.1",
)