SHA256
1
0
forked from pool/python-percy

Compare commits

2 Commits

2 changed files with 13 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri May 9 05:12:32 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 27 11:53:34 UTC 2023 - Markéta Machová <mmachova@suse.com> Tue Jun 27 11:53:34 UTC 2023 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-percy # spec file for package python-percy
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-percy Name: python-percy
Version: 2.0.2 Version: 2.0.2
Release: 0 Release: 0
@@ -24,10 +23,12 @@ Summary: Visual regression testing library
License: MIT License: MIT
URL: https://github.com/percy/python-percy-client URL: https://github.com/percy/python-percy-client
Source: https://files.pythonhosted.org/packages/source/p/percy/percy-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/percy/percy-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.14.0} BuildRequires: %{python_module requests >= 2.14.0}
BuildRequires: %{python_module requests-mock} BuildRequires: %{python_module requests-mock}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: git-core BuildRequires: git-core
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -44,10 +45,10 @@ Python client library for visual regression testing with Percy.
sed -i 's/method_whitelist/allowed_methods/g' percy/connection.py sed -i 's/method_whitelist/allowed_methods/g' percy/connection.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -57,6 +58,7 @@ sed -i 's/method_whitelist/allowed_methods/g' percy/connection.py
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.md %doc README.md
%{python_sitelib}/* %{python_sitelib}/percy
%{python_sitelib}/percy-%{version}.dist-info
%changelog %changelog