14 Commits
3 changed files with 31 additions and 47 deletions
@@ -1,14 +0,0 @@
diff -Naur re-assert-1.1.0.orig/setup.cfg re-assert-1.1.0/setup.cfg
--- re-assert-1.1.0.orig/setup.cfg 2022-10-13 16:11:49.695696821 +0100
+++ re-assert-1.1.0/setup.cfg 2022-10-13 16:13:32.453753495 +0100
@@ -23,6 +23,10 @@
regex
python_requires = >=3.6.1
+[options.extras_require]
+test =
+ pytest >= 3
+
[bdist_wheel]
universal = True
+9
View File
@@ -0,0 +1,9 @@
upstream_project_url: https://github.com/asottile/re-assert
copy_upstream_release_description: false
upstream_tag_template: v{version}
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
- fedora-rawhide
+22 -33
View File
@@ -1,50 +1,39 @@
%global srcname re-assert
%global slugname re_assert
%global forgeurl https://github.com/asottile/re-assert
%global common_description %{expand:
Show where your regex match assertion failed!}
%bcond_without tests
Name: python-%{srcname}
Name: python-re-assert
Version: 1.1.0
%forgemeta
Release: %autorelease
Summary: Show where your regex match assertion failed!
URL: %{forgeurl}
Source: %{forgesource}
Patch: 0001_adding_pytest_to_the_testing_dependencies.patch
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
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: %{py3_dist pytest}
%global common_description %{expand:
%{summary}!}
%description %{common_description}
%package -n python3-%{srcname}
%package -n python3-re-assert
Summary: %{summary}
%description -n python3-%{srcname} %{common_description}
%prep
%forgeautosetup -p1
%description -n python3-re-assert %{common_description}
%generate_buildrequires
%pyproject_buildrequires %{?with_tests:-x test}
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files -l %{slugname}
%if %{with tests}
%check
%check -a
%pytest
%endif
%files -n python3-%{srcname} -f %{pyproject_files}
%files -n python3-re-assert -f %{pyproject_files}
%doc README.md
%changelog
%autochangelog