Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pdm-backend for openSUSE:Factory checked in at 2025-12-30 12:00:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pdm-backend (Old) and /work/SRC/openSUSE:Factory/.python-pdm-backend.new.1928 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pdm-backend" Tue Dec 30 12:00:09 2025 rev:7 rq:1324584 version:2.4.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pdm-backend/python-pdm-backend.changes 2025-07-25 17:04:47.947952725 +0200 +++ /work/SRC/openSUSE:Factory/.python-pdm-backend.new.1928/python-pdm-backend.changes 2025-12-30 12:00:11.764145606 +0100 @@ -1,0 +2,11 @@ +Sun Dec 28 19:28:44 UTC 2025 - Dirk Müller <[email protected]> + +- update to 2.4.6: + * Env for calling Python applications + * No warning emitting in case of SCM error when + fallback_version is used. Fixes #293 - + * Don't silently ignores invalid `PDM_BUILD_SCM_VERSION` env + var . + * Add license file metadata - + +------------------------------------------------------------------- Old: ---- pdm_backend-2.4.5.tar.gz New: ---- pdm_backend-2.4.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pdm-backend.spec ++++++ --- /var/tmp/diff_new_pack.SAEMGR/_old 2025-12-30 12:00:13.324209689 +0100 +++ /var/tmp/diff_new_pack.SAEMGR/_new 2025-12-30 12:00:13.328209853 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pdm-backend # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-pdm-backend -Version: 2.4.5 +Version: 2.4.6 Release: 0 Summary: Backend used by PDM License: MIT ++++++ pdm_backend-2.4.5.tar.gz -> pdm_backend-2.4.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pdm_backend-2.4.5/PKG-INFO new/pdm_backend-2.4.6/PKG-INFO --- old/pdm_backend-2.4.5/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 +++ new/pdm_backend-2.4.6/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 @@ -1,10 +1,11 @@ -Metadata-Version: 2.1 +Metadata-Version: 2.4 Name: pdm-backend -Version: 2.4.5 +Version: 2.4.6 Summary: The build backend used by PDM that supports latest packaging standards Keywords: packaging,PEP 517,build Author-Email: Frost Ming <[email protected]> -License: MIT +License-Expression: MIT +License-File: LICENSE Classifier: Development Status :: 5 - Production/Stable Classifier: Topic :: Software Development :: Build Tools Classifier: Programming Language :: Python :: 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pdm_backend-2.4.5/pyproject.toml new/pdm_backend-2.4.6/pyproject.toml --- old/pdm_backend-2.4.5/pyproject.toml 2025-07-03 05:17:09.265044000 +0200 +++ new/pdm_backend-2.4.6/pyproject.toml 2025-11-11 02:41:51.869625300 +0100 @@ -4,6 +4,10 @@ authors = [ { name = "Frost Ming", email = "[email protected]" }, ] +license = "MIT" +license-files = [ + "LICENSE", +] requires-python = ">=3.9" readme = "README.md" keywords = [ @@ -25,10 +29,7 @@ dependencies = [ "importlib-metadata>=3.6; python_version < \"3.10\"", ] -version = "2.4.5" - -[project.license] -text = "MIT" +version = "2.4.6" [project.urls] Homepage = "https://github.com/pdm-project/pdm-backend" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pdm_backend-2.4.5/src/pdm/backend/hooks/version/__init__.py new/pdm_backend-2.4.6/src/pdm/backend/hooks/version/__init__.py --- old/pdm_backend-2.4.5/src/pdm/backend/hooks/version/__init__.py 2025-07-03 05:16:58.704994200 +0200 +++ new/pdm_backend-2.4.6/src/pdm/backend/hooks/version/__init__.py 2025-11-11 02:41:41.257570000 +0100 @@ -17,6 +17,10 @@ ) from pdm.backend.utils import evaluate_module_attribute +_fallback_version_warning = ( + "Can't get a valid version from {}, use fallback_version instead." +) + class DynamicVersionBuildHook: """Dynamic version implementation. @@ -86,8 +90,10 @@ fallback_version: str | None = None, ) -> Version: if os.environ.get("PDM_BUILD_SCM_VERSION"): + source = "environment variable" version = os.environ["PDM_BUILD_SCM_VERSION"] else: + source = "scm" version_formatter: ( Callable[[SCMVersion, Context], str] | Callable[[SCMVersion], str] ) @@ -102,6 +108,7 @@ ) if scm_version is None: if fallback_version is not None: + warnings.warn(_fallback_version_warning.format(source), PDMWarning) version = fallback_version else: raise ConfigError( @@ -119,6 +126,7 @@ parsed_version = Version(version) except ValueError: if fallback_version is not None: + warnings.warn(_fallback_version_warning.format(source), PDMWarning) return Version(fallback_version) raise ConfigError( f"Invalid version {version}, it must comply with PEP 440. \n" @@ -162,6 +170,7 @@ version = version_getter(*args) if version is None: if fallback_version is not None: + warnings.warn(_fallback_version_warning.format("call"), PDMWarning) return Version(fallback_version) else: raise ConfigError( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pdm_backend-2.4.5/src/pdm/backend/hooks/version/scm.py new/pdm_backend-2.4.6/src/pdm/backend/hooks/version/scm.py --- old/pdm_backend-2.4.5/src/pdm/backend/hooks/version/scm.py 2025-07-03 05:16:58.704994200 +0200 +++ new/pdm_backend-2.4.6/src/pdm/backend/hooks/version/scm.py 2025-11-11 02:41:41.257570000 +0100 @@ -46,6 +46,14 @@ if not k.startswith("GIT_") or k in ("GIT_EXEC_PATH", "GIT_SSH", "GIT_SSH_COMMAND") } + # adapted from setuptools-scm + # PYTHONPATH can break Python applications installed with Pipx, UV, etc. + if "PYTHONPATH" in env: + env["PYTHONPATH"] = os.pathsep.join( + path + for path in env["PYTHONPATH"].split(os.pathsep) + if "-build-env-" not in path + ) env.update({"LC_ALL": "C", "LANG": "", "HGPLAIN": "1"}) if extra_env: env.update(extra_env)
