pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-versioningit



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue Jan 16 09:03:12 UTC 2024

Modified Files:
        pkgsrc/devel/py-versioningit: Makefile PLIST distinfo
Added Files:
        pkgsrc/devel/py-versioningit: ALTERNATIVES

Log Message:
py-versioningit: updated to 3.0.0

v3.0.0 (2023-12-13)
-------------------
- Migrated from setuptools to hatch
- Support using the `onbuild` step with Hatch
- **Breaking**: The `build_dir` argument passed to `Versioningit.do_onbuild()`
  and `onbuild` method callables has been changed to an `OnbuildFileProvider`
  ABC

v2.3.0 (2023-11-19)
-------------------
- Always read `.hg_archival.txt` files using UTF-8 encoding
- Added support for using versioningit with [Hatch](https://hatch.pypa.io)

v2.2.1 (2023-09-22)
-------------------
- Raise a `ConfigError` if the selected `tool.versioningit.format` field is not
  a string
- Update tests for pydantic 2.0
- Update tests for Python 3.12
- Support Python 3.12

v2.2.0 (2023-02-11)
-------------------
- The custom setuptools command classes can now be imported directly from the
  `versioningit.cmdclass` module as an alternative to calling
  `get_cmdclasses()`

v2.1.0 (2022-10-25)
-------------------
- Drop support for Python 3.6
- Support Python 3.11
- Use `tomllib` on Python 3.11

v2.0.1 (2022-08-01)
-------------------
- Don't run the `onbuild` step under setuptools' upcoming PEP 660 editable mode
  (contributed by [@abravalheri](https://github.com/abravalheri))

v2.0.0 (2022-06-12)
-------------------
- The `{version}` placeholder in the "basic" `format` step has been renamed to
  `{base_version}`.  The old name remains usable, but is deprecated.
    - **Breaking**: The `version` argument passed to `Versioningit.do_format()`
      and `format` method callables has been renamed to `base_version`.
- A `{version_tuple}` field, along with the fields available in the `format`
  step, is now available for use in templates in the `write` and `onbuild`
  steps.
    - New step and subtable: "template-fields"
    - **Breaking**: The `version` arguments passed to
      `Versioningit.do_write()`, `Versioningit.do_onbuild()`, `run_onbuild()`,
      and `write` & `onbuild` method callables have been replaced with
      `template_fields` arguments
    - Added a `get_template_fields_from_distribution()` function for use by
      callers of `run_onbuild()`
- `Versioningit.get_version()` now takes optional `write` and `fallback`
  arguments
- The `onbuild` step is no longer run when building from an sdist; the
  configuration therefore no longer needs to be idempotent
- Drop setuptools runtime dependency
    - setuptools is only needed for `get_cmdclasses()`, which should only be
      called in an environment where setuptools is already installed.
- Prevent log messages from being printed twice under recent versions of
  setuptools
- Values supplied for the `require-match` parameters of the `tag2version` and
  `onbuild` steps must now actually be booleans; previously, values of any type
  were accepted and were converted to booleans.
- Added a `Versioningit.run()` method that returns a structure containing all
  intermediate & final values
- "git" method: `{author_date}` and `{committer_date}` are no longer "clamped"
  to less than or equal to `{build_date}`.  This undocumented behavior was
  based on a misinterpretation of the `SOURCE_DATE_EPOCH` spec, and was even
  applied when `SOURCE_DATE_EPOCH` was not set.
- When resolving entry points, if multiple entry points with the given group &
  name are found, error instead of using the first one returned


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-versioningit/ALTERNATIVES
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/py-versioningit/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-versioningit/PLIST
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-versioningit/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-versioningit/Makefile
diff -u pkgsrc/devel/py-versioningit/Makefile:1.4 pkgsrc/devel/py-versioningit/Makefile:1.5
--- pkgsrc/devel/py-versioningit/Makefile:1.4   Sat Oct 28 19:57:08 2023
+++ pkgsrc/devel/py-versioningit/Makefile       Tue Jan 16 09:03:12 2024
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2023/10/28 19:57:08 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2024/01/16 09:03:12 adam Exp $
 
-DISTNAME=      versioningit-1.1.1
+DISTNAME=      versioningit-3.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   2
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=v/versioningit/}
 
@@ -11,28 +10,24 @@ HOMEPAGE=   https://github.com/jwodder/ver
 COMMENT=       Use version control tags to discover version numbers
 LICENSE=       isc
 
-DEPENDS+=      ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
+DEPENDS+=      ${PYPKGPREFIX}-packaging>=17.1:../../devel/py-packaging
 DEPENDS+=      ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
 DEPENDS+=      ${PYPKGPREFIX}-tomli>=1.2:../../textproc/py-tomli
-TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel>=0.32:../../devel/py-wheel
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-dantic-[0-9]*:../../wip/py-dantic
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../lang/python/pyversion.mk"
-
 .if ${PYTHON_VERSION} < 310
 DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
 .endif
 
-# as of 1.1.1
-# 8 failed, 319 passed, 88 skipped
-TEST_ENV+=     PYTHONPATH=${WRKSRC}/build/lib
-do-test:
-       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} versioningit versioningit-${PYVERSSUFFIX} || ${TRUE}
 
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-versioningit/PLIST
diff -u pkgsrc/devel/py-versioningit/PLIST:1.3 pkgsrc/devel/py-versioningit/PLIST:1.4
--- pkgsrc/devel/py-versioningit/PLIST:1.3      Sat Oct 28 19:57:08 2023
+++ pkgsrc/devel/py-versioningit/PLIST  Tue Jan 16 09:03:12 2024
@@ -1,11 +1,10 @@
-@comment $NetBSD: PLIST,v 1.3 2023/10/28 19:57:08 wiz Exp $
-bin/versioningit
-${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+@comment $NetBSD: PLIST,v 1.4 2024/01/16 09:03:12 adam Exp $
+bin/versioningit-${PYVERSSUFFIX}
 ${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}/${WHEEL_INFODIR}/licenses/LICENSE
 ${PYSITELIB}/versioningit/__init__.py
 ${PYSITELIB}/versioningit/__init__.pyc
 ${PYSITELIB}/versioningit/__init__.pyo
@@ -15,9 +14,9 @@ ${PYSITELIB}/versioningit/__main__.pyo
 ${PYSITELIB}/versioningit/basics.py
 ${PYSITELIB}/versioningit/basics.pyc
 ${PYSITELIB}/versioningit/basics.pyo
-${PYSITELIB}/versioningit/cmdclasses.py
-${PYSITELIB}/versioningit/cmdclasses.pyc
-${PYSITELIB}/versioningit/cmdclasses.pyo
+${PYSITELIB}/versioningit/cmdclass.py
+${PYSITELIB}/versioningit/cmdclass.pyc
+${PYSITELIB}/versioningit/cmdclass.pyo
 ${PYSITELIB}/versioningit/config.py
 ${PYSITELIB}/versioningit/config.pyc
 ${PYSITELIB}/versioningit/config.pyo
@@ -27,9 +26,15 @@ ${PYSITELIB}/versioningit/core.pyo
 ${PYSITELIB}/versioningit/errors.py
 ${PYSITELIB}/versioningit/errors.pyc
 ${PYSITELIB}/versioningit/errors.pyo
+${PYSITELIB}/versioningit/get_cmdclasses.py
+${PYSITELIB}/versioningit/get_cmdclasses.pyc
+${PYSITELIB}/versioningit/get_cmdclasses.pyo
 ${PYSITELIB}/versioningit/git.py
 ${PYSITELIB}/versioningit/git.pyc
 ${PYSITELIB}/versioningit/git.pyo
+${PYSITELIB}/versioningit/hatch.py
+${PYSITELIB}/versioningit/hatch.pyc
+${PYSITELIB}/versioningit/hatch.pyo
 ${PYSITELIB}/versioningit/hg.py
 ${PYSITELIB}/versioningit/hg.pyc
 ${PYSITELIB}/versioningit/hg.pyo

Index: pkgsrc/devel/py-versioningit/distinfo
diff -u pkgsrc/devel/py-versioningit/distinfo:1.1 pkgsrc/devel/py-versioningit/distinfo:1.2
--- pkgsrc/devel/py-versioningit/distinfo:1.1   Wed May 11 17:51:43 2022
+++ pkgsrc/devel/py-versioningit/distinfo       Tue Jan 16 09:03:12 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1 2022/05/11 17:51:43 bouyer Exp $
+$NetBSD: distinfo,v 1.2 2024/01/16 09:03:12 adam Exp $
 
-BLAKE2s (versioningit-1.1.1.tar.gz) = b6108b0cb1c4619049774c2c7a6dd76eb867d0c810cc619a79ed79b09f2f4617
-SHA512 (versioningit-1.1.1.tar.gz) = 4bcb4253198207d5dbb99358e823cd404f98fd9f265e0801c92a2f220241637cffa8bfc8184a1754b45353423e1bde1a5e5019876acce9536ad658289a638852
-Size (versioningit-1.1.1.tar.gz) = 678420 bytes
+BLAKE2s (versioningit-3.0.0.tar.gz) = a7894bfd3c5c45b586782e0493f285c2eb6f95a67264cb65a883c70770ff23df
+SHA512 (versioningit-3.0.0.tar.gz) = 162cbe50d22be03c20e5d6efad0672264544fa918d706cdf158b30befe429f8ba0621b664c91ccad2f13d24176f7a3a1a36a8dc2b7a0263c8585d06b4f98bc41
+Size (versioningit-3.0.0.tar.gz) = 203693 bytes

Added files:

Index: pkgsrc/devel/py-versioningit/ALTERNATIVES
diff -u /dev/null pkgsrc/devel/py-versioningit/ALTERNATIVES:1.1
--- /dev/null   Tue Jan 16 09:03:13 2024
+++ pkgsrc/devel/py-versioningit/ALTERNATIVES   Tue Jan 16 09:03:12 2024
@@ -0,0 +1 @@
+bin/versioningit @PREFIX@/bin/versioningit-@PYVERSSUFFIX@



Home | Main Index | Thread Index | Old Index