Update to latest upstream version

This commit is contained in:
Adrien Vergé 2022-09-05 09:42:44 +02:00
parent 7e8d9d5822
commit 665495f44d
4 changed files with 8 additions and 37 deletions

4
.gitignore vendored
View File

@ -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

View File

@ -1,27 +0,0 @@
From 46bad125f2d599a409704b6c1dcda47b709b4aec Mon Sep 17 00:00:00 2001
From: Karthikeyan Singaravelan <tir.karthi@gmail.com>
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)

View File

@ -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é <adrienverge@gmail.com> - 0.10.1-1
- Update to latest upstream version
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (pathspec-0.9.0.tar.gz) = 660f13525325c27b598048a3576fd704c3843e0b07770187d005f0e93996a90cee44e9a0725b6bf775982f586ed3b4ba7cccee966d7149e71e2b95d48030b2f2
SHA512 (pathspec-0.10.1.tar.gz) = 886c16ba9a221720a9fbac6a2aead5a16de62988afbf0ed976f28c312fe524f41ccfb139e0b9699942ca32aa90f183e20656986ed631cf2435818c082d58115d