forked from pool/python-packaging
Accepting request 931435 from devel:languages:python
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/931435 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-packaging?expand=0&rev=21
This commit is contained in:
commit
d770de5cb5
@ -1,8 +1,10 @@
|
|||||||
--- packaging-20.9/packaging/specifiers.py
|
Index: packaging-21.2/packaging/specifiers.py
|
||||||
+++ packaging-20.9/packaging/specifiers.py
|
===================================================================
|
||||||
@@ -280,12 +280,6 @@
|
--- packaging-21.2.orig/packaging/specifiers.py
|
||||||
# type: (str, Optional[bool]) -> None
|
+++ packaging-21.2/packaging/specifiers.py
|
||||||
super(LegacySpecifier, self).__init__(spec, prereleases)
|
@@ -270,12 +270,6 @@ class LegacySpecifier(_IndividualSpecifi
|
||||||
|
def __init__(self, spec: str = "", prereleases: Optional[bool] = None) -> None:
|
||||||
|
super().__init__(spec, prereleases)
|
||||||
|
|
||||||
- warnings.warn(
|
- warnings.warn(
|
||||||
- "Creating a LegacyVersion has been deprecated and will be "
|
- "Creating a LegacyVersion has been deprecated and will be "
|
||||||
@ -10,12 +12,14 @@
|
|||||||
- DeprecationWarning,
|
- DeprecationWarning,
|
||||||
- )
|
- )
|
||||||
-
|
-
|
||||||
def _coerce_version(self, version):
|
def _coerce_version(self, version: UnparsedVersion) -> LegacyVersion:
|
||||||
# type: (Union[ParsedVersion, str]) -> LegacyVersion
|
|
||||||
if not isinstance(version, LegacyVersion):
|
if not isinstance(version, LegacyVersion):
|
||||||
--- packaging-20.9/packaging/version.py
|
version = LegacyVersion(str(version))
|
||||||
+++ packaging-20.9/packaging/version.py
|
Index: packaging-21.2/packaging/version.py
|
||||||
@@ -124,12 +124,6 @@
|
===================================================================
|
||||||
|
--- packaging-21.2.orig/packaging/version.py
|
||||||
|
+++ packaging-21.2/packaging/version.py
|
||||||
|
@@ -108,12 +108,6 @@ class LegacyVersion(_BaseVersion):
|
||||||
self._version = str(version)
|
self._version = str(version)
|
||||||
self._key = _legacy_cmpkey(self._version)
|
self._key = _legacy_cmpkey(self._version)
|
||||||
|
|
||||||
@ -25,6 +29,6 @@
|
|||||||
- DeprecationWarning,
|
- DeprecationWarning,
|
||||||
- )
|
- )
|
||||||
-
|
-
|
||||||
def __str__(self):
|
def __str__(self) -> str:
|
||||||
# type: () -> str
|
|
||||||
return self._version
|
return self._version
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5b327ac1320dc863dca72f4514ecc086f31186744b84a230374cc1fd776feae5
|
|
||||||
size 81267
|
|
3
packaging-21.2.tar.gz
Normal file
3
packaging-21.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:096d689d78ca690e4cd8a89568ba06d07ca097e3306a4381635073ca91479966
|
||||||
|
size 84403
|
@ -1,3 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 6 18:30:50 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 21.2:
|
||||||
|
* Update documentation entry for 21.1.
|
||||||
|
* Update pin to pyparsing to exclude 3.0.0.
|
||||||
|
* PEP 656: musllinux support
|
||||||
|
* Drop support for Python 2.7, Python 3.4 and Python 3.5.
|
||||||
|
* Replace distutils usage with sysconfig
|
||||||
|
* Add support for zip files in ``parse_sdist_filename``
|
||||||
|
* Use cached ``_hash`` attribute to short-circuit tag equality comparisons
|
||||||
|
* Specify the default value for the ``specifier`` argument to ``SpecifierSet``
|
||||||
|
* Proper keyword-only "warn" argument in packaging.tags
|
||||||
|
* Correctly remove prerelease suffixes from ~= check
|
||||||
|
* Fix type hints for ``Version.post`` and ``Version.dev``
|
||||||
|
* Use typing alias ``UnparsedVersion``
|
||||||
|
* Improve type inference for ``packaging.specifiers.filter()``
|
||||||
|
* Tighten the return type of ``canonicalize_version()``
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 17 17:28:43 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
Thu Jun 17 17:28:43 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -27,8 +27,9 @@
|
|||||||
%endif
|
%endif
|
||||||
# in order to avoid rewriting for subpackage generator
|
# in order to avoid rewriting for subpackage generator
|
||||||
%define mypython python
|
%define mypython python
|
||||||
|
%global skip_python2 1
|
||||||
Name: python-packaging%{psuffix}
|
Name: python-packaging%{psuffix}
|
||||||
Version: 20.9
|
Version: 21.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Core utilities for Python packages
|
Summary: Core utilities for Python packages
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@ -36,12 +37,11 @@ URL: https://github.com/pypa/packaging
|
|||||||
Source: https://files.pythonhosted.org/packages/source/p/packaging/packaging-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/packaging/packaging-%{version}.tar.gz
|
||||||
# Restore compatibility with 20.4 for setuptools
|
# Restore compatibility with 20.4 for setuptools
|
||||||
Patch1: no-legacyversion-warning.patch
|
Patch1: no-legacyversion-warning.patch
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
#!BuildIgnore: post-build-checks-malwarescan
|
#!BuildIgnore: post-build-checks-malwarescan
|
||||||
Requires: python-pyparsing >= 2.0.2
|
Requires: python-pyparsing >= 2.0.2
|
||||||
Requires: python-six
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# do not add setuptools dependency, this is now a dependency
|
# do not add setuptools dependency, this is now a dependency
|
||||||
# of setuptools. Ensure that all dependencies also don't depend
|
# of setuptools. Ensure that all dependencies also don't depend
|
||||||
@ -63,8 +63,7 @@ Provides: %{mypython}3dist(packaging) = %{version}-%{release}
|
|||||||
Core utilities for Python packages
|
Core utilities for Python packages
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n packaging-%{version}
|
%autosetup -p1 -n packaging-%{version}
|
||||||
%patch1 -p1
|
|
||||||
# sdist must provide a packaging.egg-info, used below in install phase
|
# sdist must provide a packaging.egg-info, used below in install phase
|
||||||
test -d packaging.egg-info
|
test -d packaging.egg-info
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user