Run the tests from the GitHub archive

This commit is contained in:
Benjamin A. Beasley
2022-10-13 10:00:17 -04:00
parent b5b2182563
commit 6e4e64e950
3 changed files with 16 additions and 6 deletions
+14 -5
View File
@@ -3,18 +3,22 @@
Name: python-%{pkgname}
Version: 1.1.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Show where your regex match assertion failed!
License: MIT
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
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pytest
BuildRequires: python3dist(setuptools)
# For tests
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(regex)
%global _description %{expand:
Show where your regex match assertion failed!
@@ -29,7 +33,7 @@ Summary: %summary
%description -n python3-%{pkgname} %{_description}
%prep
%autosetup -n %{srcname}-%{version}
%autosetup -n %{pkgname}-%{version}
%build
%py3_build
@@ -37,6 +41,8 @@ Summary: %summary
%install
%py3_install
%check
%pytest
%files -n python3-%{pkgname}
%license LICENSE
@@ -46,5 +52,8 @@ Summary: %summary
%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
- Initial commit