-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
90 lines (86 loc) · 3.68 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open("loguru/__init__.py", "r") as file:
regex_version = r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]'
version = re.search(regex_version, file.read(), re.MULTILINE).group(1)
with open("README.rst", "rb") as file:
readme = file.read().decode("utf-8")
setup(
name="loguru",
version=version,
packages=["loguru"],
package_data={"loguru": ["__init__.pyi", "py.typed"]},
description="Python logging made (stupidly) simple",
long_description=readme,
long_description_content_type="text/x-rst",
author="Delgan",
author_email="delgan.py@gmail.com",
url="https://github.com/Delgan/loguru",
download_url="https://github.com/Delgan/loguru/archive/{}.tar.gz".format(version),
project_urls={
"Changelog": "https://github.com/Delgan/loguru/blob/master/CHANGELOG.rst",
"Documentation": "https://loguru.readthedocs.io/en/stable/index.html",
},
keywords=["loguru", "logging", "logger", "log"],
license="MIT license",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Topic :: System :: Logging",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"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",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: Implementation :: CPython",
],
install_requires=[
"colorama>=0.3.4 ; sys_platform=='win32'",
"aiocontextvars>=0.2.0 ; python_version<'3.7'",
"win32-setctime>=1.0.0 ; sys_platform=='win32'",
],
extras_require={
"dev": [
# Setup.
"pre-commit==3.6.0 ; python_version>='3.9'",
"tox==3.27.1 ; python_version<'3.8'",
"tox==4.11.0 ; python_version>='3.8'",
# Testing framework.
"pytest==6.1.2 ; python_version<'3.8'",
"pytest==7.4.0 ; python_version>='3.8'",
"pytest-cov==2.12.1 ; python_version<'3.8'",
"pytest-cov==4.1.0 ; python_version>='3.8'",
"pytest-mypy-plugins==1.9.3 ; python_version>='3.6' and python_version<'3.8'",
"pytest-mypy-plugins==3.0.0 ; python_version>='3.8'",
# Testing utils.
"colorama==0.4.5 ; python_version<'3.8'",
"colorama==0.4.6 ; python_version>='3.8'",
"freezegun==1.1.0 ; python_version<'3.8'",
"freezegun==1.4.0 ; python_version>='3.8'",
"exceptiongroup==1.1.3 ; python_version>='3.7' and python_version<'3.11'",
# Type checking.
"mypy==v0.910 ; python_version<'3.6'",
"mypy==v0.971 ; python_version>='3.6' and python_version<'3.7'",
"mypy==v1.4.1 ; python_version>='3.7' and python_version<'3.8'",
"mypy==v1.8.0 ; python_version>='3.8'",
# Docs.
"Sphinx==7.2.5 ; python_version>='3.9'",
"sphinx-autobuild==2021.3.14 ; python_version>='3.9'",
"sphinx-rtd-theme==2.0.0 ; python_version>='3.9'",
]
},
python_requires=">=3.5",
)