diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-15 00:00:58 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-15 00:43:14 +0200 |
| commit | 8c555846f9c354ce2c56cc3ef9a1ce1fe34dffd2 (patch) | |
| tree | 887f854445725725565988863e88185867462df5 | |
| parent | project-clang-format.py: try to respect .clang-format-ignore (diff) | |
| download | cmake-common-6.0.5.tar.gz cmake-common-6.0.5.zip | |
require Python 3.8v6.0.5
I actually tried running this w/ Python 3.6, and it's just a PITA. A
couple of later features are already in use.
| -rw-r--r-- | project/version.py | 6 | ||||
| -rw-r--r-- | pyproject.toml | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/project/version.py b/project/version.py index 41b36ad..3aa3c44 100644 --- a/project/version.py +++ b/project/version.py @@ -1,8 +1,4 @@ -try: - from importlib import metadata -except ImportError: - import importlib_metadata as metadata - +from importlib import metadata try: __version__ = metadata.version('cmake_common') diff --git a/pyproject.toml b/pyproject.toml index d399242..dfa34f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,11 +12,7 @@ license-files = ["LICENSE.txt"] dynamic = ["version"] authors = [{name = "Egor Tensin", email = "egor@tensin.name"}] readme = "README.md" -requires-python = ">=3.6" - -dependencies = [ - 'importlib-metadata ~= 4.0 ; python_version < "3.8"', -] +requires-python = ">=3.8" classifiers = [ "Development Status :: 4 - Beta", |
