aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/google_benchmark
diff options
context:
space:
mode:
authorNicholas Junge <nicholas.junge@web.de>2024-09-04 18:42:07 +0200
committerGitHub <noreply@github.com>2024-09-04 17:42:07 +0100
commit986423a62dd174e75282e432e9fbaf921c9c7ccc (patch)
tree1b76e6bb615d702368686e30c86596aa4314652b /bindings/python/google_benchmark
parentc19cfee61e136effb05a7fc8a037b0db3b13bd4c (diff)
downloadgoogle-benchmark-main.tar.gz
google-benchmark-main.zip
Bump oldest supported Python to 3.10, eliminate setuptools-scm (#1842)HEADmain
* Supply MacOS deployment target to delocate, use build+uv frontend This shaves off multiple minutes from the wheel builds alone. Also revert to trusted publishing for wheel uploads as it is now set up. * Bump oldest supported Python to 3.10, eliminate setuptools-scm The version is now a string again, under the same attribute as it was before. This is a pragmatic decision in order to be able to upload wheels again, possibly directly from main. We could in the future also set the Python version to a development version if we want to avoid accidental uploads of `main`. * Add a note on supported Python versions in the docs Also fixes the setuptools failure observed in the latest CI by pinning to the last version before v73 until the problem is identified and resolved.
Diffstat (limited to 'bindings/python/google_benchmark')
-rw-r--r--bindings/python/google_benchmark/__init__.py3
-rw-r--r--bindings/python/google_benchmark/version.py7
2 files changed, 2 insertions, 8 deletions
diff --git a/bindings/python/google_benchmark/__init__.py b/bindings/python/google_benchmark/__init__.py
index c1393b4..e7870c8 100644
--- a/bindings/python/google_benchmark/__init__.py
+++ b/bindings/python/google_benchmark/__init__.py
@@ -49,7 +49,8 @@ from google_benchmark._benchmark import (
oNone as oNone,
oNSquared as oNSquared,
)
-from google_benchmark.version import __version__ as __version__
+
+__version__ = "1.9.0"
class __OptionMaker:
diff --git a/bindings/python/google_benchmark/version.py b/bindings/python/google_benchmark/version.py
deleted file mode 100644
index a324693..0000000
--- a/bindings/python/google_benchmark/version.py
+++ /dev/null
@@ -1,7 +0,0 @@
-from importlib.metadata import PackageNotFoundError, version
-
-try:
- __version__ = version("google-benchmark")
-except PackageNotFoundError:
- # package is not installed
- pass