diff --git a/.gitignore b/.gitignore index 10e8dc2..a85b85a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /re_assert-1.1.0.tar.gz +/re-assert-1.1.0.tar.gz diff --git a/python-re-assert.spec b/python-re-assert.spec index 9a56b97..98d1550 100644 --- a/python-re-assert.spec +++ b/python-re-assert.spec @@ -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 - 1.1.0-2 +- Run the tests from the GitHub archive + * Sun Mar 21 2021 Chedi Toueiti - 1.1.0-1 - Initial commit diff --git a/sources b/sources index 350b0d5..fa54f9d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (re_assert-1.1.0.tar.gz) = 4ba11f8d7a5ea9cc4553e76f4b26ecd7fa0af58139d0b9d4322f1e6646bb81a6400f19bbf62409de2136611535f0d344bcc3e3f12fc057bd2c05d9b4407303cd +SHA512 (re-assert-1.1.0.tar.gz) = fc14267cc68a12ff7350982f0bf54c77107809c9f0379ab3aa73fa1b7cf5ccabb130fcd35ab75bdf183e69c802a041deac707e1f0bab1c3815d4146b4e320c07