Updated pyproject.toml
File is now fully compliant to build project with hatchling. Replaces: setup.py, setup.cfg, any config files have been translated to toml format.
This commit is contained in:
parent
bccd6155fb
commit
f4bf4f96b6
|
|
@ -1,6 +1,45 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=45.0", "wheel"]
|
requires = ["hatchling"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "clog"
|
||||||
|
version = "0.1.1"
|
||||||
|
description = "Logging as simple as putting on a shoe."
|
||||||
|
readme = "README.md"
|
||||||
|
requires-python = ">=3.7"
|
||||||
|
license = {file = "LICENCE.txt"}
|
||||||
|
authors = [
|
||||||
|
{name = "Ethan Smith-Coss", email="ethan.sc@closedless.xyz"},
|
||||||
|
]
|
||||||
|
maintainers = [
|
||||||
|
{name = "Ethan Smith-Coss", email="ethan.sc@closedless.xyz"},
|
||||||
|
]
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 3 - Alpha",
|
||||||
|
"Environment :: Other Environment",
|
||||||
|
"Intended Audience :: Developers",
|
||||||
|
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
||||||
|
"Natural Language :: English",
|
||||||
|
"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 :: Only",
|
||||||
|
"Topic :: System :: Logging",
|
||||||
|
"Topic :: Software Development :: Libraries",
|
||||||
|
"Topic :: Utilities",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
dev = [
|
||||||
|
"tox>=4",
|
||||||
|
"pytest==7.4.0",
|
||||||
|
"pytest-cov==4.1.0",
|
||||||
|
"mypy==1.4.1"
|
||||||
|
]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
addopts = "--cov=clog"
|
addopts = "--cov=clog"
|
||||||
|
|
@ -20,4 +59,30 @@
|
||||||
warn_return_any = true
|
warn_return_any = true
|
||||||
warn_unreachable = true
|
warn_unreachable = true
|
||||||
warn_unused_configs = true
|
warn_unused_configs = true
|
||||||
no_implicit_reexport = true
|
no_implicit_reexport = true
|
||||||
|
|
||||||
|
[tool.tox]
|
||||||
|
legacy_tox_ini = """
|
||||||
|
[tox]
|
||||||
|
minversion >= 4
|
||||||
|
skip_missing_interpreters = {env:TOX_SKIP_MISSING_INTERPRETERS:True}
|
||||||
|
env_list =
|
||||||
|
py37,
|
||||||
|
py38,
|
||||||
|
py39,
|
||||||
|
py310,
|
||||||
|
type,
|
||||||
|
isolated_build = true
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
description = run pytest unit tests
|
||||||
|
deps =
|
||||||
|
pytest==7.4.0,
|
||||||
|
pytest-cov==4.1.0,
|
||||||
|
commands = python -m pytest {posargs}
|
||||||
|
|
||||||
|
[testenv:type]
|
||||||
|
description = run typing libraries mypy
|
||||||
|
deps = mypy==1.4.1
|
||||||
|
commands = python -m mypy src/clog
|
||||||
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user