Skip to content

Commit

Permalink
--wip-- [with ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Dec 5, 2024
1 parent e8081dd commit 2655772
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ jobs:
run: uv build --sdist --out-dir dist/

- name: List artifacts
run: ls -l dist/
run: ls -al dist/*

- name: Tmate Session
uses: mxschmitt/action-tmate@v3
if: always()
timeout-minutes: 15

- if: github.event_name == 'push'
name: Publish to PyPI
Expand Down
15 changes: 1 addition & 14 deletions 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"
dynamic = ["version"]
version = "3.0.0"
description = "Pytest plugin to create CodSpeed benchmarks"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down Expand Up @@ -53,19 +53,6 @@ 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: 3 additions & 1 deletion src/pytest_codspeed/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
__version__ = "3.0.0"
import importlib.metadata

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

Expand Down

0 comments on commit 2655772

Please sign in to comment.