head	1.28;
access;
symbols
	pkgsrc-2026Q1:1.26.0.2
	pkgsrc-2026Q1-base:1.26
	pkgsrc-2025Q4:1.25.0.6
	pkgsrc-2025Q4-base:1.25
	pkgsrc-2025Q3:1.25.0.4
	pkgsrc-2025Q3-base:1.25
	pkgsrc-2025Q2:1.25.0.2
	pkgsrc-2025Q2-base:1.25
	pkgsrc-2025Q1:1.24.0.2
	pkgsrc-2025Q1-base:1.24
	pkgsrc-2024Q4:1.23.0.2
	pkgsrc-2024Q4-base:1.23
	pkgsrc-2024Q3:1.22.0.4
	pkgsrc-2024Q3-base:1.22
	pkgsrc-2024Q2:1.22.0.2
	pkgsrc-2024Q2-base:1.22
	pkgsrc-2024Q1:1.21.0.2
	pkgsrc-2024Q1-base:1.21
	pkgsrc-2023Q4:1.20.0.2
	pkgsrc-2023Q4-base:1.20
	pkgsrc-2023Q3:1.18.0.4
	pkgsrc-2023Q3-base:1.18
	pkgsrc-2023Q2:1.18.0.2
	pkgsrc-2023Q2-base:1.18
	pkgsrc-2023Q1:1.17.0.2
	pkgsrc-2023Q1-base:1.17
	pkgsrc-2022Q4:1.16.0.8
	pkgsrc-2022Q4-base:1.16
	pkgsrc-2022Q3:1.16.0.6
	pkgsrc-2022Q3-base:1.16
	pkgsrc-2022Q2:1.16.0.4
	pkgsrc-2022Q2-base:1.16
	pkgsrc-2022Q1:1.16.0.2
	pkgsrc-2022Q1-base:1.16
	pkgsrc-2021Q4:1.15.0.2
	pkgsrc-2021Q4-base:1.15
	pkgsrc-2021Q3:1.12.0.6
	pkgsrc-2021Q3-base:1.12
	pkgsrc-2021Q2:1.12.0.4
	pkgsrc-2021Q2-base:1.12
	pkgsrc-2021Q1:1.12.0.2
	pkgsrc-2021Q1-base:1.12
	pkgsrc-2020Q4:1.10.0.2
	pkgsrc-2020Q4-base:1.10
	pkgsrc-2020Q3:1.9.0.4
	pkgsrc-2020Q3-base:1.9
	pkgsrc-2020Q2:1.9.0.2
	pkgsrc-2020Q2-base:1.9
	pkgsrc-2020Q1:1.8.0.4
	pkgsrc-2020Q1-base:1.8
	pkgsrc-2019Q4:1.8.0.6
	pkgsrc-2019Q4-base:1.8
	pkgsrc-2019Q3:1.8.0.2
	pkgsrc-2019Q3-base:1.8
	pkgsrc-2019Q2:1.5.0.4
	pkgsrc-2019Q2-base:1.5
	pkgsrc-2019Q1:1.5.0.2
	pkgsrc-2019Q1-base:1.5
	pkgsrc-2018Q4:1.4.0.2
	pkgsrc-2018Q4-base:1.4
	pkgsrc-2018Q3:1.3.0.4
	pkgsrc-2018Q3-base:1.3
	pkgsrc-2018Q2:1.3.0.2
	pkgsrc-2018Q2-base:1.3
	pkgsrc-2018Q1:1.2.0.10
	pkgsrc-2018Q1-base:1.2
	pkgsrc-2017Q4:1.2.0.8
	pkgsrc-2017Q4-base:1.2
	pkgsrc-2017Q3:1.2.0.6
	pkgsrc-2017Q3-base:1.2
	pkgsrc-2017Q2:1.2.0.2
	pkgsrc-2017Q2-base:1.2
	pkgsrc-2017Q1:1.1.0.2
	pkgsrc-2017Q1-base:1.1;
locks; strict;
comment	@# @;


1.28
date	2026.04.26.10.35.26;	author wiz;	state Exp;
branches;
next	1.27;
commitid	WpCzrORmYwvZlsDG;

1.27
date	2026.04.17.05.39.40;	author adam;	state Exp;
branches;
next	1.26;
commitid	WK1KQbcNAXHn0hCG;

1.26
date	2026.01.22.20.20.58;	author adam;	state Exp;
branches;
next	1.25;
commitid	sBg5hlTz3Cj3CqrG;

1.25
date	2025.04.20.20.40.03;	author wiz;	state Exp;
branches;
next	1.24;
commitid	PhK5GERZYK3OCPRF;

1.24
date	2025.02.23.18.13.03;	author wiz;	state Exp;
branches;
next	1.23;
commitid	y4sZLzIRCF4UBCKF;

1.23
date	2024.11.11.07.57.45;	author wiz;	state Exp;
branches;
next	1.22;
commitid	4E4cqZmIbth7ycxF;

1.22
date	2024.06.10.05.43.50;	author adam;	state Exp;
branches;
next	1.21;
commitid	2WQXIUoGP8Z2LodF;

1.21
date	2024.03.17.12.56.26;	author adam;	state Exp;
branches;
next	1.20;
commitid	A2Ii6GNNglfNSv2F;

1.20
date	2023.10.25.22.25.53;	author wiz;	state Exp;
branches;
next	1.19;
commitid	rKsyZeP2IokeF3KE;

1.19
date	2023.10.04.17.14.37;	author adam;	state Exp;
branches;
next	1.18;
commitid	X8p3zH4kyEDgCkHE;

1.18
date	2023.04.13.14.35.10;	author adam;	state Exp;
branches;
next	1.17;
commitid	PCuOwzX2SE5fkXkE;

1.17
date	2023.02.14.16.09.11;	author adam;	state Exp;
branches;
next	1.16;
commitid	VqjzlJ0nHPQ6IvdE;

1.16
date	2022.01.04.20.53.19;	author wiz;	state Exp;
branches;
next	1.15;
commitid	CYyhdK9qtoffkmnD;

1.15
date	2021.11.22.09.46.58;	author adam;	state Exp;
branches;
next	1.14;
commitid	JgSHUyLHt0LM1MhD;

1.14
date	2021.11.09.20.35.14;	author wiz;	state Exp;
branches;
next	1.13;
commitid	K0ysj07E2X8d2agD;

1.13
date	2021.11.01.18.58.33;	author wiz;	state Exp;
branches;
next	1.12;
commitid	eh7FGMKOQSCXK7fD;

1.12
date	2021.02.03.20.18.44;	author wiz;	state Exp;
branches;
next	1.11;
commitid	CgsMk4mqyg6zUiGC;

1.11
date	2021.01.04.12.00.19;	author wiz;	state Exp;
branches;
next	1.10;
commitid	gGWRnPH1bWIk7pCC;

1.10
date	2020.10.21.08.56.52;	author adam;	state Exp;
branches;
next	1.9;
commitid	upYjPAqWEsOzvKsC;

1.9
date	2020.05.16.17.27.43;	author adam;	state Exp;
branches;
next	1.8;
commitid	A5B0HfEAXRa3qu8C;

1.8
date	2019.09.19.16.49.32;	author adam;	state Exp;
branches;
next	1.7;
commitid	HjlXfH86YOl4VDDB;

1.7
date	2019.08.14.07.16.53;	author wiz;	state Exp;
branches;
next	1.6;
commitid	EWJRSrEyuLVjUXyB;

1.6
date	2019.08.09.07.42.59;	author adam;	state Exp;
branches;
next	1.5;
commitid	xQgfQF0HomtmdkyB;

1.5
date	2019.01.20.11.58.36;	author adam;	state Exp;
branches;
next	1.4;
commitid	QIkqZtxpPsbC5w8B;

1.4
date	2018.10.07.06.44.36;	author adam;	state Exp;
branches;
next	1.3;
commitid	P1tcaRLzqkobJZUA;

1.3
date	2018.04.02.19.52.11;	author adam;	state Exp;
branches;
next	1.2;
commitid	ryRjvEOm1liO7UwA;

1.2
date	2017.06.01.13.31.45;	author wiz;	state Exp;
branches;
next	1.1;
commitid	l5tw4Tl9wTAkPFTz;

1.1
date	2017.02.08.12.10.01;	author wiz;	state Exp;
branches;
next	;
commitid	xFos8MWUtDlB09Fz;


desc
@@


1.28
log
@py-packaging: update to 26.2.

26.2 - 2026-04-24
~~~~~~~~~~~~~~~~~

Fixes:

* Fix incorrect sysconfig var name for pyemscripten in (:pull:`1160`)
* Make ``Version``, ``Specifier``, ``SpecifierSet``, ``Tag``, ``Marker``, and ``Requirement`` pickle-safe
  and backward-compatible with pickles created in 25.0-26.1 (including references to the removed
  ``packaging._structures`` module) (:pull:`1163`, :pull:`1168`, :pull:`1170`, :pull:`1171`)
* Re-export ``ExceptionGroup`` in metatadata for now in (:pull:`1164`)

Documentation:

* Add errors section and fix missing details in (:pull:`1159`)
* Document our property-based test suite in (:pull:`1167`)
* Fix a ``DirectUrl`` typo in (:pull:`1167`)
* Add example of ``is_unsatisfiable`` in (:pull:`1166`)

Internal:

* Enable the auditor persona on zizmor in (:pull:`1158`)
* Test new pickle gaurentees in (:pull:`1174`)
* Use new native ReadTheDocs uv integration in (:pull:`1175`)
@
text
@# $NetBSD: Makefile,v 1.27 2026/04/17 05:39:40 adam Exp $

DISTNAME=	packaging-26.2
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_PYPI:=p/packaging/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/pypa/packaging
COMMENT=	Core utilities for Python packages
LICENSE=	modified-bsd OR apache-2.0

DEPENDS+=	${PYPKGPREFIX}-pyparsing>=2.0.2:../../devel/py-pyparsing
TEST_DEPENDS+=	${PYPKGPREFIX}-pretend-[0-9]*:../../devel/py-pretend
# cyclic dependency
#TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
#TEST_DEPENDS+=	${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
TEST_DEPENDS+=	${PYPKGPREFIX}-tomli_w-[0-9]*:../../textproc/py-tomli_w

USE_LANGUAGES=	# none

# as of 26.2
# 61512 passed, 1 skipped, 332 deselected

do-test:
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}

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


1.27
log
@py-packaging: updated to 26.1

26.1 - 2026-04-14

Features:

* PEP 783: add handling for Emscripten wheel tags in
* PEP 803: add handling for the ``abi3.abi3t`` free-threading tag in
* PEP 723: add ``packaging.dependency_groups`` module, based on the ``dependency-groups`` package in
* Add the ``packaging.direct_url`` module in
* Add the ``packaging.errors`` module in
* Add ``SpecifierSet.is_unsatisfiable`` using ranges (new internals that will be expanded in future versions) in
* Add ``create_compatible_tags_selector`` to select compatible tags in
* Add a ``key`` argument to ``SpecifierSet.filter()`` in
* Support ``&`` and ``|`` for ``Marker``'s in
* Normalize ``Version.__replace__`` and add ``Version.from_parts`` in
* Add an option to validate compressed tag set sort order in ``parse_wheel_filename`` in

Behavior adaptations:

* Narrow exclusion of pre-releases for ``<V.postN`` to match spec in
* Narrow exclusion of post-releases for ``>V`` to match spec in
* Rename ``format_full_version`` to ``_format_full_version`` to make it visibly private in
* Restrict local version to ASCII in

Pylock (PEP 751) updates:

* Add pylock ``select`` function in
* Document pylock ``select()`` method and ``PylockSelectError`` in
* Add ``filename`` property to ``PackageSdist`` and ``PackageWheel``, more validation in
* Give preference to path over url in
* Validate name/version consistency in file names in

Fixes:

* Fix ``>`` comparison for versions with dev+local segments in
* Fix incorrect self-comparison for ``InfinityType`` and ``NegativeInfinityType`` in
* Canonicalize when deduplicating specifiers in ``SpecifierSet`` in
* Fix charset error message formatting in
* Handle the ``key`` parameter in ``SpecifierSet.filter`` when specifiers are empty and prerelease is ``False`` in
* Standardize inner components of ``repr`` output in
* ``Specifier``'s ``===`` uses original string, not normalized, when available in
* Propagate int-max-str-digits ``ValueError`` in

Performance:

* Add fast path for parsing simple versions (digits and dots only) in
* Add fast path for ``Version`` to ``Version`` comparison by skipping ``_key`` property in
* Cache ``Version`` hash value in dedicated slot in
* Overhaul ``_cmpkey`` to remove use of custom objects in
* Skip ``__replace__`` in Specifier comparison if not needed in
* ``SpecifierSet`` use ``tuple`` instead of ``frozenset`` for ``_specs`` in
* Speed up complex ``SpecifierSet`` filtering by implementing cost-based ordering in
* Speed up wildcard comparison in
* Stream PEP440 filtering in ``SpecifierSet.filter`` in
* Add ``__slots__`` to ``Marker`` in
* Simply ``Specifier`` regex in
* Skip using the hash property internally in

Internal:

* Add downstream testing in
* Benchmarking suite in
* Benchmark variance reduction in
* Add property-based tests for PEP 440 in
* Clean up a few ``collections.namedtuple`` in tests in
* Do not reload the tags module in tests in
* Limit ``dir()`` / tab-completion in REPL in
* Add more ``__all__`/`__dir__`` in
* Cleanup pre-commit a bit in
* Pin pre-commit file, use dependabot in
* Remove sphinx-toolbox in
* Use docs group, faster readthedocs in
* Add free-threaded Python to CI in
* Simplify combining ``SpecifierSet.prereleases`` in
* Use direct operator methods in ``_compare_compatible`` in
* Remove unnecessary if statement in ``Specifier.prereleases`` in
* Remove unneeded nesting in ``Specifier.prereleases`` in

Documentation:

* Fix documentation: grammar, typos, formatting, and outdated references in
* Fix versionadded for ``Version.from_parts()`` in
* Document ``&`` and ``|`` operators for combining ``Marker`` objects in
* Expand and clean up ``Version`` documentation in
* Move license docs inline in
* Move markers inline in
* Move tags docs to inline in
* Move utilities inline, like other modules in
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2026/01/22 20:20:58 adam Exp $
d3 1
a3 1
DISTNAME=	packaging-26.1
d15 4
a18 1
TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
d22 2
a23 2
# as of 25.0
# 25 failed, 26922 passed, 1 skipped
@


1.26
log
@py-packaging: updated to 26.0

26.0 - 2026-01-20

Features:

* PEP 751: support pylock
* PEP 794: import name metadata
* Support for writing metadata to a file
* Support ``__replace__`` on Version
* Support positional pattern matching for ``Version`` and ``SpecifierSet``

Behavior adaptations:

* PEP 440 handling of prereleases for ``Specifier.contains``, ``SpecifierSet.contains``, and ``SpecifierSet.filter``
* Handle PEP 440 edge case in ``SpecifierSet.filter``
* Adjust arbitrary equality intersection preservation in ``SpecifierSet``
* Return ``False`` instead of raising for ``.contains`` with invalid version
* Support arbitrary equality on arbitrary strings for ``Specifier`` and ``SpecifierSet``'s ``filter`` and ``contains`` method.
* Only try to parse as ``Version`` on certain marker keys, return ``False`` on unequal ordered comparisons

Fixes:

* Update ``_hash`` when unpickling ``Tag()``
* Correct comment and simplify implicit prerelease handling in ``Specifier.prereleases``
* Use explicit ``_GLibCVersion`` ``NamedTuple`` in ``_manylinux``
* Detect invalid license expressions containing ``()``
* Correct regex for metadata ``'name'`` format
* Improve the message around expecting a semicolon
* Support nested parens in license expressions
* Add space before at symbol in ``Requirements`` string
* A root logger use found, use a ``packaging`` logger instead
* Better support for subclassing ``Marker`` and ``Requirement``
* Normalize all extras, not just if it comes first
* Don't produce a broken repr if ``Marker`` fails to construct

Performance:

* Avoid recompiling regexes in the tokenizer for a 3x speedup
* Improve performance in ``_manylinux.py``
* Minor cleanups to ``Version``
* Skip redundant creation of ``Version``'s in specifier comparison
* Cache the ``Specifier``'s ``Version``
* Make ``Version`` a little faster
* Minor ``Version`` regex cleanup
* Faster regex on Python 3.11.5+ for ``Version``
* Lazily calculate ``_key`` in ``Version``
* Faster ``canonicalize_version``
* Use ``re.fullmatch`` in a couple more places
* Use ``map`` instead of generator
* Deprecate ``._version`` (``_Version``, a ``NamedTuple``)
* Avoid duplicate ``Version`` creation in ``canonicalize_version``
* Add ``__slots__`` to core classes
* Use ``Version.__replace__`` in specifier comparison
* Use ``_get_spec_version`` in more places in ``Specifier``
* Pull ``set`` construction out of function
* Letter normalization dict for prereleases and the like
* Use ``str.partition`` in ``_parse_project_urls``
* Avoid normalizing extras again when comparing
* Speed up ``Version.__str__`` by about 10%
* Much faster ``canonicalize_name`` by avoiding a regex
* Faster zero stripping

Type annotations:

* Fix a type annotation
* Fix type hint of function used with ``contextlib.contextmanager``
* Fix tags return type in ``parse_wheel_filename`` docs
* Add type hint for ``_version`` in ``.version.Version``
* Changed static type annotations in prereleases setter method in ``specifier.py``
* Statically type our test suite

Internal:

* Test and declare support for Python 3.14
* Change our license metadata to use an SPDX license expression
* Expand the Ruff checks run on our codebase
* Add spell checking
* Improve links back to source in the documentation
* Add case insensitivity tests for arbitrary equality
* Fix incorrectly implicitly concatenated string in specifiers test
* Simpler else instead of assert in a check
* Synchronize documentation and code for markers
* Use the GitHub Actions slim runner for the all pass check
* Use ``actionlint`` to check CI workflows
* Use Trusted Publishing
* Use zizmor to check CI
* Test on first public release of CPython 3.11 and newer
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2025/04/20 20:40:03 wiz Exp $
d3 1
a3 1
DISTNAME=	packaging-26.0
@


1.25
log
@py-packaging: update to 25.0.

25.0 - 2025-04-19
~~~~~~~~~~~~~~~~~

* PEP 751: Add support for ``extras`` and ``dependency_groups`` markers. (:issue:`885`)
* PEP 738: Add support for Android platform tags. (:issue:`880`)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2025/02/23 18:13:03 wiz Exp $
d3 1
a3 1
DISTNAME=	packaging-25.0
@


1.24
log
@py-packaging: adapt to flit_core 3.11

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2024/11/11 07:57:45 wiz Exp $
d3 1
a3 1
DISTNAME=	packaging-24.2
a4 1
PKGREVISION=	1
d19 3
@


1.23
log
@py-packaging: update to 24.2.

24.2 - 2024-11-08
~~~~~~~~~~~~~~~~~

* PEP 639: Implement License-Expression and License-File (:issue:`828`)
* Use ``!r`` formatter for error messages with filenames (:issue:`844`)
* Add support for PEP 730 iOS tags (:issue:`832`)
* Fix prerelease detection for ``>`` and ``<`` (:issue:`794`)
* Fix uninformative error message (:issue:`830`)
* Refactor ``canonicalize_version`` (:issue:`793`)
* Patch python_full_version unconditionally (:issue:`825`)
* Fix doc for ``canonicalize_version`` to mention ``strip_trailing_zero`` and a typo in a docstring (:issue:`801`)
* Fix typo in Version ``__str__`` (:issue:`817`)
* Support creating a ``SpecifierSet`` from an iterable of ``Specifier`` objects (:issue:`775`)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2024/06/10 05:43:50 adam Exp $
d5 1
@


1.22
log
@py-packaging: updated to 24.1

24.1

pyupgrade/black/isort/flake8 → ruff
Add support for Python 3.13 and drop EOL 3.7
Bump the github-actions group with 4 updates
Fix typo in _parser docstring
Modernise type annotations using FA rules from ruff
Document markers.default_environment()
Bump the github-actions group with 3 updates
Work around platform.python_version() returning non PEP 440 compliant version for non-tagged CPython builds
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2024/03/17 12:56:26 adam Exp $
d3 1
a3 1
DISTNAME=	packaging-24.1
a18 4
PYTHON_VERSIONS_INCOMPATIBLE=	27

# as of 23.0:
# 26338 passed, 1 skipped
@


1.21
log
@py-packaging: updated to 24.0

24.0 - 2024-03-10

* Do specifier matching correctly when the specifier contains an epoch number
  and has more components than the version
* Support the experimental ``--disable-gil`` builds in packaging.tags
* BREAKING: Make optional ``metadata.Metadata`` attributes default to ``None``
* Fix errors when trying to access the ``description_content_type``, ``keywords``,
  and ``requires_python`` attributes on ``metadata.Metadata`` when those values
  have not been provided
* Fix a bug preventing the use of the built in ``ExceptionGroup`` on versions of
  Python that support it
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2023/10/25 22:25:53 wiz Exp $
d3 1
a3 1
DISTNAME=	packaging-24.0
@


1.20
log
@py-packaging: switch to bootstrap.mk

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2023/10/04 17:14:37 adam Exp $
d3 1
a3 1
DISTNAME=	packaging-23.2
a4 1
PKGREVISION=	1
@


1.19
log
@py-packaging: updated to 23.2

23.2 - 2023-10-01

* Document calendar-based versioning scheme (:issue:`716`)
* Enforce that the entire marker string is parsed (:issue:`687`)
* Requirement parsing no longer automatically validates the URL (:issue:`120`)
* Canonicalize names for requirements comparison (:issue:`644`)
* Introduce ``metadata.Metadata`` (along with ``metadata.ExceptionGroup`` and ``metadata.InvalidMetadata``; :issue:`570`)
* Introduce the ``validate`` keyword parameter to ``utils.validate_name()`` (:issue:`570`)
* Introduce ``utils.is_normalized_name()`` (:issue:`570`)
* Make ``utils.parse_sdist_filename()`` and ``utils.parse_wheel_filename()``
  raise ``InvalidSdistFilename`` and ``InvalidWheelFilename``, respectively,
  when the version component of the name is invalid
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2023/04/13 14:35:10 adam Exp $
d5 1
a21 4
# Generated setup.py; don't use wheel.mk as py-build depends on py-packaging
pre-configure:
	${CP} ${FILESDIR}/setup.py ${WRKSRC}/

d27 1
a27 1
.include "../../lang/python/egg.mk"
@


1.18
log
@py-packaging: updated to 23.1

23.1

What's Changed

chore: add typed classifier
Improve parser error messaging around mistakes in/around version specifiers
Upgrade to latest mypy
Delete print() from test_tags
Update our linters
Improve error for local version label with unsupported operators
Parse raw metadata
Handle prefix match with zeros at end of prefix correctly
Relax typing of _key on _BaseVersion
Replace spaces in platform names with underscores
Import underlying parser function as an underscored variable
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2023/02/14 16:09:11 adam Exp $
d3 1
a3 1
DISTNAME=	packaging-23.1
@


1.17
log
@py-packaging: updated to 23.0

23.0

Allow "extra" to be None in the marker environment
Refactor tags._generic_api to use EXT_SUFFIX
Correctly handle trailing whitespace on URL requirements
Fix typing for specifiers.BaseSpecifier.filter()
Use stable Python 3.11 in tests
Correctly handle non-normalised specifiers in requirements
Move to src/ layout
Remove __about__ file, in favour of keeping constants in __init__
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2022/01/04 20:53:19 wiz Exp $
d3 1
a3 1
DISTNAME=	packaging-23.0
@


1.16
log
@*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2021/11/22 09:46:58 adam Exp $
d3 1
a3 1
DISTNAME=	packaging-21.3
a4 1
PKGREVISION=	1
d17 2
d21 3
a23 1
USE_LANGUAGES=	# none
d25 2
a26 2
# as of 21.2:
# 1 failed, 29293 passed, 1 skipped, 1 xfailed, 15439 warnings
@


1.15
log
@py-packaging: updated to 21.3

21.3
* Add a ``pp3-none-any`` tag
* Replace the blank pyparsing 3 exclusion with a 3.0.5 exclusion
* Fix a spelling mistake
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2021/11/09 20:35:14 wiz Exp $
d5 1
@


1.14
log
@py-packaging: update to 21.2.

21.2 - 2021-10-29
~~~~~~~~~~~~~~~~~

* Update documentation entry for 21.1.

21.1 - 2021-10-29
~~~~~~~~~~~~~~~~~

* Update pin to pyparsing to exclude 3.0.0.

21.0 - 2021-07-03
~~~~~~~~~~~~~~~~~

* PEP 656: musllinux support (:issue:`411`)
* Drop support for Python 2.7, Python 3.4 and Python 3.5.
* Replace distutils usage with sysconfig (:issue:`396`)
* Add support for zip files in ``parse_sdist_filename`` (:issue:`429`)
* Use cached ``_hash`` attribute to short-circuit tag equality comparisons (:issue:`417`)
* Specify the default value for the ``specifier`` argument to ``SpecifierSet`` (:issue:`437`)
* Proper keyword-only "warn" argument in packaging.tags (:issue:`403`)
* Correctly remove prerelease suffixes from ~= check (:issue:`366`)
* Fix type hints for ``Version.post`` and ``Version.dev`` (:issue:`393`)
* Use typing alias ``UnparsedVersion`` (:issue:`398`)
* Improve type inference for ``packaging.specifiers.filter()`` (:issue:`430`)
* Tighten the return type of ``canonicalize_version()`` (:issue:`402`)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2021/11/01 18:58:33 wiz Exp $
d3 1
a3 1
DISTNAME=	packaging-21.2
d13 1
d15 1
a17 1
PYTHON_VERSIONED_DEPENDENCIES=	test:test pyparsing
a26 1
.include "../../lang/python/versioned_dependencies.mk"
@


1.13
log
@*: convert dependencies of py-pyparsing to versioned_dependencies.mk
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2021/02/03 20:18:44 wiz Exp $
d3 1
a3 1
DISTNAME=	packaging-20.9
a12 1
DEPENDS+=	${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
d15 1
d20 2
a21 1
# needs 'make install' before
@


1.12
log
@py-packaging: update to 20.9.

20.9 - 2021-01-29
~~~~~~~~~~~~~~~~~

* Run [isort](https://pypi.org/project/isort/) over the code base (:issue:`377`)
* Add support for the ``macosx_10_*_universal2`` platform tags (:issue:`379`)
* Introduce ``packaging.utils.parse_wheel_filename()`` and ``parse_sdist_filename()``
  (:issue:`387` and :issue:`389`)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2021/01/04 12:00:19 wiz Exp $
a12 1
DEPENDS+=	${PYPKGPREFIX}-pyparsing>=2.0.2:../../devel/py-pyparsing
d16 1
a16 1
PYTHON_VERSIONED_DEPENDENCIES=	test:test
@


1.11
log
@py-packaging: update to 20.8.

20.8 - 2020-12-11
~~~~~~~~~~~~~~~~~

* Revert back to setuptools for compatibility purposes for some Linux distros (:issue:`363`)
* Do not insert an underscore in wheel tags when the interpreter version number
  is more than 2 digits (:issue:`372`)

20.7 - 2020-11-28
~~~~~~~~~~~~~~~~~

No unreleased changes.

20.6 - 2020-11-28
~~~~~~~~~~~~~~~~~

.. note:: This release was subsequently yanked, and these changes were included in 20.7.

* Fix flit configuration, to include LICENSE files (:issue:`357`)
* Make `intel` a recognized CPU architecture for the `universal` macOS platform tag (:issue:`361`)
* Add some missing type hints to `packaging.requirements` (issue:`350`)

20.5 - 2020-11-27
~~~~~~~~~~~~~~~~~

* Officially support Python 3.9 (:issue:`343`)
* Deprecate the ``LegacyVersion`` and ``LegacySpecifier`` classes (:issue:`321`)
* Handle ``OSError`` on non-dynamic executables when attempting to resolve
  the glibc version string.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2020/10/21 08:56:52 adam Exp $
d3 1
a3 1
DISTNAME=	packaging-20.8
@


1.10
log
@py-packaging: updated to 20.4

20.4:

Canonicalize version before comparing specifiers.
Change type hint for canonicalize_name to return packaging.utils.NormalizedName. This enables the use of static typing tools (like mypy) to detect mixing of normalized and un-normalized names.

20.3:

Fix changelog for 20.2.

20.2:

Fix a bug that caused a 32-bit OS that runs on a 64-bit ARM CPU (e.g. ARM-v8, aarch64), to report the wrong bitness.

20.1:

Fix a bug caused by reuse of an exhausted iterator.

20.0:

Add type hints
Add proper trove classifiers for PyPy support
Scale back depending on ctypes for manylinux support detection
Use sys.implementation.name where appropriate for packaging.tags
Expand upon the API provded by packaging.tags: interpreter_name(), mac_platforms(), compatible_tags(), cpython_tags(), generic_tags()
Officially support Python 3.8
Add major, minor, and micro aliases to packaging.version.Version
Properly mark packaging has being fully typed by adding a py.typed file
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2020/05/16 17:27:43 adam Exp $
d3 1
a3 1
DISTNAME=	packaging-20.4
@


1.9
log
@pytest from versioned deps.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2019/09/19 16:49:32 adam Exp $
d3 1
a3 1
DISTNAME=	packaging-19.2
@


1.8
log
@py-packaging: updated to 19.2

19.2:
* Remove dependency on ``attrs``
* Use appropriate fallbacks for CPython ABI tag
* Add manylinux2014 support
* Improve ABI detection
* Properly handle debug wheels for Python 3.8
* Improve detection of debug builds on Windows
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2019/08/14 07:16:53 wiz Exp $
d16 2
a17 1
TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
d26 1
@


1.7
log
@py-packaging: add full py-attrs dependency, this is needed at runtime.

Fixes py-sphinx related build failures in other packages.

Bump PKGREVISION.

XXX: 'make test' needs 'make install' beforehand, please fix if you know how
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2019/08/09 07:42:59 adam Exp $
d3 1
a3 1
DISTNAME=	packaging-19.1
a4 1
PKGREVISION=	1
a12 1
DEPENDS+=	${PYPKGPREFIX}-attrs-[0-9]*:../../devel/py-attrs
@


1.6
log
@py-packaging: updated to 19.1

19.1:
* Add the packaging.tags module.
* Correctly handle two-digit versions in python_version
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2019/01/20 11:58:36 adam Exp $
d5 1
d14 1
d22 1
d24 1
a24 1
	cd ${WRKSRC} && pytest-${PYVERSSUFFIX}
@


1.5
log
@py-packaging: updated to 19.0

19.0:

* Fix string representation of PEP 508 direct URL requirements with markers.

* Better handling of file URLs

  This allows for using file:///absolute/path, which was previously
  prevented due to the missing netloc.

  This allows for all file URLs that urlunparse turns back into the
  original URL to be valid.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2018/10/07 06:44:36 adam Exp $
d3 1
a3 1
DISTNAME=	packaging-19.0
d9 1
a9 1
HOMEPAGE=	https://pypi.python.org/pypi/packaging
@


1.4
log
@py-packaging: updated to 18.0

18.0:
Improve error messages when invalid requirements are given.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2018/04/02 19:52:11 adam Exp $
d3 1
a3 1
DISTNAME=	packaging-18.0
@


1.3
log
@py-packaging: updated to 17.1

17.1:
Fix utils.canonicalize_version when supplying non PEP 440 versions.

17.0:
Drop support for python 2.6, 3.2, and 3.3.
Define minimal pyparsing version to 2.0.2.
Add epoch, release, pre, dev, and post attributes to Version and LegacyVersion.
Add Version().is_devrelease and LegacyVersion().is_devrelease to make it easy to determine if a release is a development release.
Add utils.canonicalize_version to canonicalize version strings or Version instances
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2017/06/01 13:31:45 wiz Exp $
d3 1
a3 1
DISTNAME=	packaging-17.1
@


1.2
log
@BOOTSTRAP_SETUPTOOLS is not necessary any longer.
Leave it commented out for now.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2017/02/08 12:10:01 wiz Exp $
d3 1
a3 1
DISTNAME=	packaging-16.8
d13 4
a16 4
DEPENDS+=		${PYPKGPREFIX}-pyparsing-[0-9]*:../../devel/py-pyparsing
DEPENDS+=		${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
# needed for tests, but would introduce dependency cycle
#BUILD_DEPENDS+=		${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
d18 4
a21 1
#BOOTSTRAP_SETUPTOOLS=	yes
a22 1
.include "../../lang/python/application.mk"
@


1.1
log
@Import py-packaging-16.8 as devel/py-packaging.

Core utilities for Python packages.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.121 2017/01/26 18:09:19 adam Exp $
d18 1
a18 1
BOOTSTRAP_SETUPTOOLS=	yes
@

