commit d7c21fe4b9c4daf232ee97961a2dbf761525b7ebdbe126f913e8346a1c37477d Author: Steve Kowalik Date: Wed Jun 15 01:54:36 2022 +0000 - Initial packaging for findpython 0.1.6. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-findpython?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/findpython-0.1.6.tar.gz b/findpython-0.1.6.tar.gz new file mode 100644 index 0000000..077de56 --- /dev/null +++ b/findpython-0.1.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9fd6185cdcb96baa7109308447efb493b2c7f1a8f569e128af14d726b2a69e18 +size 15399 diff --git a/python-findpython.changes b/python-findpython.changes new file mode 100644 index 0000000..fe05e11 --- /dev/null +++ b/python-findpython.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Jun 14 06:06:48 UTC 2022 - Steve Kowalik + +- Initial packaging for findpython 0.1.6. diff --git a/python-findpython.spec b/python-findpython.spec new file mode 100644 index 0000000..b9e1929 --- /dev/null +++ b/python-findpython.spec @@ -0,0 +1,73 @@ +# +# spec file for package python-findpython +# +# Copyright (c) 2022 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() python3-%{**}} +Name: python-findpython +Version: 0.1.6 +Release: 0 +Summary: Utility to find python versions on your system. +License: MIT +URL: https://github.com/frostming/findpython +Source: https://files.pythonhosted.org/packages/source/f/findpython/findpython-%{version}.tar.gz +BuildRequires: %{python_module pdm-pep517} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: git +BuildRequires: python-rpm-macros +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +Requires(post): update-alternatives +Requires(postun):update-alternatives +%python_subpackages + +%description +Discover which versions of the Python interpreter are present on your +system. + +%prep +%autosetup -p1 -n findpython-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/findpython +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%post +%python_install_alternative findpython + +%postun +%python_uninstall_alternative findpython + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/findpython +%{python_sitelib}/findpython* + +%changelog