Run the tests from the GitHub archive

This commit is contained in:
Benjamin A. Beasley
2025-05-07 09:31:16 -04:00
parent b5b2182563
commit 6e4e64e950
3 changed files with 16 additions and 6 deletions
+1
View File
@@ -1 +1,2 @@
/re_assert-1.1.0.tar.gz /re_assert-1.1.0.tar.gz
/re-assert-1.1.0.tar.gz
+14 -5
View File
@@ -3,18 +3,22 @@
Name: python-%{pkgname} Name: python-%{pkgname}
Version: 1.1.0 Version: 1.1.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: Show where your regex match assertion failed! Summary: Show where your regex match assertion failed!
License: MIT License: MIT
URL: https://github.com/asottile/re-assert URL: https://github.com/asottile/re-assert
Source0: %{pypi_source} # The PyPI sdist lacks the tests, so we must use the GitHub archive
Source0: %{url}/archive/v%{version}/re-assert-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3dist(setuptools)
BuildRequires: python3-pytest
# For tests
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(regex)
%global _description %{expand: %global _description %{expand:
Show where your regex match assertion failed! Show where your regex match assertion failed!
@@ -29,7 +33,7 @@ Summary: %summary
%description -n python3-%{pkgname} %{_description} %description -n python3-%{pkgname} %{_description}
%prep %prep
%autosetup -n %{srcname}-%{version} %autosetup -n %{pkgname}-%{version}
%build %build
%py3_build %py3_build
@@ -37,6 +41,8 @@ Summary: %summary
%install %install
%py3_install %py3_install
%check
%pytest
%files -n python3-%{pkgname} %files -n python3-%{pkgname}
%license LICENSE %license LICENSE
@@ -46,5 +52,8 @@ Summary: %summary
%changelog %changelog
* Thu Oct 13 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 1.1.0-2
- Run the tests from the GitHub archive
* Sun Mar 21 2021 Chedi Toueiti <chedi.toueiti@gmail.com> - 1.1.0-1 * Sun Mar 21 2021 Chedi Toueiti <chedi.toueiti@gmail.com> - 1.1.0-1
- Initial commit - Initial commit
+1 -1
View File
@@ -1 +1 @@
SHA512 (re_assert-1.1.0.tar.gz) = 4ba11f8d7a5ea9cc4553e76f4b26ecd7fa0af58139d0b9d4322f1e6646bb81a6400f19bbf62409de2136611535f0d344bcc3e3f12fc057bd2c05d9b4407303cd SHA512 (re-assert-1.1.0.tar.gz) = fc14267cc68a12ff7350982f0bf54c77107809c9f0379ab3aa73fa1b7cf5ccabb130fcd35ab75bdf183e69c802a041deac707e1f0bab1c3815d4146b4e320c07