Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6046354c7a | ||
|
|
c154c7b418 | ||
|
|
156280ce9a | ||
|
|
dd57d49bd8 | ||
|
|
125b050008 | ||
|
|
68c1f0c9b6 | ||
|
|
bab1835794 | ||
|
|
6c5f6b5314 | ||
|
|
5f969e15f4 | ||
|
|
5caa4790bb | ||
|
|
2e3774d94c | ||
|
|
ac5669ae39 | ||
|
|
6ca5e637a2 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
/re_assert-1.1.0.tar.gz
|
||||
/re-assert-1.1.0.tar.gz
|
||||
|
||||
14
0001_adding_pytest_to_the_testing_dependencies.patch
Normal file
14
0001_adding_pytest_to_the_testing_dependencies.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
|
||||
@@ -1,49 +1,50 @@
|
||||
%global srcname re_assert
|
||||
%global pkgname re-assert
|
||||
%global srcname re-assert
|
||||
%global slugname re_assert
|
||||
%global forgeurl https://github.com/asottile/re-assert
|
||||
|
||||
Name: python-%{pkgname}
|
||||
Version: 1.1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Show where your regex match assertion failed!
|
||||
License: MIT
|
||||
%global common_description %{expand:
|
||||
Show where your regex match assertion failed!}
|
||||
|
||||
URL: https://github.com/asottile/re-assert
|
||||
Source0: %{pypi_source}
|
||||
%bcond_without tests
|
||||
|
||||
BuildArch: noarch
|
||||
Name: python-%{srcname}
|
||||
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
|
||||
# SPDX
|
||||
License: MIT
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-devel
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pytest
|
||||
%description %{common_description}
|
||||
|
||||
%global _description %{expand:
|
||||
Show where your regex match assertion failed!
|
||||
}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n python3-%{pkgname}
|
||||
Summary: %summary
|
||||
|
||||
%py_provides python3-%{pkgname}
|
||||
%description -n python3-%{pkgname} %{_description}
|
||||
%package -n python3-%{srcname}
|
||||
Summary: %{summary}
|
||||
%description -n python3-%{srcname} %{common_description}
|
||||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{version}
|
||||
%forgeautosetup -p1
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires %{?with_tests:-x test}
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
%pyproject_save_files %{slugname}
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%files -n python3-%{pkgname}
|
||||
%license LICENSE
|
||||
%{python3_sitelib}/re_assert.py
|
||||
%{python3_sitelib}/__pycache__/re_assert.*.pyc
|
||||
%{python3_sitelib}/%{srcname}-*.egg-info/
|
||||
|
||||
%files -n python3-%{srcname} -f %{pyproject_files}
|
||||
|
||||
%changelog
|
||||
* Sun Mar 21 2021 Chedi Toueiti <chedi.toueiti@gmail.com> - 1.1.0-1
|
||||
- Initial commit
|
||||
%autochangelog
|
||||
2
sources
2
sources
@@ -1 +1 @@
|
||||
SHA512 (re_assert-1.1.0.tar.gz) = 4ba11f8d7a5ea9cc4553e76f4b26ecd7fa0af58139d0b9d4322f1e6646bb81a6400f19bbf62409de2136611535f0d344bcc3e3f12fc057bd2c05d9b4407303cd
|
||||
SHA512 (re-assert-1.1.0.tar.gz) = fc14267cc68a12ff7350982f0bf54c77107809c9f0379ab3aa73fa1b7cf5ccabb130fcd35ab75bdf183e69c802a041deac707e1f0bab1c3815d4146b4e320c07
|
||||
|
||||
Reference in New Issue
Block a user