Compare commits
No commits in common. "8ccc1ea20e419d057083bd928494a40ffc85d7a1" and "3b328c996400e6662165ad33cd1a4950b6c55c24" have entirely different histories.
8ccc1ea20e
...
3b328c9964
@ -1,27 +0,0 @@
|
|||||||
From 56022bcd023b10de355349dc68c8f5357826c1b8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jon Dufresne <jon.dufresne@gmail.com>
|
|
||||||
Date: Mon, 16 Jul 2018 14:01:38 -0700
|
|
||||||
Subject: [PATCH] Add new Pytest cache directory to gitignore (#244)
|
|
||||||
|
|
||||||
Starting with Pytest 3.4.0 (2018-01-30), Pytest's cache directory was
|
|
||||||
renamed to .pytest_cache.
|
|
||||||
|
|
||||||
https://docs.pytest.org/en/latest/changelog.html#pytest-3-4-0-2018-01-30
|
|
||||||
---
|
|
||||||
.gitignore | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/.gitignore b/.gitignore
|
|
||||||
index 9a49a38..4a94d64 100644
|
|
||||||
--- a/.gitignore
|
|
||||||
+++ b/.gitignore
|
|
||||||
@@ -6,5 +6,6 @@ dist
|
|
||||||
docs/_build
|
|
||||||
__pycache__
|
|
||||||
.coverage
|
|
||||||
+.pytest_cache/
|
|
||||||
.tox
|
|
||||||
.idea
|
|
||||||
--
|
|
||||||
2.42.0.windows.2
|
|
||||||
|
|
||||||
@ -1,36 +0,0 @@
|
|||||||
From 178d576c1819faf47802f66460a0cd3d568916ae Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= <alex.gronholm@nextday.fi>
|
|
||||||
Date: Sat, 7 Oct 2017 19:53:38 +0300
|
|
||||||
Subject: [PATCH] Enabled Intersphinx linking to Python documentation
|
|
||||||
|
|
||||||
---
|
|
||||||
docs/conf.py | 6 +++++-
|
|
||||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/docs/conf.py b/docs/conf.py
|
|
||||||
index 1db319d..e9a5b35 100644
|
|
||||||
--- a/docs/conf.py
|
|
||||||
+++ b/docs/conf.py
|
|
||||||
@@ -25,7 +25,7 @@ import pkg_resources
|
|
||||||
|
|
||||||
# Add any Sphinx extension module names here, as strings. They can be extensions
|
|
||||||
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
|
||||||
-extensions = []
|
|
||||||
+extensions = ['sphinx.ext.intersphinx']
|
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
|
||||||
templates_path = ['_templates']
|
|
||||||
@@ -87,6 +87,10 @@ highlight_language = 'bash'
|
|
||||||
# A list of ignored prefixes for module index sorting.
|
|
||||||
#modindex_common_prefix = []
|
|
||||||
|
|
||||||
+intersphinx_mapping = {
|
|
||||||
+ 'python': ('https://docs.python.org/', None)
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
|
|
||||||
# -- Options for HTML output ---------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
2.42.0.windows.2
|
|
||||||
|
|
||||||
@ -1,25 +0,0 @@
|
|||||||
From 88f02bc335d5404991e532e7f3b0fc80437bf4e0 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= <alex.gronholm@nextday.fi>
|
|
||||||
Date: Thu, 20 Oct 2022 17:13:23 +0300
|
|
||||||
Subject: [PATCH] Fixed potential DoS attack via WHEEL_INFO_RE
|
|
||||||
|
|
||||||
Refer: https://github.com/pypa/wheel/issues/498
|
|
||||||
|
|
||||||
---
|
|
||||||
wheel/install.py | 4 ++--
|
|
||||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/wheel/install.py b/wheel/install.py
|
|
||||||
index a0c9d2a5..b985774e 100644
|
|
||||||
--- a/wheel/install.py
|
|
||||||
+++ b/wheel/install.py
|
|
||||||
@@ -16,8 +16,8 @@
|
|
||||||
# Non-greedy matching of an optional build number may be too clever (more
|
|
||||||
# invalid wheel filenames will match). Separate regex for .dist-info?
|
|
||||||
WHEEL_INFO_RE = re.compile(
|
|
||||||
- r"""^(?P<namever>(?P<name>.+?)-(?P<ver>\d.*?))(-(?P<build>\d.*?))?
|
|
||||||
- -(?P<pyver>[a-z].+?)-(?P<abi>.+?)-(?P<plat>.+?)(\.whl|\.dist-info)$""",
|
|
||||||
+ r"""^(?P<namever>(?P<name>[^-]+?)-(?P<ver>\d[^-]*?))(-(?P<build>\d[^-]*?))?
|
|
||||||
+ -(?P<pyver>[a-z][^-]+?)-(?P<abi>[^-]+?)-(?P<plat>[^.]+?)(\.whl|\.dist-info)$""",
|
|
||||||
re.VERBOSE).match
|
|
||||||
|
|
||||||
@ -1,66 +0,0 @@
|
|||||||
From 44193907eb308930de05deed863fb4d157c5c866 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= <alex.gronholm@nextday.fi>
|
|
||||||
Date: Sat, 5 Nov 2022 01:17:22 +0200
|
|
||||||
Subject: [PATCH] Fixed parsing of wheel file names with multiple platform tags
|
|
||||||
|
|
||||||
Reference:https://github.com/pypa/wheel/commit/44193907eb308930de05deed863fb4d157c5c866
|
|
||||||
Conflict:src/wheel/install.py src/tests/test_install.py
|
|
||||||
|
|
||||||
---
|
|
||||||
tests/test_install.py | 16 ++++++++++++++--
|
|
||||||
wheel/install.py | 4 ++--
|
|
||||||
2 files changed, 16 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/tests/test_install.py b/tests/test_install.py
|
|
||||||
index 42db4f0..847bb31 100644
|
|
||||||
--- a/tests/test_install.py
|
|
||||||
+++ b/tests/test_install.py
|
|
||||||
@@ -20,6 +20,8 @@ import wheel.pep425tags
|
|
||||||
import wheel.tool
|
|
||||||
from wheel.install import WheelFile
|
|
||||||
|
|
||||||
+import pytest
|
|
||||||
+
|
|
||||||
THISDIR = os.path.dirname(__file__)
|
|
||||||
TESTWHEEL = os.path.join(THISDIR, 'test-1.0-py2.py3-none-win32.whl')
|
|
||||||
|
|
||||||
@@ -101,8 +103,18 @@ def test_install_tool():
|
|
||||||
"""Slightly improve coverage of wheel.install"""
|
|
||||||
wheel.tool.install([TESTWHEEL], force=True, dry_run=True)
|
|
||||||
|
|
||||||
-
|
|
||||||
-def test_wheelfile_re():
|
|
||||||
+@pytest.mark.parametrize(
|
|
||||||
+ "filename",
|
|
||||||
+ [
|
|
||||||
+ "foo-2-py3-none-any.whl",
|
|
||||||
+ "foo-2-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
|
|
||||||
+ ],
|
|
||||||
+)
|
|
||||||
+def test_wheelfile_re(filename, tmpdir):
|
|
||||||
# Regression test for #208
|
|
||||||
wf = WheelFile('foo-2-py3-none-any.whl')
|
|
||||||
assert wf.distinfo_name == 'foo-2.dist-info'
|
|
||||||
+
|
|
||||||
+ path = tmpdir.join(filename)
|
|
||||||
+ wf = WheelFile(str(path), "w")
|
|
||||||
+ assert wf.parsed_filename.group("namever") == "foo-2"
|
|
||||||
diff --git a/wheel/install.py b/wheel/install.py
|
|
||||||
index 792b707..26359da 100644
|
|
||||||
--- a/wheel/install.py
|
|
||||||
+++ b/wheel/install.py
|
|
||||||
@@ -32,8 +32,8 @@ VERSION_TOO_HIGH = (1, 0)
|
|
||||||
# Non-greedy matching of an optional build number may be too clever (more
|
|
||||||
# invalid wheel filenames will match). Separate regex for .dist-info?
|
|
||||||
WHEEL_INFO_RE = re.compile(
|
|
||||||
- r"""^(?P<namever>(?P<name>[^-]+?)-(?P<ver>\d[^-]*?))(-(?P<build>\d[^-]*?))?
|
|
||||||
- -(?P<pyver>[a-z][^-]+?)-(?P<abi>[^-]+?)-(?P<plat>[^.]+?)(\.whl|\.dist-info)$""",
|
|
||||||
+ r"""^(?P<namever>(?P<name>[^\s-]+?)-(?P<ver>[^\s-]*?))(-(?P<build>\d[^\s-]*?))?
|
|
||||||
+ -(?P<pyver>[^\s-]+?)-(?P<abi>[^\s-]+?)-(?P<plat>\S+?)(\.whl|\.dist-info)$""",
|
|
||||||
re.VERBOSE).match
|
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
2.27.0
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
%bcond_with bootstrap
|
%bcond_without bootstrap
|
||||||
Name: python-wheel
|
Name: python-wheel
|
||||||
Version: 0.31.1
|
Version: 0.31.1
|
||||||
Release: 8
|
Release: 4
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: Built-package format for Python
|
Summary: Built-package format for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -10,10 +10,6 @@ Source0: %{url}/archive/%{version}/wheel-%{version}.tar.gz
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Patch0000: remove-keyrings.alt-dependency.patch
|
Patch0000: remove-keyrings.alt-dependency.patch
|
||||||
Patch0001: 0001-Enabled-Intersphinx-linking-to-Python-documentation.patch
|
|
||||||
Patch0002: CVE-2022-40898.patch
|
|
||||||
Patch0003: backport-Fixed-parsing-of-wheel-file-names-with-multiple-platform-tags.patch
|
|
||||||
Patch0004: 0001-Add-new-Pytest-cache-directory-to-gitignore-244.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A built-package format for Python.
|
A built-package format for Python.
|
||||||
@ -120,17 +116,5 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Dec 22 2023 liubo <liubo1@xfusion.com> - 1:0.31.1-8
|
|
||||||
- Add new Pytest cache directory to gitignore (#244)
|
|
||||||
|
|
||||||
* Tue Dec 19 2023 shixuantong <shixuantong1@huawei.com> - 1:0.31.1-7
|
|
||||||
- Fixed parsing of wheel file names with multiple platform tags
|
|
||||||
|
|
||||||
* Fri Dec 08 2023 wangkai <13474090681@163.com> - 1:0.31.1-6
|
|
||||||
- Fix CVE-2022-40898
|
|
||||||
|
|
||||||
* Mon Nov 27 2023 liubo <liubo1@xfusion.com> - 1:0.31.1-5
|
|
||||||
- Enabled Intersphinx linking to Python documentation
|
|
||||||
|
|
||||||
* Mon Dec 2 2019 yangjian<yangjian79@huawei.com> - 1:0.31.1-4
|
* Mon Dec 2 2019 yangjian<yangjian79@huawei.com> - 1:0.31.1-4
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user