i10ce
changed/i10ce/python-inline-snapshot-0.13.3-1.el10
commit
0884a578a6
@ -0,0 +1 @@
|
|||||||
|
SOURCES/inline_snapshot-0.13.3.tar.gz
|
@ -0,0 +1 @@
|
|||||||
|
21490ede699ce9a9b3dc2dcf5e62dbad91dc3581 SOURCES/inline_snapshot-0.13.3.tar.gz
|
@ -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 <tigro@msvsphere-os.ru> - 0.13.3-1
|
||||||
|
- Rebuilt for MSVSphere 10
|
||||||
|
|
||||||
|
## START: Generated by rpmautospec
|
||||||
|
* Tue Sep 24 2024 Packit <hello@packit.dev> - 0.13.3-1
|
||||||
|
- Update to 0.13.3 upstream release
|
||||||
|
- Resolves: rhbz#2314446
|
||||||
|
|
||||||
|
* Tue Sep 24 2024 Packit <hello@packit.dev> - 0.13.2-1
|
||||||
|
- Update to 0.13.2 upstream release
|
||||||
|
- Resolves: rhbz#2314418
|
||||||
|
|
||||||
|
* Sat Sep 21 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.13.1-1
|
||||||
|
- Update to 0.13.1
|
||||||
|
|
||||||
|
* Sat Sep 21 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.13.0-2
|
||||||
|
- Generate test dependencies rather than listing them manually
|
||||||
|
|
||||||
|
* Sat Sep 21 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.13.0-1
|
||||||
|
- Initial package (close RHBZ#2313221)
|
||||||
|
## END: Generated by rpmautospec
|
Loading…
Reference in new issue