test-python-package-release 0.3.1__py3-none-any.whl → 0.3.2__py3-none-any.whl
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.
- test_python_package_release/__init__.py +1 -1
- {test_python_package_release-0.3.1.dist-info → test_python_package_release-0.3.2.dist-info}/METADATA +38 -7
- test_python_package_release-0.3.2.dist-info/RECORD +7 -0
- test_python_package_release-0.3.1.dist-info/RECORD +0 -7
- {test_python_package_release-0.3.1.dist-info → test_python_package_release-0.3.2.dist-info}/WHEEL +0 -0
- {test_python_package_release-0.3.1.dist-info → test_python_package_release-0.3.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Test Python package release — template library."""
|
|
2
2
|
|
|
3
|
-
__version__ = "0.3.
|
|
3
|
+
__version__ = "0.3.2" # managed by release-please
|
|
4
4
|
|
|
5
5
|
from test_python_package_release.calculator import add, divide, multiply, power, subtract
|
|
6
6
|
from test_python_package_release.strings import reverse_string, snake_to_camel
|
{test_python_package_release-0.3.1.dist-info → test_python_package_release-0.3.2.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: test-python-package-release
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Template library demonstrating Python package release CI/CD
|
|
5
5
|
Author-email: Dawid Wozniak <wozniakos10@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -57,22 +57,53 @@ uv run pytest
|
|
|
57
57
|
└── CHANGELOG.md # managed by release-please
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
## Development
|
|
60
|
+
## Development tooling
|
|
61
|
+
|
|
62
|
+
The template ships with an opinionated, modern Python toolchain — all
|
|
63
|
+
configured in `pyproject.toml` (no scattered config files).
|
|
64
|
+
|
|
65
|
+
| Tool | Purpose | Where it runs |
|
|
66
|
+
|---|---|---|
|
|
67
|
+
| [**uv**](https://docs.astral.sh/uv/) | Package manager, virtualenv handler, Python installer, build tool. Replaces `pip` + `venv` + `pip-tools` + `pyenv`. | Local + CI |
|
|
68
|
+
| [**ruff**](https://docs.astral.sh/ruff/) | Linter + formatter (replaces flake8, isort, black, pyupgrade). | pre-commit + CI lint job |
|
|
69
|
+
| [**ty**](https://github.com/astral-sh/ty) | Static type checker by Astral (faster mypy alternative). | CI lint job + `tox -e type` |
|
|
70
|
+
| [**pytest**](https://docs.pytest.org/) | Test runner. | Local + CI test matrix |
|
|
71
|
+
| [**pytest-cov**](https://pytest-cov.readthedocs.io/) | Coverage reporting via `coverage.py`. | On-demand (`pytest --cov`) |
|
|
72
|
+
| [**tox**](https://tox.wiki/) + [**tox-uv**](https://github.com/tox-dev/tox-uv) | Isolated test environments per Python version (3.11, 3.12, 3.13) backed by uv for speed. | Local + CI test matrix |
|
|
73
|
+
| [**pre-commit**](https://pre-commit.com/) | Git hook framework — runs ruff and conventional-commit checks before every commit. | Local |
|
|
74
|
+
| [**conventional-pre-commit**](https://github.com/compilerla/conventional-pre-commit) | Pure-Python validator for [Conventional Commits](https://www.conventionalcommits.org/) commit messages. | pre-commit (commit-msg stage) |
|
|
75
|
+
| [**commitlint**](https://commitlint.js.org/) | Node-based validator that re-checks every commit on a PR. | CI `commitlint` job |
|
|
76
|
+
| [**hatchling**](https://hatch.pypa.io/) | PEP 517 build backend used by `uv build` to produce wheel/sdist. | Build / publish |
|
|
77
|
+
| [**release-please**](https://github.com/googleapis/release-please) | Parses Conventional Commits → bumps version → updates CHANGELOG → tags releases. | CI on push to `main` |
|
|
78
|
+
| [**claude-code-action**](https://github.com/anthropics/claude-code-action) | Claude reviews PRs on demand when you comment `@claude`. | CI on PR comment |
|
|
79
|
+
| [**Dependabot**](https://docs.github.com/en/code-security/dependabot) | Weekly grouped PRs updating GitHub Actions and uv dev-dependencies. | GitHub native |
|
|
80
|
+
|
|
81
|
+
## Development commands
|
|
61
82
|
|
|
62
83
|
```bash
|
|
63
|
-
# Install
|
|
84
|
+
# Install all dev deps + create .venv
|
|
85
|
+
uv sync --group dev
|
|
86
|
+
|
|
87
|
+
# Install hooks (runs ruff and conventional commit-msg validation)
|
|
64
88
|
uv run pre-commit install --hook-type pre-commit --hook-type commit-msg
|
|
65
89
|
|
|
66
|
-
#
|
|
90
|
+
# Full test matrix (3.11, 3.12, 3.13) — tox spawns isolated uv envs per version
|
|
67
91
|
uv run tox
|
|
68
92
|
|
|
69
|
-
# Single env
|
|
70
|
-
uv run tox -e py313 -- -k calculator
|
|
93
|
+
# Single env (fastest iteration)
|
|
94
|
+
uv run tox -e py313 -- -k calculator # only tests matching "calculator"
|
|
71
95
|
|
|
72
|
-
# Lint / format
|
|
96
|
+
# Lint / format / type check (one-off, without tox)
|
|
73
97
|
uv run ruff check .
|
|
74
98
|
uv run ruff format --check .
|
|
75
99
|
uv run ty check src
|
|
100
|
+
|
|
101
|
+
# Build the distribution locally
|
|
102
|
+
uv build
|
|
103
|
+
|
|
104
|
+
# Add a new dependency (auto-updates uv.lock — commit both files)
|
|
105
|
+
uv add httpx
|
|
106
|
+
uv add --group dev pytest-mock
|
|
76
107
|
```
|
|
77
108
|
|
|
78
109
|
## Commits
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
test_python_package_release/__init__.py,sha256=S4is54cjE3dNkHqDIlVVXFJMu1DUH-UjkZAedmRtO60,407
|
|
2
|
+
test_python_package_release/calculator.py,sha256=sYwW1XekGBp1ZCkEqQ4mD9Y1TF1pm6uMW0L8VASVIW8,389
|
|
3
|
+
test_python_package_release/strings.py,sha256=wfMdEde8gKrxVJ-HJMsYbgV8IjahgqIRPy5JjLpN1wY,176
|
|
4
|
+
test_python_package_release-0.3.2.dist-info/METADATA,sha256=XN9i6z2Ngmge1RjhQJ6AeN3Ck8Ycy15suBK0w7LMFDo,8797
|
|
5
|
+
test_python_package_release-0.3.2.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
6
|
+
test_python_package_release-0.3.2.dist-info/licenses/LICENSE,sha256=FK3qjfsYq7ZWgF5WWecz0lQFe6PoBbKyNYK2hBs0aN8,1070
|
|
7
|
+
test_python_package_release-0.3.2.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
test_python_package_release/__init__.py,sha256=4U72s09vHskgx5tBvs40Lxw3dMUXlnNmaoa-5ep68ag,407
|
|
2
|
-
test_python_package_release/calculator.py,sha256=sYwW1XekGBp1ZCkEqQ4mD9Y1TF1pm6uMW0L8VASVIW8,389
|
|
3
|
-
test_python_package_release/strings.py,sha256=wfMdEde8gKrxVJ-HJMsYbgV8IjahgqIRPy5JjLpN1wY,176
|
|
4
|
-
test_python_package_release-0.3.1.dist-info/METADATA,sha256=4cbbdjaGbR7ZZTDetJGn-Foue0TKbBgjzMPgfC-ALb4,6278
|
|
5
|
-
test_python_package_release-0.3.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
6
|
-
test_python_package_release-0.3.1.dist-info/licenses/LICENSE,sha256=FK3qjfsYq7ZWgF5WWecz0lQFe6PoBbKyNYK2hBs0aN8,1070
|
|
7
|
-
test_python_package_release-0.3.1.dist-info/RECORD,,
|
{test_python_package_release-0.3.1.dist-info → test_python_package_release-0.3.2.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|