Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: use pep517/pep621 #1140

Merged
merged 15 commits into from
Jun 1, 2024
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

81 changes: 81 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,89 @@
[build-system]
build-backend = "flit_core.buildapi"
requires = ["flit_core>=3,<4"]

[project]
authors = [
{name = "Delgan", email = "delgan.py@gmail.com"}
]
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.13",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: Implementation :: CPython"
]
dependencies = [
"colorama>=0.3.4 ; sys_platform=='win32'",
"aiocontextvars>=0.2.0 ; python_version<'3.7'",
"win32-setctime>=1.0.0 ; sys_platform=='win32'"
]
description = "Python logging made (stupidly) simple"
dynamic = ['version']
keywords = ["loguru", "logging", "logger", "log"]
license = {text = "MIT"}
name = "loguru"
readme = 'README.rst'
requires-python = ">=3.5,<4.0"

[project.optional-dependencies]
dev = [
# Setup.
"pre-commit==3.7.0 ; python_version>='3.9'",
"tox==3.27.1 ; python_version<'3.8'",
"tox==4.15.0 ; python_version>='3.8'",
# Testing framework.
"pytest==6.1.2 ; python_version<'3.8'",
"pytest==8.2.1 ; python_version>='3.8'",
"pytest-cov==2.12.1 ; python_version<'3.8'",
"pytest-cov==5.0.0 ; python_version>='3.8'",
"pytest-mypy-plugins==1.9.3 ; python_version>='3.6' and python_version<'3.8'",
"pytest-mypy-plugins==3.1.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.5.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.10.0 ; python_version>='3.8'",
# Docs.
"Sphinx==7.3.7 ; python_version>='3.9'",
"sphinx-autobuild==2024.4.16 ; python_version>='3.9'",
"sphinx-rtd-theme==2.0.0 ; python_version>='3.9'"
]

[project.urls]
Changelog = "https://github.com/Delgan/loguru/blob/master/CHANGELOG.rst"
Documentation = "https://loguru.readthedocs.io/en/stable/index.html"
Homepage = "https://github.com/Delgan/loguru"

[tool.black]
force-exclude = "tests/exceptions/source/modern/*"
line-length = 100
target-version = ["py35"]

[tool.flit.module]
name = "loguru"

[tool.mypy]
strict = true

Expand Down
91 changes: 0 additions & 91 deletions setup.py

This file was deleted.

1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[tox]
envlist = lint, tests, docs
isolated_build = True

[testenv]
setenv = PYTHONPATH = {toxinidir}
Expand Down
Loading