From 0884a578a66b265dfd922e025f367c4e5abcfb5a Mon Sep 17 00:00:00 2001 From: tigro Date: Sat, 4 Jan 2025 22:15:40 +0300 Subject: [PATCH] import python-inline-snapshot-0.13.3-1.el10 --- .gitignore | 1 + .python-inline-snapshot.metadata | 1 + SPECS/python-inline-snapshot.spec | 100 ++++++++++++++++++++++++++++++ 3 files changed, 102 insertions(+) create mode 100644 .gitignore create mode 100644 .python-inline-snapshot.metadata create mode 100644 SPECS/python-inline-snapshot.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..334da0b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/inline_snapshot-0.13.3.tar.gz diff --git a/.python-inline-snapshot.metadata b/.python-inline-snapshot.metadata new file mode 100644 index 0000000..197bf80 --- /dev/null +++ b/.python-inline-snapshot.metadata @@ -0,0 +1 @@ +21490ede699ce9a9b3dc2dcf5e62dbad91dc3581 SOURCES/inline_snapshot-0.13.3.tar.gz diff --git a/SPECS/python-inline-snapshot.spec b/SPECS/python-inline-snapshot.spec new file mode 100644 index 0000000..6821531 --- /dev/null +++ b/SPECS/python-inline-snapshot.spec @@ -0,0 +1,100 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## 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-inline-snapshot +Version: 0.13.3 +Release: %autorelease +Summary: Golden master/snapshot/approval testing library + +# SPDX +License: MIT +URL: https://github.com/15r10nk/inline-snapshot +Source: %{pypi_source inline_snapshot} + +BuildArch: noarch + +BuildRequires: python3-devel + +# For extracting test dependencies from pyproject.toml: +BuildRequires: tomcli + +# Extra test dependencies: +# For test_xdist, test_xdist_disabled, test_xdist_and_disable +BuildRequires: %{py3_dist pytest-xdist} + +%global common_description %{expand: +Golden master/snapshot/approval testing library which puts the values right +into your source code.} + +%description %{common_description} + + +%package -n python3-inline-snapshot +Summary: %{summary} + +%description -n python3-inline-snapshot %{common_description} + + +%prep +%autosetup -n inline_snapshot-%{version} -p1 +# Extract test dependencies from pyproject.toml; filter out those that are not +# needed (currently, typecheckers; see +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters). +tomcli get pyproject.toml -F newline-list \ + 'tool.hatch.envs.hatch-test.extra-dependencies' | + grep -vE '^(pyright|mypy)' | + tee _test-requirements.txt + + +%generate_buildrequires +%pyproject_buildrequires _test-requirements.txt + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files -l inline_snapshot + + +%check +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters +ignore="${ignore-} --ignore=tests/test_typing.py" + +%pytest ${ignore-} -v + + +%files -n python3-inline-snapshot -f %{pyproject_files} + + +%changelog +* Sat Jan 04 2025 Arkady L. Shane - 0.13.3-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Tue Sep 24 2024 Packit - 0.13.3-1 +- Update to 0.13.3 upstream release +- Resolves: rhbz#2314446 + +* Tue Sep 24 2024 Packit - 0.13.2-1 +- Update to 0.13.2 upstream release +- Resolves: rhbz#2314418 + +* Sat Sep 21 2024 Benjamin A. Beasley - 0.13.1-1 +- Update to 0.13.1 + +* Sat Sep 21 2024 Benjamin A. Beasley - 0.13.0-2 +- Generate test dependencies rather than listing them manually + +* Sat Sep 21 2024 Benjamin A. Beasley - 0.13.0-1 +- Initial package (close RHBZ#2313221) +## END: Generated by rpmautospec