Run the tests from the GitHub archive
This commit is contained in:
+14
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user