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:
Ethan Smith-Coss 2023-07-06 20:31:19 +01:00
parent bccd6155fb
commit f4bf4f96b6
Signed by: TheOnePath
GPG Key ID: 4E7D436CE1A0BAF1

View File

@ -1,6 +1,45 @@
[build-system]
requires = ["setuptools>=45.0", "wheel"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
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]
addopts = "--cov=clog"
@ -21,3 +60,29 @@
warn_unreachable = true
warn_unused_configs = 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
"""