commit 3418ffaa2b48d5e5087571b648e711bc9ea1411dc2003e81c68ebb781ba89119 Author: Steve Kowalik Date: Fri May 9 05:33:49 2025 +0000 - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-percy?expand=0&rev=5 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/percy-2.0.2.tar.gz b/percy-2.0.2.tar.gz new file mode 100644 index 0000000..38d2619 --- /dev/null +++ b/percy-2.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6238612dc401fa5c221c0ad7738f7ea43e48fe2695f6423e785ee2bc940f021d +size 67855 diff --git a/python-percy.changes b/python-percy.changes new file mode 100644 index 0000000..248d7f6 --- /dev/null +++ b/python-percy.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Fri May 9 05:12:32 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Tue Jun 27 11:53:34 UTC 2023 - Markéta Machová + +- Adapt to changes in urllib3 v2 + +------------------------------------------------------------------- +Tue Mar 31 08:05:49 UTC 2020 - Tomáš Chvátal + +- Initial commit, needed by dash diff --git a/python-percy.spec b/python-percy.spec new file mode 100644 index 0000000..8891101 --- /dev/null +++ b/python-percy.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-percy +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-percy +Version: 2.0.2 +Release: 0 +Summary: Visual regression testing library +License: MIT +URL: https://github.com/percy/python-percy-client +Source: https://files.pythonhosted.org/packages/source/p/percy/percy-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests >= 2.14.0} +BuildRequires: %{python_module requests-mock} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: git-core +BuildRequires: python-rpm-macros +Requires: python-requests >= 2.14.0 +BuildArch: noarch +%python_subpackages + +%description +Python client library for visual regression testing with Percy. + +%prep +%setup -q -n percy-%{version} +# support urllib3 v2 +sed -i 's/method_whitelist/allowed_methods/g' percy/connection.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# test_commit_live - needs initialized git repo +%pytest -k 'not test_commit_live' + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/percy +%{python_sitelib}/percy-%{version}.dist-info + +%changelog