Skip to content

Commit

Permalink
Revert "chore: define the version from the pyproject.toml"
Browse files Browse the repository at this point in the history
This reverts commit 8ca991a.
  • Loading branch information
art049 committed Dec 5, 2024
1 parent d771cff commit 7bc8318
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,15 @@ jobs:
needs: build-wheels
runs-on: ubuntu-24.04
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
path: dist/
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- uses: actions/setup-python@v2
with:
python-version: "3.12"

- uses: actions/download-artifact@v4
with:
merge-multiple: true
path: dist/
- name: Tmate Session
uses: mxschmitt/action-tmate@v3
if: always()
Expand Down
15 changes: 14 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Source = "https://github.com/CodSpeedHQ/pytest-codspeed"

[project]
name = "pytest-codspeed"
version = "3.0.0"
dynamic = ["version"]
description = "Pytest plugin to create CodSpeed benchmarks"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down Expand Up @@ -53,6 +53,19 @@ pytest11 = { codspeed = "pytest_codspeed.plugin" }
requires = ["setuptools >= 61", "cffi >= 1.17.1"]
build-backend = "setuptools.build_meta"

[tool.setuptools.dynamic]
version = { attr = "pytest_codspeed.__version__" }

[tool.hatch.envs.default]
python = "3.11"
features = ["lint", "test", "compat"]

[tool.hatch.envs.test]
features = ["test"]

[[tool.hatch.envs.test.matrix]]
python = ["3.9", "3.10", "3.11", "3.12", "3.13"]
features = ["compat", "test"]

[tool.mypy]
python_version = "3.12"
Expand Down
4 changes: 1 addition & 3 deletions src/pytest_codspeed/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import importlib.metadata

__version__ = importlib.metadata.version("pytest-codspeed")
__version__ = "3.0.0"
# We also have the semver version since __version__ is not semver compliant
__semver_version__ = "3.0.0"

Expand Down

0 comments on commit 7bc8318

Please sign in to comment.