From f6211f3ddb16d9bbde25f40a961a7270a17e7fb4feee7cda4befe946237a6c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 10 Jun 2025 12:10:04 +0000 Subject: [PATCH 1/2] - Convert to pip-based build and libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypi-search?expand=0&rev=5 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + pypi-search-1.2.1.tar.gz | 3 ++ python-pypi-search.changes | 15 +++++++++ python-pypi-search.spec | 67 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 109 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pypi-search-1.2.1.tar.gz create mode 100644 python-pypi-search.changes create mode 100644 python-pypi-search.spec 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/pypi-search-1.2.1.tar.gz b/pypi-search-1.2.1.tar.gz new file mode 100644 index 0000000..85de5dc --- /dev/null +++ b/pypi-search-1.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d84c2334c56f2b32a58ef35b528f9f71c65b463b3cc0d79a377939464cae07fc +size 5629 diff --git a/python-pypi-search.changes b/python-pypi-search.changes new file mode 100644 index 0000000..35b70bf --- /dev/null +++ b/python-pypi-search.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Tue Jun 10 11:41:00 UTC 2025 - Markéta Machová + +- Convert to pip-based build and libalternatives + +------------------------------------------------------------------- +Wed Jun 21 15:27:04 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Sat Nov 20 10:00:28 UTC 2021 - Fabio Pesari + +- Upload to openSUSE, version 1.2.1 + diff --git a/python-pypi-search.spec b/python-pypi-search.spec new file mode 100644 index 0000000..1d6f542 --- /dev/null +++ b/python-pypi-search.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-pypi-search +# +# 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/ +# + + +%bcond_without libalternatives +%{?sle15_python_module_pythons} +Name: python-pypi-search +Version: 1.2.1 +Release: 0 +Summary: Get Information on Python Packages From PyPI +License: MIT +URL: https://github.com/asadmoosvi/pypi-search +Source: https://files.pythonhosted.org/packages/source/p/pypi-search/pypi-search-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: alts +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: alts +Requires: python-beautifulsoup4 >= 4.9.2 +Requires: python-html2text >= 2020.1.16 +Requires: python-requests >= 2.22.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module beautifulsoup4 >= 4.9.2} +BuildRequires: %{python_module html2text >= 2020.1.16} +BuildRequires: %{python_module requests >= 2.22.0} +# /SECTION +%python_subpackages + +%description +Get Information on Python Packages From PyPI + +%prep +%setup -q -n pypi-search-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/pypisearch +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%pre +%python_libalternatives_reset_alternative pypisearch + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/pypisearch +%{python_sitelib}/pypi_search* + +%changelog From 63b94c5e13120648e2c3fe22dc9e861ab4320eb7f2fda7e1097753f5c63e0cb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 10 Jun 2025 12:18:40 +0000 Subject: [PATCH 2/2] - Update packaging * run spec-cleaner * convert to pip-based build * convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypi-search?expand=0&rev=6 --- python-pypi-search.changes | 5 ++++- python-pypi-search.spec | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-pypi-search.changes b/python-pypi-search.changes index 35b70bf..25001b6 100644 --- a/python-pypi-search.changes +++ b/python-pypi-search.changes @@ -1,7 +1,10 @@ ------------------------------------------------------------------- Tue Jun 10 11:41:00 UTC 2025 - Markéta Machová -- Convert to pip-based build and libalternatives +- Update packaging + * run spec-cleaner + * convert to pip-based build + * convert to libalternatives ------------------------------------------------------------------- Wed Jun 21 15:27:04 UTC 2023 - ecsos diff --git a/python-pypi-search.spec b/python-pypi-search.spec index 1d6f542..54e7a47 100644 --- a/python-pypi-search.spec +++ b/python-pypi-search.spec @@ -25,7 +25,9 @@ Summary: Get Information on Python Packages From PyPI License: MIT URL: https://github.com/asadmoosvi/pypi-search Source: https://files.pythonhosted.org/packages/source/p/pypi-search/pypi-search-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros