diff --git a/.gitignore b/.gitignore index f7a422e..18f0bd0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ -/pathspec-0.6.0.tar.gz -/pathspec-0.8.1.tar.gz -/pathspec-0.9.0.tar.gz +/pathspec-0.10.1.tar.gz diff --git a/51.patch b/51.patch deleted file mode 100644 index eb9699f..0000000 --- a/51.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 46bad125f2d599a409704b6c1dcda47b709b4aec Mon Sep 17 00:00:00 2001 -From: Karthikeyan Singaravelan -Date: Sun, 10 Oct 2021 08:19:25 +0000 -Subject: [PATCH] Refactor deprecated unittest aliases for Python 3.11 - compatibility. - ---- - pathspec/tests/test_gitwildmatch.py | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) - -diff --git a/pathspec/tests/test_gitwildmatch.py b/pathspec/tests/test_gitwildmatch.py -index 9868381..f9b4b66 100644 ---- a/pathspec/tests/test_gitwildmatch.py -+++ b/pathspec/tests/test_gitwildmatch.py -@@ -543,6 +543,11 @@ def test_09_single_exclamation_mark_fail(self): - - def _check_invalid_pattern(self, git_ignore_pattern): - expected_message_pattern = re.escape(repr(git_ignore_pattern)) -- with self.assertRaisesRegexp(GitWildMatchPatternError, expected_message_pattern): -+ # assertRaisesRegexp was a deprecated alias removed in Python 3.11 -+ if hasattr(self, 'assertRaisesRegex'): -+ assertRaisesRegex = self.assertRaisesRegex -+ else: -+ assertRaisesRegex = self.assertRaisesRegexp -+ with assertRaisesRegex(GitWildMatchPatternError, expected_message_pattern): - GitWildMatchPattern(git_ignore_pattern) - diff --git a/python-pathspec.spec b/python-pathspec.spec index f485604..5da9900 100644 --- a/python-pathspec.spec +++ b/python-pathspec.spec @@ -1,15 +1,12 @@ Name: python-pathspec -Version: 0.9.0 -Release: 5%{?dist} +Version: 0.10.1 +Release: 1%{?dist} Summary: Utility library for gitignore style pattern matching of file paths License: MPLv2.0 URL: https://github.com/cpburnz/python-path-specification Source0: https://files.pythonhosted.org/packages/source/p/pathspec/pathspec-%{version}.tar.gz -# Refactor deprecated unittest aliases for Python 3.11 compatibility -Patch1: %{url}/pull/51.patch - BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools @@ -30,7 +27,7 @@ is derived from Rsync's wildmatch. Git uses wildmatch for its gitignore files. %prep -%autosetup -p1 -n pathspec-%{version} +%autosetup -n pathspec-%{version} %build %py3_build @@ -49,6 +46,9 @@ is derived from Rsync's wildmatch. Git uses wildmatch for its gitignore files. %{python3_sitelib}/pathspec-%{version}-py%{python3_version}.egg-info %changelog +* Mon Sep 05 2022 Adrien Vergé - 0.10.1-1 +- Update to latest upstream version + * Fri Jul 22 2022 Fedora Release Engineering - 0.9.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/sources b/sources index 7c63116..358c7f7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pathspec-0.9.0.tar.gz) = 660f13525325c27b598048a3576fd704c3843e0b07770187d005f0e93996a90cee44e9a0725b6bf775982f586ed3b4ba7cccee966d7149e71e2b95d48030b2f2 +SHA512 (pathspec-0.10.1.tar.gz) = 886c16ba9a221720a9fbac6a2aead5a16de62988afbf0ed976f28c312fe524f41ccfb139e0b9699942ca32aa90f183e20656986ed631cf2435818c082d58115d