Compare commits
@@ -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
|
|
||||||
|
|
||||||
@@ -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
|
||||||
+23
-34
@@ -1,50 +1,39 @@
|
|||||||
%global srcname re-assert
|
Name: python-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}
|
|
||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
%forgemeta
|
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Show where your regex match assertion failed!
|
Summary: Show where your regex match assertion failed
|
||||||
URL: %{forgeurl}
|
|
||||||
Source: %{forgesource}
|
|
||||||
Patch: 0001_adding_pytest_to_the_testing_dependencies.patch
|
|
||||||
# SPDX
|
# SPDX
|
||||||
License: MIT
|
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
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel
|
|
||||||
|
BuildRequires: %{py3_dist pytest}
|
||||||
|
|
||||||
|
%global common_description %{expand:
|
||||||
|
%{summary}!}
|
||||||
|
|
||||||
%description %{common_description}
|
%description %{common_description}
|
||||||
|
|
||||||
%package -n python3-%{srcname}
|
|
||||||
|
%package -n python3-re-assert
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%description -n python3-%{srcname} %{common_description}
|
|
||||||
|
|
||||||
%prep
|
%description -n python3-re-assert %{common_description}
|
||||||
%forgeautosetup -p1
|
|
||||||
|
|
||||||
%generate_buildrequires
|
|
||||||
%pyproject_buildrequires %{?with_tests:-x test}
|
|
||||||
|
|
||||||
%build
|
%check -a
|
||||||
%pyproject_wheel
|
|
||||||
|
|
||||||
%install
|
|
||||||
%pyproject_install
|
|
||||||
%pyproject_save_files %{slugname}
|
|
||||||
|
|
||||||
%if %{with tests}
|
|
||||||
%check
|
|
||||||
%pytest
|
%pytest
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n python3-%{srcname} -f %{pyproject_files}
|
|
||||||
|
%files -n python3-re-assert -f %{pyproject_files}
|
||||||
|
%doc README.md
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
|||||||
Reference in New Issue
Block a user