## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-validator-collection Version: 1.5.0 Release: %autorelease Summary: Collection of 60+ Python functions for validating data License: MIT URL: https://github.com/insightindustry/validator-collection # PyPI tarball doesn't include tests Source: %{url}/archive/v.%{version}/validator-collection-v.%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: The Validator Collection is a Python library that provides more than 60 functions that can be used to validate the type and contents of an input value.} %description %_description %package -n python3-validator-collection Summary: %{summary} %description -n python3-validator-collection %_description %prep %autosetup -p1 -n validator-collection-v.%{version} %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l validator_collection %check # Disable tests that attempt to access host paths that do not exist in mock %pytest -v \ --deselect='tests/test_checkers.py::test_is_readable[/var/data/xx1.txt-True-False]' \ --deselect='tests/test_validators.py::test_readable[/var/data/xx1.txt-True-False]' \ --deselect='tests/test_validators.py::test_writeable[/var/data/xx1.txt-True-False]' \ --deselect='tests/test_validators.py::test_executable[/var/data/xx1.txt-True-False]' \ %{nil} %files -n python3-validator-collection -f %{pyproject_files} %doc README.rst %changelog ## START: Generated by rpmautospec * Sat Dec 21 2024 Davide Cavalca - 1.5.0-1 - Initial import; Fixes: RHBZ#2332980 ## END: Generated by rpmautospec