pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-setuptools_scm
Module Name: pkgsrc
Committed By: wiz
Date: Mon Sep 28 16:49:45 UTC 2026
Modified Files:
pkgsrc/devel/py-setuptools_scm: Makefile PLIST distinfo
Log Message:
py-setuptools_scm: update to 10.3.4.
## 10.3.4 (2026-09-23)
### Fixed
- Ship the tracked files of projects whose `pyproject.toml` sits in a subdirectory
of the checkout. `root` defaults to the project directory, so version inference
correctly finds no SCM there and answers from `SETUPTOOLS_SCM_PRETEND_VERSION`
or `fallback_version` -- but that says nothing about which files git tracks, and
the sdist and wheel came out with none of them. This was the 10.3.0 regression
fixed in 10.3.3, surviving in the subdirectory layout.
File discovery now follows the checkout the project sits in, independently of
the `root` that scopes versioning, and records `scm_file_list.json` in the
egg-info as a root-level project already did. ([#1543](https://github.com/pypa/setuptools-scm/issues/1543))
- Require `vcs-versioning>=2.5.0`. The subdirectory file-discovery fix (#1543) imports
`discover_file_workdir`, which no earlier release has, while the declared floor still
named 2.4.0 -- an install against a published vcs-versioning raised `ImportError`
during the build. ([#1546](https://github.com/pypa/setuptools-scm/issues/1546))
## 10.3.3 (2026-09-16)
### Fixed
- Keep file discovery working when the version is pretended.
`SETUPTOOLS_SCM_PRETEND_VERSION` and its scoped `_FOR_<DIST>` form made
version inference return before discovering a workdir, and the `egg_info`
mixin read the absent workdir as "searched, found no checkout" -- the signal
it acts on by suppressing the `setuptools.file_finders` chain. Every
SCM-tracked file that setuptools' own package discovery does not find was
then dropped from the sdist and the wheel, silently, since the build
succeeded and the version was correct.
A pretended version still skips discovery, because most builds only want a
version and probing for a checkout nobody asks about costs subprocesses for
nothing. What no longer happens is passing that off as an answer: "nobody
looked yet" is now distinct from "looked and found nothing", and the workdir
is discovered on demand the first time a consumer needs a file list.
`scm_file_list.json` is now written to the egg-info for pretended builds as
well. It describes which files the checkout tracks, which a pretended
version says nothing about. `scm_version.json` stays absent there, because
a pretended version must not be recorded as what the SCM said. ([#1540](https://github.com/pypa/setuptools-scm/issues/1540))
## 10.3.2 (2026-09-14)
### Fixed
- Stop the command mixins from reordering a project's own ``build_py``, ``egg_info``
or ``bdist_wheel`` MRO. ``ScmVersionFileMixin`` and friends inherited from the
corresponding setuptools command, so wrapping a project class built on a disjoint
hierarchy -- ``distutils.command.build_py``, or the standalone ``wheel`` package's
``bdist_wheel`` -- placed setuptools' command *ahead* of the project's class.
``setuptools.build_py.run()`` does not delegate any further, so the project's
``run()`` was silently skipped, surfacing as
``error: package directory '...' does not exist``. The mixins now carry no runtime
base class and linearise to ``(wrapped, mixin, *project_command.__mro__)``. ([#1531](https://github.com/pypa/setuptools-scm/issues/1531))
- Leave a project's ``cmdclass`` alone when setuptools-scm is installed but not
actually inferring a version. ``build_py``, ``egg_info`` and ``bdist_wheel`` are
now registered only once version inference has stored data on the distribution --
the precondition for any of the mixins doing something. Previously every project
with a ``pyproject.toml`` had its commands wrapped, including projects with no
``[tool.setuptools_scm]`` section at all.
Note for projects that *used* to configure setuptools-scm and no longer do: a
``scm_version.json`` left behind in a stale ``*.egg-info`` directory is no longer
stripped from built wheels, because the ``bdist_wheel`` mixin that strips it is no
longer registered either. Remove the stale ``*.egg-info`` directory. ([#1533](https://github.com/pypa/setuptools-scm/issues/1533))
## 10.3.1 (2026-09-14)
### Fixed
- Require ``vcs-versioning>=2.4.0``. setuptools-scm 10.3.0 declared ``>=2.3.2`` but
imports ``vcs_versioning._file_finders.scm_search_known_failed``, which vcs-versioning
only gained in 2.4.0, so installing it alongside an older vcs-versioning failed with
``ImportError``. CI now installs setuptools-scm against the oldest vcs-versioning its
metadata permits, so the lower bound can no longer go stale unnoticed. ([#1528](https://github.com/pypa/setuptools-scm/issues/1528))
## 10.3.0 (2026-09-12)
### Deprecated
- Emit a ``DeprecationWarning`` when the ``setuptools.file_finders``
entry point is invoked for a project that does not configure
setuptools-scm. The entry point will be removed in a future major
release. ([#1407](https://github.com/pypa/setuptools-scm/issues/1407))
### Fixed
- Run the `setuptools.file_finders` hook inside a setuptools-scm
override context. It previously resolved settings under the
`VCS_VERSIONING` prefix only, so documented variables such as
`SETUPTOOLS_SCM_SUBPROCESS_TIMEOUT` and `SETUPTOOLS_SCM_HG_COMMAND`
were ignored when finding files.
When version inference has already run and found no SCM checkout,
the `egg_info` mixin now tells the file finders so, rather than
letting `walk_revctrl()` re-probe every backend for a repository
known to be absent.
([#1212](https://github.com/pypa/setuptools-scm/issues/1212))
To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 pkgsrc/devel/py-setuptools_scm/Makefile
cvs rdiff -u -r1.16 -r1.17 pkgsrc/devel/py-setuptools_scm/PLIST
cvs rdiff -u -r1.46 -r1.47 pkgsrc/devel/py-setuptools_scm/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-setuptools_scm/Makefile
diff -u pkgsrc/devel/py-setuptools_scm/Makefile:1.55 pkgsrc/devel/py-setuptools_scm/Makefile:1.56
--- pkgsrc/devel/py-setuptools_scm/Makefile:1.55 Fri Sep 4 05:13:54 2026
+++ pkgsrc/devel/py-setuptools_scm/Makefile Mon Sep 28 16:49:44 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.55 2026/09/04 05:13:54 adam Exp $
+# $NetBSD: Makefile,v 1.56 2026/09/28 16:49:44 wiz Exp $
-DISTNAME= setuptools_scm-10.2.3
+DISTNAME= setuptools_scm-10.3.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=s/setuptools_scm/}
@@ -12,7 +12,7 @@ LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-packaging>=20:../../devel/py-packaging
DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
-DEPENDS+= ${PYPKGPREFIX}-vcs-versioning>=2.3.2:../../devel/py-vcs-versioning
+DEPENDS+= ${PYPKGPREFIX}-vcs-versioning>=2.5.0:../../devel/py-vcs-versioning
TEST_DEPENDS+= git-base>=0:../../devel/git-base
TEST_DEPENDS+= ${PYPKGPREFIX}-mercurial>=0:../../devel/py-mercurial
TEST_DEPENDS+= ${PYPKGPREFIX}-pip>=0:../../devel/py-pip
@@ -29,8 +29,8 @@ DEPENDS+= ${PYPKGPREFIX}-tomli>=1:../../
DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=4.1:../../devel/py-typing-extensions
.endif
-# test status as of 10.0.5
-# 2 failed, 134 passed, 6 skipped
+# test status as of 10.3.4
+# 4 failed, 199 passed, 8 skipped
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-setuptools_scm/PLIST
diff -u pkgsrc/devel/py-setuptools_scm/PLIST:1.16 pkgsrc/devel/py-setuptools_scm/PLIST:1.17
--- pkgsrc/devel/py-setuptools_scm/PLIST:1.16 Wed Jul 22 08:14:03 2026
+++ pkgsrc/devel/py-setuptools_scm/PLIST Mon Sep 28 16:49:44 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.16 2026/07/22 08:14:03 adam Exp $
+@comment $NetBSD: PLIST,v 1.17 2026/09/28 16:49:44 wiz Exp $
bin/setuptools-scm-${PYVERSSUFFIX}
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -37,6 +37,9 @@ ${PYSITELIB}/setuptools_scm/_integration
${PYSITELIB}/setuptools_scm/_integration/egg_info.py
${PYSITELIB}/setuptools_scm/_integration/egg_info.pyc
${PYSITELIB}/setuptools_scm/_integration/egg_info.pyo
+${PYSITELIB}/setuptools_scm/_integration/file_finders.py
+${PYSITELIB}/setuptools_scm/_integration/file_finders.pyc
+${PYSITELIB}/setuptools_scm/_integration/file_finders.pyo
${PYSITELIB}/setuptools_scm/_integration/pyproject_reading.py
${PYSITELIB}/setuptools_scm/_integration/pyproject_reading.pyc
${PYSITELIB}/setuptools_scm/_integration/pyproject_reading.pyo
Index: pkgsrc/devel/py-setuptools_scm/distinfo
diff -u pkgsrc/devel/py-setuptools_scm/distinfo:1.46 pkgsrc/devel/py-setuptools_scm/distinfo:1.47
--- pkgsrc/devel/py-setuptools_scm/distinfo:1.46 Fri Sep 4 05:13:54 2026
+++ pkgsrc/devel/py-setuptools_scm/distinfo Mon Sep 28 16:49:44 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.46 2026/09/04 05:13:54 adam Exp $
+$NetBSD: distinfo,v 1.47 2026/09/28 16:49:44 wiz Exp $
-BLAKE2s (setuptools_scm-10.2.3.tar.gz) = c7c956e477e23e95ba8bda349aadc0e37f63370079780b3509accad9ecb32177
-SHA512 (setuptools_scm-10.2.3.tar.gz) = 845403e925247c70f9399dc98da08e13fd5bbdbabb339ed380abccc07590eaf35efc592c04f5b8b44e55bbbf63d5c92e423fc12cf06534efafff20fb70c53f57
-Size (setuptools_scm-10.2.3.tar.gz) = 67696 bytes
+BLAKE2s (setuptools_scm-10.3.4.tar.gz) = 2f708fbe021d75f1ea93f50e124444647f17bc4afc9c2668752a3c505edbb94d
+SHA512 (setuptools_scm-10.3.4.tar.gz) = e78e0563aec6b9ae5b1f445cee5515c4db85d9533d720d04a68edb3d1f0399c79ccefff0338a026ca0fb4bc6d4a57d7e22074a4560c875a64ec67f0369f527a0
+Size (setuptools_scm-10.3.4.tar.gz) = 78410 bytes
Home |
Main Index |
Thread Index |
Old Index