python-package-template-pypi 0.5.6__tar.gz → 0.5.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_package_template_pypi-0.5.6 → python_package_template_pypi-0.5.8}/PKG-INFO +13 -3
- {python_package_template_pypi-0.5.6 → python_package_template_pypi-0.5.8}/README.md +8 -0
- {python_package_template_pypi-0.5.6 → python_package_template_pypi-0.5.8}/pyproject.toml +39 -18
- {python_package_template_pypi-0.5.6 → python_package_template_pypi-0.5.8}/pyproject.toml.orig +37 -17
- {python_package_template_pypi-0.5.6 → python_package_template_pypi-0.5.8}/src/python_package_template/__init__.py +9 -1
- {python_package_template_pypi-0.5.6 → python_package_template_pypi-0.5.8}/src/python_package_template/main.py +4 -4
- {python_package_template_pypi-0.5.6 → python_package_template_pypi-0.5.8}/LICENSE +0 -0
- {python_package_template_pypi-0.5.6 → python_package_template_pypi-0.5.8}/src/python_package_template/py.typed +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-package-template-pypi
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.8
|
|
4
4
|
Summary: Python package template configuration.
|
|
5
|
-
Keywords:
|
|
5
|
+
Keywords: github,package,pypi,python,template
|
|
6
6
|
Author: Daniel Mizsak
|
|
7
7
|
Author-email: Daniel Mizsak <daniel@mizsak.com>
|
|
8
8
|
License-Expression: MIT
|
|
@@ -11,11 +11,13 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.13
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
15
|
+
Classifier: Typing :: Typed
|
|
14
16
|
Requires-Dist: numpy>=2.4.4
|
|
15
17
|
Requires-Python: >=3.12
|
|
16
|
-
Project-URL: Repository, https://github.com/daniel-mizsak/python-package-template/
|
|
17
18
|
Project-URL: Documentation, https://daniel-mizsak.github.io/python-package-template/
|
|
18
19
|
Project-URL: Issues, https://github.com/daniel-mizsak/python-package-template/issues/
|
|
20
|
+
Project-URL: Repository, https://github.com/daniel-mizsak/python-package-template/
|
|
19
21
|
Description-Content-Type: text/markdown
|
|
20
22
|
|
|
21
23
|
# <div align="center">🐍 python-package-template</div>
|
|
@@ -41,6 +43,14 @@ Python package template configuration.
|
|
|
41
43
|
|
|
42
44
|
Documentation is available at the [GitHub Pages of this repository](https://daniel-mizsak.github.io/python-package-template).
|
|
43
45
|
|
|
46
|
+
## Future improvements
|
|
47
|
+
|
|
48
|
+
- Validate `pyproject.toml` against its schema.
|
|
49
|
+
- Detect unused, missing and transitive dependencies with [deptry](https://github.com/fpgmaas/deptry).
|
|
50
|
+
- Detect breaking public API changes between releases with [griffe](https://github.com/mkdocstrings/griffe).
|
|
51
|
+
- Add property-based testing with [hypothesis](https://hypothesis.readthedocs.io/).
|
|
52
|
+
- Randomize test order with [pytest-randomly](https://pypi.org/project/pytest-randomly/).
|
|
53
|
+
|
|
44
54
|
<hr>
|
|
45
55
|
|
|
46
56
|
<div align="center">
|
|
@@ -21,6 +21,14 @@ Python package template configuration.
|
|
|
21
21
|
|
|
22
22
|
Documentation is available at the [GitHub Pages of this repository](https://daniel-mizsak.github.io/python-package-template).
|
|
23
23
|
|
|
24
|
+
## Future improvements
|
|
25
|
+
|
|
26
|
+
- Validate `pyproject.toml` against its schema.
|
|
27
|
+
- Detect unused, missing and transitive dependencies with [deptry](https://github.com/fpgmaas/deptry).
|
|
28
|
+
- Detect breaking public API changes between releases with [griffe](https://github.com/mkdocstrings/griffe).
|
|
29
|
+
- Add property-based testing with [hypothesis](https://hypothesis.readthedocs.io/).
|
|
30
|
+
- Randomize test order with [pytest-randomly](https://pypi.org/project/pytest-randomly/).
|
|
31
|
+
|
|
24
32
|
<hr>
|
|
25
33
|
|
|
26
34
|
<div align="center">
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["uv_build>=0.12,<0.13"]
|
|
3
|
-
build-backend = "uv_build"
|
|
4
|
-
|
|
5
1
|
[project]
|
|
6
2
|
name = "python-package-template-pypi"
|
|
7
|
-
version = "0.5.
|
|
3
|
+
version = "0.5.8"
|
|
8
4
|
description = "Python package template configuration."
|
|
9
5
|
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.12"
|
|
10
7
|
license = "MIT"
|
|
11
8
|
license-files = ["LICENSE"]
|
|
12
9
|
keywords = [
|
|
13
|
-
"python",
|
|
14
|
-
"template",
|
|
15
|
-
"package",
|
|
16
10
|
"github",
|
|
11
|
+
"package",
|
|
17
12
|
"pypi",
|
|
13
|
+
"python",
|
|
14
|
+
"template",
|
|
18
15
|
]
|
|
19
16
|
classifiers = [
|
|
20
17
|
"Programming Language :: Python :: 3 :: Only",
|
|
21
18
|
"Programming Language :: Python :: 3.12",
|
|
22
19
|
"Programming Language :: Python :: 3.13",
|
|
23
20
|
"Programming Language :: Python :: 3.14",
|
|
21
|
+
"Programming Language :: Python :: 3.15",
|
|
22
|
+
"Typing :: Typed",
|
|
24
23
|
]
|
|
25
|
-
requires-python = ">=3.12"
|
|
26
24
|
dependencies = ["numpy>=2.4.4"]
|
|
27
25
|
|
|
28
26
|
[[project.authors]]
|
|
@@ -30,24 +28,47 @@ name = "Daniel Mizsak"
|
|
|
30
28
|
email = "daniel@mizsak.com"
|
|
31
29
|
|
|
32
30
|
[project.urls]
|
|
33
|
-
Repository = "https://github.com/daniel-mizsak/python-package-template/"
|
|
34
31
|
Documentation = "https://daniel-mizsak.github.io/python-package-template/"
|
|
35
32
|
Issues = "https://github.com/daniel-mizsak/python-package-template/issues/"
|
|
33
|
+
Repository = "https://github.com/daniel-mizsak/python-package-template/"
|
|
36
34
|
|
|
37
35
|
[dependency-groups]
|
|
38
36
|
dev = [
|
|
39
|
-
"coverage==7.
|
|
40
|
-
"nox==2026.
|
|
41
|
-
"prek==0.5.
|
|
42
|
-
"pytest==9.
|
|
43
|
-
"ruff==0.
|
|
44
|
-
"ty==0.0.
|
|
37
|
+
"coverage==7.17.5",
|
|
38
|
+
"nox==2026.10.20",
|
|
39
|
+
"prek==0.5.12",
|
|
40
|
+
"pytest==9.2.0",
|
|
41
|
+
"ruff==0.17.6",
|
|
42
|
+
"ty==0.0.113",
|
|
45
43
|
]
|
|
46
44
|
docs = [
|
|
47
|
-
"
|
|
48
|
-
"
|
|
45
|
+
"mkdocstrings-python==2.0.11",
|
|
46
|
+
"zensical==0.1.4",
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
[build-system]
|
|
50
|
+
requires = ["uv_build>=0.13,<0.14"]
|
|
51
|
+
build-backend = "uv_build"
|
|
52
|
+
|
|
53
|
+
[tool.coverage.run]
|
|
54
|
+
branch = true
|
|
55
|
+
source = [
|
|
56
|
+
"tests",
|
|
57
|
+
"python_package_template",
|
|
49
58
|
]
|
|
50
59
|
|
|
60
|
+
[tool.coverage.html]
|
|
61
|
+
directory = ".artifacts/htmlcov"
|
|
62
|
+
|
|
63
|
+
[tool.coverage.xml]
|
|
64
|
+
output = ".artifacts/coverage.xml"
|
|
65
|
+
|
|
66
|
+
[tool.pytest]
|
|
67
|
+
addopts = ["--import-mode=importlib"]
|
|
68
|
+
filterwarnings = ["error"]
|
|
69
|
+
strict = true
|
|
70
|
+
testpaths = ["tests"]
|
|
71
|
+
|
|
51
72
|
[tool.uv]
|
|
52
73
|
exclude-newer = "1 week"
|
|
53
74
|
|
{python_package_template_pypi-0.5.6 → python_package_template_pypi-0.5.8}/pyproject.toml.orig
RENAMED
|
@@ -1,44 +1,64 @@
|
|
|
1
|
-
# Build System
|
|
2
|
-
[build-system]
|
|
3
|
-
requires = ["uv_build>=0.12,<0.13"]
|
|
4
|
-
build-backend = "uv_build"
|
|
5
|
-
|
|
6
1
|
# Project Metadata
|
|
7
2
|
[project]
|
|
8
|
-
name = "python-package-template-pypi"
|
|
9
|
-
version = "0.5.
|
|
3
|
+
name = "python-package-template-pypi" # Name has to be unique on pypi.
|
|
4
|
+
version = "0.5.8" # Version set by GitHub release.
|
|
10
5
|
description = "Python package template configuration."
|
|
11
6
|
readme = "README.md"
|
|
7
|
+
requires-python = ">=3.12"
|
|
12
8
|
license = "MIT"
|
|
13
9
|
license-files = ["LICENSE"]
|
|
14
10
|
authors = [{ name = "Daniel Mizsak", email = "daniel@mizsak.com" }]
|
|
15
|
-
keywords = ["
|
|
11
|
+
keywords = ["github", "package", "pypi", "python", "template"]
|
|
16
12
|
classifiers = [
|
|
17
13
|
"Programming Language :: Python :: 3 :: Only",
|
|
18
14
|
"Programming Language :: Python :: 3.12",
|
|
19
15
|
"Programming Language :: Python :: 3.13",
|
|
20
16
|
"Programming Language :: Python :: 3.14",
|
|
17
|
+
"Programming Language :: Python :: 3.15",
|
|
18
|
+
"Typing :: Typed",
|
|
21
19
|
]
|
|
22
|
-
requires-python = ">=3.12"
|
|
23
20
|
dependencies = ["numpy>=2.4.4"]
|
|
24
21
|
|
|
25
22
|
[project.urls]
|
|
26
|
-
Repository = "https://github.com/daniel-mizsak/python-package-template/"
|
|
27
23
|
Documentation = "https://daniel-mizsak.github.io/python-package-template/"
|
|
28
24
|
Issues = "https://github.com/daniel-mizsak/python-package-template/issues/"
|
|
25
|
+
Repository = "https://github.com/daniel-mizsak/python-package-template/"
|
|
29
26
|
|
|
30
27
|
[dependency-groups]
|
|
31
28
|
dev = [
|
|
32
|
-
"coverage==7.
|
|
33
|
-
"nox==2026.
|
|
34
|
-
"prek==0.5.
|
|
35
|
-
"pytest==9.
|
|
36
|
-
"ruff==0.
|
|
37
|
-
"ty==0.0.
|
|
29
|
+
"coverage==7.17.5",
|
|
30
|
+
"nox==2026.10.20",
|
|
31
|
+
"prek==0.5.12",
|
|
32
|
+
"pytest==9.2.0",
|
|
33
|
+
"ruff==0.17.6",
|
|
34
|
+
"ty==0.0.113",
|
|
38
35
|
]
|
|
39
|
-
docs = ["
|
|
36
|
+
docs = ["mkdocstrings-python==2.0.11", "zensical==0.1.4"]
|
|
37
|
+
|
|
38
|
+
# Build System
|
|
39
|
+
[build-system]
|
|
40
|
+
requires = ["uv_build>=0.13,<0.14"]
|
|
41
|
+
build-backend = "uv_build"
|
|
40
42
|
|
|
41
43
|
# Tools
|
|
44
|
+
# Coverage
|
|
45
|
+
[tool.coverage.run]
|
|
46
|
+
branch = true
|
|
47
|
+
source = ["tests", "python_package_template"]
|
|
48
|
+
|
|
49
|
+
[tool.coverage.html]
|
|
50
|
+
directory = ".artifacts/htmlcov"
|
|
51
|
+
|
|
52
|
+
[tool.coverage.xml]
|
|
53
|
+
output = ".artifacts/coverage.xml"
|
|
54
|
+
|
|
55
|
+
# Pytest
|
|
56
|
+
[tool.pytest]
|
|
57
|
+
addopts = ["--import-mode=importlib"]
|
|
58
|
+
filterwarnings = ["error"]
|
|
59
|
+
strict = true
|
|
60
|
+
testpaths = ["tests"]
|
|
61
|
+
|
|
42
62
|
# Uv
|
|
43
63
|
[tool.uv]
|
|
44
64
|
exclude-newer = "1 week"
|
|
@@ -4,6 +4,14 @@ Python package template configuration.
|
|
|
4
4
|
Copyright (C) 2026 "Daniel Mizsak" <daniel@mizsak.com>
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
+
from importlib.metadata import version
|
|
8
|
+
|
|
7
9
|
from python_package_template.main import add_five, subtract_three
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
__version__ = version("python-package-template-pypi")
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
"__version__",
|
|
15
|
+
"add_five",
|
|
16
|
+
"subtract_three",
|
|
17
|
+
]
|
|
@@ -11,10 +11,10 @@ def add_five(number: int) -> int:
|
|
|
11
11
|
"""Increment the input by 5.
|
|
12
12
|
|
|
13
13
|
Args:
|
|
14
|
-
number
|
|
14
|
+
number: The input number.
|
|
15
15
|
|
|
16
16
|
Returns:
|
|
17
|
-
|
|
17
|
+
The input incremented by 5.
|
|
18
18
|
"""
|
|
19
19
|
return number + 5
|
|
20
20
|
|
|
@@ -23,9 +23,9 @@ def subtract_three(number: int) -> int:
|
|
|
23
23
|
"""Decrement the input by 3.
|
|
24
24
|
|
|
25
25
|
Args:
|
|
26
|
-
number
|
|
26
|
+
number: The input number.
|
|
27
27
|
|
|
28
28
|
Returns:
|
|
29
|
-
|
|
29
|
+
The input decremented by 3.
|
|
30
30
|
"""
|
|
31
31
|
return int(np.subtract(number, 3))
|
|
File without changes
|
|
File without changes
|