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:           Tue Nov  7 23:06:45 UTC 2023

Modified Files:
        pkgsrc/devel/py-setuptools_scm: Makefile PLIST distinfo

Log Message:
py-setuptools_scm: update to 8.0.4.

# v8.0.4

## Changed

- introduce scriv for changelog management
- reconfigure local build backend to use an attribute instead of star imports from setuptools
- introduce ruff as a linter
- ensure the setuptools version keyword correctly load pyproject.toml configuration
- add build and wheel to the test requirements for regression testing
- move internal toml handling to own module

## Fixed

- fix #925: allow `write_to` to be an absolute path when it's a subdirectory of the root
- fix #932: ensure type annotations in version file don't cause linter issues
- fix #930: temporary restore `DEFAULT_VERSION_SCHEME` and `DEFAULT_LOCAL_SCHEME` on the `setuptools_scm` package

# v8.0.3

## bugfix

- fix #918 for good - remove external importlib-metadata to avoid source only loop
- fix #926: ensure mypy on python3.8 works with the version file

# v8.0.2

## bugfix

- fix #919: restore legacy version-file behaviour for external callers + add Deprecation warning
- fix #918: use packaging from setuptools for self-build
- fix #914: ignore the deprecated git archival plugin as its integrated now
- fix #912: ensure mypy safety of the version template + regression test
- fix #913: use 240s timeout instead of 20 for `git unshallow`
  to account for large repos or slow connections

# v8.0.1

## bugfix

- update version file template to work on older python versions by using type comments
- ensure tag regex from setup.py is parsed into regex

# v8.0.0

## breaking

- remove legacy version parser api - config arg always required
- turn Configuration into a dataclass
- require configuration to always pass into helpers
- hide file-finders implementation in private module
- renamed setuptools_scm.hacks to setuptools_scm.fallbacks and drop support for pip-egg-info
- remove trace function and use logging instead
- unify `distance=None` and `distance=0` they should mean the same andwhere hiding dirty states that are now explicitly dirty
- depend on later importlib for the full selectable api
- move setuptools integration code to private sub-package
- use normalized dist names for the `SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${DIST_NAME}` env var
- drop support for python 3.7
- introduce `version_file` as replacement for `write_to`

## features

- created a directory for the vcs-versioning package and added it to pypi
- git: expect main as possible default branch
- drop version_from_scm helper
- trim down exposed public api
- no longer self-call twice in setuptools
- add support for version schemes by import
- chores

    - migrate own metadata to pyproject.toml
    - consolidate version schemes
    - stricter tag typing
    - pre-compiled regex
    - move helpers to private modules

- support passing log levels to SETUPTOOLS_SCM_DEBUG
- support using rich.logging as console log handler if installed
- fix #527: type annotation in default version template
- fix #549: use fallbacks when scm search raises CommandNotFoundError

## bugfixes

- fix #883: use HeadersParser to ensure only mime metadata in headers is used
- fix #884: parse calver dates from versions with the v prefix
- don't use a C locale without UTF-8 support, when running commands.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 pkgsrc/devel/py-setuptools_scm/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/py-setuptools_scm/PLIST
cvs rdiff -u -r1.32 -r1.33 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.38 pkgsrc/devel/py-setuptools_scm/Makefile:1.39
--- pkgsrc/devel/py-setuptools_scm/Makefile:1.38        Wed Mar 29 09:34:09 2023
+++ pkgsrc/devel/py-setuptools_scm/Makefile     Tue Nov  7 23:06:45 2023
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.38 2023/03/29 09:34:09 wiz Exp $
+# $NetBSD: Makefile,v 1.39 2023/11/07 23:06:45 wiz Exp $
 
-DISTNAME=      setuptools_scm-7.1.0
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+DISTNAME=      setuptools-scm-8.0.4
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/-/_/}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/setuptools_scm/}
 
@@ -10,12 +10,13 @@ HOMEPAGE=   https://github.com/pypa/setupt
 COMMENT=       Manage your versions by scm tags
 LICENSE=       mit
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel>=0:../../devel/py-wheel
 DEPENDS+=      ${PYPKGPREFIX}-packaging>=20.0:../../devel/py-packaging
 DEPENDS+=      ${PYPKGPREFIX}-setuptools>=45:../../devel/py-setuptools
 DEPENDS+=      ${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions
+TEST_DEPENDS+= git-base-[0-9]*:../../devel/git-base
 TEST_DEPENDS+= ${PYPKGPREFIX}-mercurial-[0-9]*:../../devel/py-mercurial
 TEST_DEPENDS+= ${PYPKGPREFIX}-pip-[0-9]*:../../devel/py-pip
-TEST_DEPENDS+= ${PYPKGPREFIX}-test>=6.2:../../devel/py-test
 TEST_DEPENDS+= ${PYPKGPREFIX}-virtualenv>=20:../../devel/py-virtualenv
 
 USE_LANGUAGES= # none
@@ -28,13 +29,5 @@ PYTHON_VERSIONS_INCOMPATIBLE=        27
 DEPENDS+=      ${PYPKGPREFIX}-tomli>=1.0.0:../../textproc/py-tomli
 .endif
 
-TEST_ENV+=     PYTHONPATH=${WRKSRC}/build/lib
-# needs to be installed for testing, otherwise you'll see
-# INTERNALERROR> importlib.metadata.PackageNotFoundError: No package metadata was found for setuptools_scm
-# as of 7.1.0:
-# 1 failed, 217 passed, 33 skipped, 3 xfailed, 1 xpassed
-do-test:
-       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
-
-.include "../../lang/python/egg.mk"
+.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.8 pkgsrc/devel/py-setuptools_scm/PLIST:1.9
--- pkgsrc/devel/py-setuptools_scm/PLIST:1.8    Thu Oct 13 12:11:12 2022
+++ pkgsrc/devel/py-setuptools_scm/PLIST        Tue Nov  7 23:06:45 2023
@@ -1,11 +1,11 @@
-@comment $NetBSD: PLIST,v 1.8 2022/10/13 12:11:12 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
-${PYSITELIB}/${EGG_INFODIR}/zip-safe
+@comment $NetBSD: PLIST,v 1.9 2023/11/07 23:06:45 wiz Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/setuptools_scm/.git_archival.txt
 ${PYSITELIB}/setuptools_scm/__init__.py
 ${PYSITELIB}/setuptools_scm/__init__.pyc
 ${PYSITELIB}/setuptools_scm/__init__.pyo
@@ -15,48 +15,66 @@ ${PYSITELIB}/setuptools_scm/__main__.pyo
 ${PYSITELIB}/setuptools_scm/_cli.py
 ${PYSITELIB}/setuptools_scm/_cli.pyc
 ${PYSITELIB}/setuptools_scm/_cli.pyo
+${PYSITELIB}/setuptools_scm/_config.py
+${PYSITELIB}/setuptools_scm/_config.pyc
+${PYSITELIB}/setuptools_scm/_config.pyo
 ${PYSITELIB}/setuptools_scm/_entrypoints.py
 ${PYSITELIB}/setuptools_scm/_entrypoints.pyc
 ${PYSITELIB}/setuptools_scm/_entrypoints.pyo
+${PYSITELIB}/setuptools_scm/_file_finders/__init__.py
+${PYSITELIB}/setuptools_scm/_file_finders/__init__.pyc
+${PYSITELIB}/setuptools_scm/_file_finders/__init__.pyo
+${PYSITELIB}/setuptools_scm/_file_finders/git.py
+${PYSITELIB}/setuptools_scm/_file_finders/git.pyc
+${PYSITELIB}/setuptools_scm/_file_finders/git.pyo
+${PYSITELIB}/setuptools_scm/_file_finders/hg.py
+${PYSITELIB}/setuptools_scm/_file_finders/hg.pyc
+${PYSITELIB}/setuptools_scm/_file_finders/hg.pyo
+${PYSITELIB}/setuptools_scm/_get_version_impl.py
+${PYSITELIB}/setuptools_scm/_get_version_impl.pyc
+${PYSITELIB}/setuptools_scm/_get_version_impl.pyo
 ${PYSITELIB}/setuptools_scm/_integration/__init__.py
 ${PYSITELIB}/setuptools_scm/_integration/__init__.pyc
 ${PYSITELIB}/setuptools_scm/_integration/__init__.pyo
+${PYSITELIB}/setuptools_scm/_integration/dump_version.py
+${PYSITELIB}/setuptools_scm/_integration/dump_version.pyc
+${PYSITELIB}/setuptools_scm/_integration/dump_version.pyo
 ${PYSITELIB}/setuptools_scm/_integration/pyproject_reading.py
 ${PYSITELIB}/setuptools_scm/_integration/pyproject_reading.pyc
 ${PYSITELIB}/setuptools_scm/_integration/pyproject_reading.pyo
 ${PYSITELIB}/setuptools_scm/_integration/setuptools.py
 ${PYSITELIB}/setuptools_scm/_integration/setuptools.pyc
 ${PYSITELIB}/setuptools_scm/_integration/setuptools.pyo
+${PYSITELIB}/setuptools_scm/_integration/toml.py
+${PYSITELIB}/setuptools_scm/_integration/toml.pyc
+${PYSITELIB}/setuptools_scm/_integration/toml.pyo
+${PYSITELIB}/setuptools_scm/_log.py
+${PYSITELIB}/setuptools_scm/_log.pyc
+${PYSITELIB}/setuptools_scm/_log.pyo
+${PYSITELIB}/setuptools_scm/_modify_version.py
+${PYSITELIB}/setuptools_scm/_modify_version.pyc
+${PYSITELIB}/setuptools_scm/_modify_version.pyo
 ${PYSITELIB}/setuptools_scm/_overrides.py
 ${PYSITELIB}/setuptools_scm/_overrides.pyc
 ${PYSITELIB}/setuptools_scm/_overrides.pyo
+${PYSITELIB}/setuptools_scm/_run_cmd.py
+${PYSITELIB}/setuptools_scm/_run_cmd.pyc
+${PYSITELIB}/setuptools_scm/_run_cmd.pyo
 ${PYSITELIB}/setuptools_scm/_types.py
 ${PYSITELIB}/setuptools_scm/_types.pyc
 ${PYSITELIB}/setuptools_scm/_types.pyo
 ${PYSITELIB}/setuptools_scm/_version_cls.py
 ${PYSITELIB}/setuptools_scm/_version_cls.pyc
 ${PYSITELIB}/setuptools_scm/_version_cls.pyo
-${PYSITELIB}/setuptools_scm/config.py
-${PYSITELIB}/setuptools_scm/config.pyc
-${PYSITELIB}/setuptools_scm/config.pyo
 ${PYSITELIB}/setuptools_scm/discover.py
 ${PYSITELIB}/setuptools_scm/discover.pyc
 ${PYSITELIB}/setuptools_scm/discover.pyo
-${PYSITELIB}/setuptools_scm/file_finder.py
-${PYSITELIB}/setuptools_scm/file_finder.pyc
-${PYSITELIB}/setuptools_scm/file_finder.pyo
-${PYSITELIB}/setuptools_scm/file_finder_git.py
-${PYSITELIB}/setuptools_scm/file_finder_git.pyc
-${PYSITELIB}/setuptools_scm/file_finder_git.pyo
-${PYSITELIB}/setuptools_scm/file_finder_hg.py
-${PYSITELIB}/setuptools_scm/file_finder_hg.pyc
-${PYSITELIB}/setuptools_scm/file_finder_hg.pyo
+${PYSITELIB}/setuptools_scm/fallbacks.py
+${PYSITELIB}/setuptools_scm/fallbacks.pyc
+${PYSITELIB}/setuptools_scm/fallbacks.pyo
 ${PYSITELIB}/setuptools_scm/git.py
 ${PYSITELIB}/setuptools_scm/git.pyc
 ${PYSITELIB}/setuptools_scm/git.pyo
-${PYSITELIB}/setuptools_scm/hacks.py
-${PYSITELIB}/setuptools_scm/hacks.pyc
-${PYSITELIB}/setuptools_scm/hacks.pyo
 ${PYSITELIB}/setuptools_scm/hg.py
 ${PYSITELIB}/setuptools_scm/hg.pyc
 ${PYSITELIB}/setuptools_scm/hg.pyo
@@ -69,9 +87,6 @@ ${PYSITELIB}/setuptools_scm/integration.
 ${PYSITELIB}/setuptools_scm/scm_workdir.py
 ${PYSITELIB}/setuptools_scm/scm_workdir.pyc
 ${PYSITELIB}/setuptools_scm/scm_workdir.pyo
-${PYSITELIB}/setuptools_scm/utils.py
-${PYSITELIB}/setuptools_scm/utils.pyc
-${PYSITELIB}/setuptools_scm/utils.pyo
 ${PYSITELIB}/setuptools_scm/version.py
 ${PYSITELIB}/setuptools_scm/version.pyc
 ${PYSITELIB}/setuptools_scm/version.pyo

Index: pkgsrc/devel/py-setuptools_scm/distinfo
diff -u pkgsrc/devel/py-setuptools_scm/distinfo:1.32 pkgsrc/devel/py-setuptools_scm/distinfo:1.33
--- pkgsrc/devel/py-setuptools_scm/distinfo:1.32        Wed Jan  4 10:32:00 2023
+++ pkgsrc/devel/py-setuptools_scm/distinfo     Tue Nov  7 23:06:45 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.32 2023/01/04 10:32:00 adam Exp $
+$NetBSD: distinfo,v 1.33 2023/11/07 23:06:45 wiz Exp $
 
-BLAKE2s (setuptools_scm-7.1.0.tar.gz) = e84926f7be7b59dc8c3706af80e648b89fb202705be99faf036dfe3ceca29ee8
-SHA512 (setuptools_scm-7.1.0.tar.gz) = bd7260672c213db6b8c5842dbb6ac69e69ce040777865c935033971f65d905bd8e6b54e174190a924e452c302e69d4c1de231cbc8f603176ba013a739840dad3
-Size (setuptools_scm-7.1.0.tar.gz) = 71904 bytes
+BLAKE2s (setuptools-scm-8.0.4.tar.gz) = 392feaab0f6de02d634214ccb95965a17fc382ef9966ed95fed83157c0e1bc1d
+SHA512 (setuptools-scm-8.0.4.tar.gz) = 1b584f20dfad115f379a97de9e96bb3b36ab00986381748c2f395facd26ce01a6556ccfbabeb8f0cf9ce8720b26ce3a00040dba02cc689701ccf1d31f13277da
+Size (setuptools-scm-8.0.4.tar.gz) = 74280 bytes



Home | Main Index | Thread Index | Old Index