commit 5653f90c659db6a20d4ece5407c42f2da2e07d2b4598476fdb5c9cff4f6b8ddf Author: Matej Cepl Date: Sun Nov 21 13:08:55 2021 +0000 Accepting request 932806 from home:ozu Implemented changes requested by Matej Cepl OBS-URL: https://build.opensuse.org/request/show/932806 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypi-search?expand=0&rev=1 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..dc44bb0 --- /dev/null +++ b/python-pypi-search.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +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..afe8f4f --- /dev/null +++ b/python-pypi-search.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-pypi-search +# +# Copyright (c) 2021 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +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-rpm-macros +BuildRequires: %{python_module setuptools} +# 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 +BuildRequires: fdupes +Requires: python-beautifulsoup4 >= 4.9.2 +Requires: python-html2text >= 2020.1.16 +Requires: python-requests >= 2.22.0 +BuildArch: noarch +Requires(post): update-alternatives +Requires(postun): update-alternatives +%python_subpackages + +%description +Get Information on Python Packages From PyPI + +%prep +%setup -q -n pypi-search-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/pypisearch +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative pypisearch + +%postun +%python_uninstall_alternative pypisearch + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/pypisearch +%{python_sitelib}/pypi_search* + +%changelog