17
0

6 Commits

Author SHA256 Message Date
7a0fdbd591 Accepting request 1296839 from devel:languages:python
Forwarded request #1296769 from marec2000

update to 25.0

OBS-URL: https://build.opensuse.org/request/show/1296839
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-packaging?expand=0&rev=37
2025-08-01 20:40:12 +00:00
0174ed5a5e Accepting request 1296769 from home:marec2000:branches:devel:languages:python
update to 25.0

OBS-URL: https://build.opensuse.org/request/show/1296769
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-packaging?expand=0&rev=86
2025-07-31 15:40:58 +00:00
f97a942def Accepting request 1277200 from devel:languages:python
- skip primary build only for Tumbleweed (adjust version)

  * Improve parser error messaging around mistakes in/around
- Ignore python3.6.2 since the test doesn't support it.
- Add Provides: for python*dist(packaging): work around boo#1186870
- add no-legacyversion-warning.patch to restore compatibility with 20.4
  * Fix a bug that caused a 32-bit OS that runs on a 64-bit ARM CPU
- add issue_254.patch to fix tests under non-x86_64 pplatforms
 * Add proper trove classifiers for PyPy support
 * Scale back depending on ctypes for manylinux support detection
 * Officially support Python 3.8
 * Add major, minor, and micro aliases to packaging.version.Version

OBS-URL: https://build.opensuse.org/request/show/1277200
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-packaging?expand=0&rev=36
2025-05-20 07:31:31 +00:00
b3feada12f - skip primary build only for Tumbleweed (adjust version)
* Improve parser error messaging around mistakes in/around
- Ignore python3.6.2 since the test doesn't support it.
- Add Provides: for python*dist(packaging): work around boo#1186870
- add no-legacyversion-warning.patch to restore compatibility with 20.4
  * Fix a bug that caused a 32-bit OS that runs on a 64-bit ARM CPU
- add issue_254.patch to fix tests under non-x86_64 pplatforms
 * Add proper trove classifiers for PyPy support
 * Scale back depending on ctypes for manylinux support detection
 * Officially support Python 3.8
 * Add major, minor, and micro aliases to packaging.version.Version

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-packaging?expand=0&rev=84
2025-05-13 15:38:37 +00:00
0bf819b0fe Accepting request 1223352 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1223352
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-packaging?expand=0&rev=35
2024-11-28 21:42:11 +00:00
3e4210b356 Accepting request 1223177 from home:benoit_monin:branches:devel:languages:python
update to 24.2

OBS-URL: https://build.opensuse.org/request/show/1223177
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-packaging?expand=0&rev=82
2024-11-11 11:41:46 +00:00
6 changed files with 9 additions and 132 deletions

3
.gitattributes vendored
View File

@@ -1,4 +1,4 @@
*.changes merge=merge-changes
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
@@ -12,7 +12,6 @@
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text

5
.gitignore vendored
View File

@@ -1,4 +1 @@
*.obscpio
*.osc
_build.*
.pbuild
.osc

BIN
packaging-25.0.tar.gz LFS Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -1,107 +1,3 @@
-------------------------------------------------------------------
Mon Feb 9 11:07:43 UTC 2026 - Daniel Garcia <daniel.garcia@suse.com>
- Add pythons_for_pypi macro. This macro will help to build the python
minimal stack for different python versions.
-------------------------------------------------------------------
Fri Jan 30 10:34:36 UTC 2026 - ecsos <ecsos@opensuse.org>
- update to 26.0:
* Features:
- PEP 751: support pylock (PR #900)
- PEP 794: import name metadata (PR #948)
- Support for writing metadata to a file (PR #846)
- Support __replace__ on Version (PR #1003)
- Support positional pattern matching for Version and SpecifierSet (PR #1004)
* Behavior adaptations:
- PEP 440 handling of prereleases for Specifier.contains,
SpecifierSet.contains, and SpecifierSet.filter (PR #897)
- Handle PEP 440 edge case in SpecifierSet.filter (PR #942)
- Adjust arbitrary equality intersection preservation in SpecifierSet (PR #951)
- Return False instead of raising for .contains with invalid version (PR #932)
- Support arbitrary equality on arbitrary strings for Specifier
and SpecifierSets filter and contains method. (PR #954)
- Only try to parse as Version on certain marker keys,
return False on unequal ordered comparisons (PR #939)
* Fixes:
- Update _hash when unpickling Tag() (PR #860)
- Correct comment and simplify implicit prerelease handling in
Specifier.prereleases (PR #896)
- Use explicit _GLibCVersion NamedTuple in _manylinux (PR #868)
- Detect invalid license expressions containing () (PR #879)
- Correct regex for metadata 'name' format (PR #925)
- Improve the message around expecting a semicolon (PR #833)
- Support nested parens in license expressions (PR #931)
- Add space before at symbol in Requirements string (PR #953)
- A root logger use found, use a packaging logger instead (PR #965)
- Better support for subclassing Marker and Requirement (PR #1022)
- Normalize all extras, not just if it comes first (PR #1024)
- Dont produce a broken repr if Marker fails to construct (PR #1033)
* Performance:
- Avoid recompiling regexes in the tokenizer for a 3x speedup (PR #1019)
- Improve performance in _manylinux.py (PR #869)
- Minor cleanups to Version (PR #913)
- Skip redundant creation of Versions in specifier comparison (PR #986)
- Cache the Specifiers Version (PR #985)
- Make Version a little faster (PR #987)
- Minor Version regex cleanup (PR #990)
- Faster regex on Python 3.11.5+ for Version (PR #988, PR #1055)
- Lazily calculate _key in Version (PR #989, PR #1048)
- Faster canonicalize_version (PR #993)
- Use re.fullmatch in a couple more places (PR #992, PR #1029)
- Use map instead of generator (PR #996)
- Deprecate ._version (_Version, a NamedTuple) (PR #995, PR #1062)
- Avoid duplicate Version creation in canonicalize_version (PR #994)
- Add __slots__ to core classes (PR #1001, PR #1002, PR #1032)
- Use Version.__replace__ in specifier comparison (PR #999)
- Use _get_spec_version in more places in Specifier (PR #1005)
- Pull set construction out of function (PR #1012)
- Letter normalization dict for prereleases and the like (PR #1014)
- Use str.partition in _parse_project_urls (PR #1013)
- Avoid normalizing extras again when comparing (PR #1028)
- Speed up Version.__str__ by about 10% (PR #997)
- Much faster canonicalize_name by avoiding a regex
(PR #1030, PR #1047, PR #1064)
- Faster zero stripping (PR #1058)
* Type annotations:
- Fix a type annotation (PR #907)
- Fix type hint of function used with contextlib.contextmanager (PR #1046)
- Fix tags return type in parse_wheel_filename docs (PR #973)
- Add type hint for _version in .version.Version (PR #927)
- Changed static type annotations in prereleases setter method
in specifier.py (PR #930)
- Statically type our test suite (PR #982)
* Internal:
- Test and declare support for Python 3.14 (PR #901)
- Change our license metadata to use an SPDX license expression
(PR #881, PR #924)
- Expand the Ruff checks run on our codebase (PR #835, PR #957,
PR #959, PR #963, PR #956, PR #961, PR #964, PR #958, PR #960,
PR #968, PR #967, PR #966, PR #969, PR #980, PR #979, PR #962,
PR #984, PR #972)
- Add spell checking (PR #904, PR #910, PR #1015)
- Improve links back to source in the documentation (PR #991)
- Add case insensitivity tests for arbitrary equality (PR #975)
- Fix incorrectly implicitly concatenated string in specifiers test (PR #946)
- Simpler else instead of assert in a check (PR #1027, PR #1031)
- Synchronize documentation and code for markers (PR #1008)
- Use the GitHub Actions slim runner for the all pass check (PR #1021)
- Use actionlint to check CI workflows (PR #1052)
- Use Trusted Publishing (PR #893, PR #1043, PR #1045, PR #1051)
- Use zizmor to check CI (PR #1035)
- Test on first public release of CPython 3.11 and newer (PR #1056)
Since the final release candidate: Faster canonicalize_name,
especially on Python 3.12 and 3.13, where performance regressed
previously (PR #1064), and reintroduce (deprecated) support for
Version._.version (PR #1062).
-------------------------------------------------------------------
Thu Jan 29 09:25:25 UTC 2026 - Daniel Garcia <daniel.garcia@suse.com>
- Move %sle15_python_module_pythons macro just above the Name, outside
of all the if-else logic
-------------------------------------------------------------------
Thu Jul 31 11:44:29 UTC 2025 - marec <marec@detebe.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-packaging
#
# Copyright (c) 2026 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,8 +20,7 @@
# in order to avoid rewriting for subpackage generator
%define mypython python
%global flavor @BUILD_FLAVOR@%{nil}
%if 0%{?suse_version} >= 1600
%if 0%{?suse_version} >= 1650
%if "%{flavor}" == "primary"
# this one is goes into Ring0: Bootstrap for primary python stack
%define pprefix %{primary_python}
@@ -43,9 +42,8 @@ ExclusiveArch: do-not-build
%else
%define pprefix python
%endif
%{?sle15_python_module_pythons}
%endif
%if "%{flavor}" == "test"
%define pprefix python
%define psuffix -test
@@ -54,20 +52,8 @@ ExclusiveArch: do-not-build
%bcond_with test
%endif
%if "%{flavor}" == ""
%{?pythons_for_pypi}
%endif
%{?sle15_python_module_pythons}
%if "%{flavor}" == "" && "%{shrink:%{pythons}}" == ""
# Exclude for local osc build: unresolvable
%define python_module() empty-python-buildset
# Exclude for obs server
ExclusiveArch: do-not-build
%endif
Name: %{pprefix}-packaging%{?psuffix}
Version: 26.0
Version: 25.0
Release: 0
Summary: Core utilities for Python packages
License: Apache-2.0 AND BSD-2-Clause
@@ -85,7 +71,6 @@ BuildArch: noarch
BuildRequires: %{python_module packaging = %{version}}
BuildRequires: %{python_module pretend}
BuildRequires: %{python_module pytest >= 6.2}
BuildRequires: %{python_module tomli-w}
%endif
%if "%{flavor}" == "primary"
# See boo#1186870, we can't provide ourselves to pythondistdeps.py