python-package-template-pypi 0.5.7__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-package-template-pypi
3
- Version: 0.5.7
3
+ Version: 0.5.8
4
4
  Summary: Python package template configuration.
5
5
  Keywords: github,package,pypi,python,template
6
6
  Author: Daniel Mizsak
@@ -11,6 +11,8 @@ 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
18
  Project-URL: Documentation, https://daniel-mizsak.github.io/python-package-template/
@@ -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,6 +1,6 @@
1
1
  [project]
2
2
  name = "python-package-template-pypi"
3
- version = "0.5.7"
3
+ version = "0.5.8"
4
4
  description = "Python package template configuration."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -18,6 +18,8 @@ classifiers = [
18
18
  "Programming Language :: Python :: 3.12",
19
19
  "Programming Language :: Python :: 3.13",
20
20
  "Programming Language :: Python :: 3.14",
21
+ "Programming Language :: Python :: 3.15",
22
+ "Typing :: Typed",
21
23
  ]
22
24
  dependencies = ["numpy>=2.4.4"]
23
25
 
@@ -32,22 +34,41 @@ Repository = "https://github.com/daniel-mizsak/python-package-template/"
32
34
 
33
35
  [dependency-groups]
34
36
  dev = [
35
- "coverage==7.17.0",
37
+ "coverage==7.17.5",
36
38
  "nox==2026.10.20",
37
- "prek==0.5.7",
38
- "pytest==9.1.1",
39
- "ruff==0.17.2",
40
- "ty==0.0.91",
39
+ "prek==0.5.12",
40
+ "pytest==9.2.0",
41
+ "ruff==0.17.6",
42
+ "ty==0.0.113",
41
43
  ]
42
44
  docs = [
43
- "mkdocstrings-python==2.0.10",
44
- "zensical==0.0.72",
45
+ "mkdocstrings-python==2.0.11",
46
+ "zensical==0.1.4",
45
47
  ]
46
48
 
47
49
  [build-system]
48
50
  requires = ["uv_build>=0.13,<0.14"]
49
51
  build-backend = "uv_build"
50
52
 
53
+ [tool.coverage.run]
54
+ branch = true
55
+ source = [
56
+ "tests",
57
+ "python_package_template",
58
+ ]
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
 
@@ -1,7 +1,7 @@
1
1
  # Project Metadata
2
2
  [project]
3
3
  name = "python-package-template-pypi" # Name has to be unique on pypi.
4
- version = "0.5.7" # Version set by GitHub release.
4
+ version = "0.5.8" # Version set by GitHub release.
5
5
  description = "Python package template configuration."
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.12"
@@ -14,6 +14,8 @@
14
14
  "Programming Language :: Python :: 3.12",
15
15
  "Programming Language :: Python :: 3.13",
16
16
  "Programming Language :: Python :: 3.14",
17
+ "Programming Language :: Python :: 3.15",
18
+ "Typing :: Typed",
17
19
  ]
18
20
  dependencies = ["numpy>=2.4.4"]
19
21
 
@@ -24,14 +26,14 @@
24
26
 
25
27
  [dependency-groups]
26
28
  dev = [
27
- "coverage==7.17.0",
29
+ "coverage==7.17.5",
28
30
  "nox==2026.10.20",
29
- "prek==0.5.7",
30
- "pytest==9.1.1",
31
- "ruff==0.17.2",
32
- "ty==0.0.91",
31
+ "prek==0.5.12",
32
+ "pytest==9.2.0",
33
+ "ruff==0.17.6",
34
+ "ty==0.0.113",
33
35
  ]
34
- docs = ["mkdocstrings-python==2.0.10", "zensical==0.0.72"]
36
+ docs = ["mkdocstrings-python==2.0.11", "zensical==0.1.4"]
35
37
 
36
38
  # Build System
37
39
  [build-system]
@@ -39,6 +41,24 @@
39
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
- __all__ = ["add_five", "subtract_three"]
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 (int): The input number.
14
+ number: The input number.
15
15
 
16
16
  Returns:
17
- int: The input incremented by 5.
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 (int): The input number.
26
+ number: The input number.
27
27
 
28
28
  Returns:
29
- int: The input decremented by 3.
29
+ The input decremented by 3.
30
30
  """
31
31
  return int(np.subtract(number, 3))