7 Commits
f42 ... epel8

Author SHA1 Message Date
Benjamin A. Beasley
3542039a7f Package README.md as documentation 2025-05-07 09:39:14 -04:00
Benjamin A. Beasley
6b4b457452 Improve spec-file formatting and style
- Modernize a few details (as far as is possible in EPEL8)
2025-05-07 09:38:09 -04:00
Benjamin A. Beasley
3408d6b45f Convert to %autorelease and %autochangelog
[skip changelog]
2025-05-07 09:32:35 -04:00
Benjamin A. Beasley
f0cfeb49c3 Confirm License is SPDX MIT 2025-05-07 09:32:13 -04:00
Benjamin A. Beasley
6e0e13356f Drop a trailing blank line in the description 2025-05-07 09:32:08 -04:00
Benjamin A. Beasley
6e4e64e950 Run the tests from the GitHub archive 2025-05-07 09:31:16 -04:00
Tomas Hrnciar
b5b2182563 BuildRequire setuptools explicitly
See https://fedoraproject.org/wiki/Changes/Reduce_dependencies_on_python3-setuptools
2025-05-07 09:30:29 -04:00
2 changed files with 31 additions and 7 deletions

5
changelog Normal file
View File

@@ -0,0 +1,5 @@
* 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

View File

@@ -6,14 +6,16 @@ Summary: Show where your regex match assertion failed
# SPDX
License: MIT
URL: https://github.com/asottile/re-assert
Source: %{url}/archive/v%{version}/re-assert-%{version}.tar.gz
BuildSystem: pyproject
BuildOption(install): -l re_assert
Source0: %{url}/archive/v%{version}/re-assert-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: %{py3_dist setuptools}
# For tests
BuildRequires: %{py3_dist pytest}
BuildRequires: %{py3_dist regex}
%global common_description %{expand:
%{summary}!}
@@ -22,18 +24,35 @@ BuildRequires: %{py3_dist pytest}
%package -n python3-re-assert
Summary: %{summary}
Summary: %summary
%py_provides python3-re-assert
%description -n python3-re-assert %{common_description}
%check -a
%prep
%autosetup -n re-assert-%{version}
%build
%py3_build
%install
%py3_install
%check
%pytest
%files -n python3-re-assert -f %{pyproject_files}
%files -n python3-re-assert
%license LICENSE
%doc README.md
%pycached %{python3_sitelib}/re_assert.py
%{python3_sitelib}/re_assert-%{version}-py%{python3_version}.egg-info/
%changelog
%autochangelog