head	1.11;
access;
symbols
	pkgsrc-2026Q1:1.11.0.4
	pkgsrc-2026Q1-base:1.11
	pkgsrc-2025Q4:1.11.0.2
	pkgsrc-2025Q4-base:1.11
	pkgsrc-2025Q3:1.10.0.2
	pkgsrc-2025Q3-base:1.10
	pkgsrc-2025Q2:1.9.0.2
	pkgsrc-2025Q2-base:1.9
	pkgsrc-2025Q1:1.8.0.6
	pkgsrc-2025Q1-base:1.8
	pkgsrc-2024Q4:1.8.0.4
	pkgsrc-2024Q4-base:1.8
	pkgsrc-2024Q3:1.8.0.2
	pkgsrc-2024Q3-base:1.8
	pkgsrc-2024Q2:1.7.0.2
	pkgsrc-2024Q2-base:1.7
	pkgsrc-2024Q1:1.5.0.2
	pkgsrc-2024Q1-base:1.5
	pkgsrc-2023Q4:1.4.0.2
	pkgsrc-2023Q4-base:1.4
	pkgsrc-2023Q3:1.3.0.4
	pkgsrc-2023Q3-base:1.3
	pkgsrc-2023Q2:1.3.0.2
	pkgsrc-2023Q2-base:1.3
	pkgsrc-2023Q1:1.2.0.8
	pkgsrc-2023Q1-base:1.2
	pkgsrc-2022Q4:1.2.0.6
	pkgsrc-2022Q4-base:1.2
	pkgsrc-2022Q3:1.2.0.4
	pkgsrc-2022Q3-base:1.2
	pkgsrc-2022Q2:1.2.0.2
	pkgsrc-2022Q2-base:1.2;
locks; strict;
comment	@# @;


1.11
date	2025.10.09.08.07.29;	author wiz;	state Exp;
branches;
next	1.10;
commitid	RA1puwGMZhROVRdG;

1.10
date	2025.07.01.08.07.21;	author adam;	state Exp;
branches;
next	1.9;
commitid	3aCNAHaOyZhY811G;

1.9
date	2025.05.13.03.54.29;	author adam;	state Exp;
branches;
next	1.8;
commitid	uZbMWNlGx4MXjHUF;

1.8
date	2024.07.22.04.18.22;	author adam;	state Exp;
branches;
next	1.7;
commitid	SrkOJbilbWC2WMiF;

1.7
date	2024.04.29.19.08.34;	author adam;	state Exp;
branches;
next	1.6;
commitid	3IT8UUy7Ic9Ry48F;

1.6
date	2024.04.12.12.14.47;	author adam;	state Exp;
branches;
next	1.5;
commitid	9tIjNFyZxj7MOQ5F;

1.5
date	2024.01.16.09.03.12;	author adam;	state Exp;
branches;
next	1.4;
commitid	EcLnQ1vk7xBoyEUE;

1.4
date	2023.10.28.19.57.08;	author wiz;	state Exp;
branches;
next	1.3;
commitid	jP8MYROLWZ3yJqKE;

1.3
date	2023.03.29.09.34.10;	author wiz;	state Exp;
branches;
next	1.2;
commitid	dE79P0WicMkX80jE;

1.2
date	2022.05.12.06.07.02;	author wiz;	state Exp;
branches;
next	1.1;
commitid	dT0Qy4wZn3zxjJDD;

1.1
date	2022.05.11.17.51.43;	author bouyer;	state Exp;
branches;
next	;
commitid	UxJn0EzNjmLafFDD;


desc
@@


1.11
log
@*: remove more references to (removed) Python 3.9
@
text
@# $NetBSD: Makefile,v 1.10 2025/07/01 08:07:21 adam Exp $

DISTNAME=	versioningit-3.3.0
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_PYPI:=v/versioningit/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/jwodder/versioningit
COMMENT=	Use version control tags to discover version numbers
LICENSE=	isc

TOOL_DEPENDS+=	${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
DEPENDS+=	${PYPKGPREFIX}-packaging>=17.1:../../devel/py-packaging
TEST_DEPENDS+=	${PYPKGPREFIX}-pydantic>=2.0:../../devel/py-pydantic
TEST_DEPENDS+=	${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
TEST_DEPENDS+=	${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock

USE_LANGUAGES=	# none

.include "../../lang/python/pyversion.mk"
.if ${PYTHON_VERSION} < 311
DEPENDS+=	${PYPKGPREFIX}-tomli>=1.2:../../textproc/py-tomli
.endif

post-install:
	cd ${DESTDIR}${PREFIX}/bin && \
	${MV} versioningit versioningit-${PYVERSSUFFIX} || ${TRUE}

.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
@


1.10
log
@py-versioningit: updated to 3.3.0

v3.3.0 (2025-06-27)

- Added `{normalized_version}` to the fields available to the `write` and
  `onbuild` steps

v3.2.0 (2025-06-10)

- Support reading configuration from a `versioningit.toml` file instead of
  `pyproject.toml`
- Added `NoConfigFileError` and `NoConfigSectionError` subclasses of
  `NotVersioningitError`
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2025/05/13 03:54:29 adam Exp $
a21 3
.if ${PYTHON_VERSION} < 310
DEPENDS+=	${PYPKGPREFIX}-importlib-metadata>=3.6:../../devel/py-importlib-metadata
.endif
@


1.9
log
@py-versioningit: updated to 3.1.3

v3.1.3 (2025-05-12)

- Support Python 3.13
- **Bugfix**: Don't crash when `log.showSignature` is set in `.gitconfig`
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2024/07/22 04:18:22 adam Exp $
d3 1
a3 1
DISTNAME=	versioningit-3.1.3
@


1.8
log
@py-versioningit: updated to 3.1.2

v3.1.2 (2024-07-20)

- Drop support for Python 3.7
- **Bugfix**: When using `versioningit` with Hatch, don't run the `onbuild`
  step for editable builds
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2024/04/29 19:08:34 adam Exp $
d3 1
a3 1
DISTNAME=	versioningit-3.1.2
d19 1
a19 1
PYTHON_VERSIONS_INCOMPATIBLE=	27
@


1.7
log
@py-versioningit: updated to 3.1.1

v3.1.1 (2024-04-29)

- Correctly mark a certain test as requiring Mercurial
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2024/04/12 12:14:47 adam Exp $
d3 1
a3 1
DISTNAME=	versioningit-3.1.1
@


1.6
log
@py-versioningit: updated to 3.1.0

v3.1.0 (2024-03-16)
-------------------
- When `git describe` fails to retrieve a tag, the resulting log/error message
  now includes all options passed to the command (based on contribution by
  [@@jenshnielsen](https://github.com/jenshnielsen))
- When `hg log` fails to retrieve a tag, the resulting log/error message now
  includes the tag pattern passed to `latesttag()`, if any
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2024/01/16 09:03:12 adam Exp $
d3 1
a3 1
DISTNAME=	versioningit-3.1.0
a14 1
DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
@


1.5
log
@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
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2023/10/28 19:57:08 wiz Exp $
d3 1
a3 1
DISTNAME=	versioningit-3.0.0
d16 1
a16 2
DEPENDS+=	${PYPKGPREFIX}-tomli>=1.2:../../textproc/py-tomli
#TEST_DEPENDS+=	${PYPKGPREFIX}-dantic-[0-9]*:../../wip/py-dantic
d24 4
a27 1
DEPENDS+=	${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
@


1.4
log
@python/wheel.mk: simplify a lot, and switch to 'installer' for installation

This follows the recommended bootstrap method (flit_core, build, installer).

However, installer installs different files than pip, so update PLISTs
for all packages using wheel.mk and bump their PKGREVISIONs.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2023/03/29 09:34:10 wiz Exp $
d3 1
a3 1
DISTNAME=	versioningit-1.1.1
a4 1
PKGREVISION=	2
d13 2
a14 1
DEPENDS+=	${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
a16 3
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
d19 1
a23 1

d28 3
a30 5
# 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}
@


1.3
log
@*: use PYTHON_VERSION instead of _PYTHON_VERSION
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2022/05/12 06:07:02 wiz Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.2
log
@py-versioningit: convert to wheel.mk

Add missing dependencies, add test target and test dependencies.
Mark as not-for-python-2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2022/05/11 17:51:43 bouyer Exp $
d27 1
a27 1
.if ${_PYTHON_VERSION} < 310
@


1.1
log
@Add py-versioningit version 1.1.1

versioningit is yet another setuptools plugin for automatically determining
your package's version based on your version control repository's tags.
Unlike others, it allows easy customization of the version format and even
lets you easily override the separate functions used for version
extraction & calculation.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2016/10/11 12:24:33 bsiegert Exp $
d5 1
d14 1
d16 6
a21 1
DEPENDS+=	${PYPKGPREFIX}-wheel>=0.32:../../devel/py-wheel
d23 1
a23 4
post-extract: setuppy
.PHONY: setuppy
setuppy:
	${CP} ${FILESDIR}/setup.py ${WRKSRC}/
d25 13
a37 1
.include "../../lang/python/egg.mk"
@

