Skip to content

Commit 763816f

Browse files
committed
modernize packaging
1 parent 59459fb commit 763816f

30 files changed

Lines changed: 153 additions & 123 deletions

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ serialize =
99
{major}.{minor}.{patch}-rc{rc}
1010
{major}.{minor}.{patch}
1111

12-
[bumpversion:file:setup.py]
12+
[bumpversion:file:pyproject.toml]

Pipfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ url = "https://pypi.org/simple"
44
verify_ssl = true
55

66
[dev-packages]
7-
setuptools = "*"
87
pytest = "*"
98
pylint = "*"
109
tox = "*"

Pipfile.lock

Lines changed: 122 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,39 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling >= 1.26"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "coverage_threshold"
7+
version = "0.6.0"
8+
authors = [{ name = "Dean Way", email = "deanwaydev@gmail.com" }]
9+
description = "Tools for coverage threshold limits"
10+
readme = "README.md"
11+
requires-python = ">=3.7"
12+
classifiers = [
13+
"Programming Language :: Python :: 3.7",
14+
"Programming Language :: Python :: 3.8",
15+
"Programming Language :: Python :: 3.9",
16+
"License :: OSI Approved :: MIT License",
17+
"Operating System :: OS Independent",
18+
]
19+
license = "MIT"
20+
license-files = ["LICEN[CS]E*"]
21+
dependencies = ["toml >= 0.10.2"]
22+
23+
[project.scripts]
24+
coverage-threshold = "coverage_threshold.cli:main"
25+
26+
[project.urls]
27+
Homepage = "https://github.com/DeanWay/coverage-threshold"
28+
Issues = "https://github.com/DeanWay/coverage-threshold/issues"
429

530
[tool.isort]
631
profile = "black"
732
src_paths = ["coverage_threshold", "tests"]
833

34+
[tool.pytest.ini_options]
35+
pythonpath = ["src"]
36+
937
[tool.coverage-threshold]
1038
line_coverage_min = 0
1139
file_line_coverage_min = 100

setup.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)