Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3542039a7f | ||
|
|
6b4b457452 | ||
|
|
3408d6b45f | ||
|
|
f0cfeb49c3 | ||
|
|
6e0e13356f | ||
|
|
6e4e64e950 | ||
|
|
b5b2182563 |
@@ -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
|
||||
|
||||
5
changelog
Normal file
5
changelog
Normal 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
|
||||
@@ -1,50 +1,58 @@
|
||||
%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
|
||||
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}!}
|
||||
|
||||
%description %{common_description}
|
||||
|
||||
%package -n python3-%{srcname}
|
||||
Summary: %{summary}
|
||||
%description -n python3-%{srcname} %{common_description}
|
||||
|
||||
%package -n python3-re-assert
|
||||
Summary: %summary
|
||||
|
||||
%py_provides python3-re-assert
|
||||
%description -n python3-re-assert %{common_description}
|
||||
|
||||
|
||||
%prep
|
||||
%forgeautosetup -p1
|
||||
%autosetup -n re-assert-%{version}
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires %{?with_tests:-x test}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
%py3_build
|
||||
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files %{slugname}
|
||||
%py3_install
|
||||
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%files -n python3-%{srcname} -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
|
||||
%autochangelog
|
||||
|
||||
Reference in New Issue
Block a user