Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91df6c5370 | ||
|
|
e0c0cac966 | ||
|
|
d42eaf7b42 | ||
|
|
2f74eed5e4 | ||
|
|
c206a3dc4e | ||
|
|
a81dd0cba7 | ||
|
|
313ce4cad2 | ||
|
|
3c4ab4b429 | ||
|
|
ccc49b5b15 | ||
|
|
67f9a5e2d7 | ||
|
|
3125f01d48 | ||
|
|
34e64eede1 | ||
|
|
3f614082ad | ||
|
|
7cfe7f013e | ||
|
|
c6dcd71ced |
@@ -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
|
||||
|
||||
13
packit.yaml
Normal file
13
packit.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
- job: koji_build
|
||||
trigger: commit
|
||||
dist_git_branches:
|
||||
- fedora-all
|
||||
@@ -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 %{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
|
||||
%autochangelog
|
||||
|
||||
Reference in New Issue
Block a user