From 0453c33261b7714e55fb6ce18b75d7ebcdffa242dc24d0ad46d577d5c8a2ef6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 9 Dec 2025 10:45:26 +0000 Subject: [PATCH] - Update to 0.7.1 * Make test_find_python_from_uv_provider working on SunOS - Skip test failing in Factory by design OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-findpython?expand=0&rev=27 --- .gitattributes | 23 ++++++++ .gitignore | 1 + findpython-0.7.0.tar.gz | 3 ++ findpython-0.7.1.tar.gz | 3 ++ python-findpython.changes | 110 ++++++++++++++++++++++++++++++++++++++ python-findpython.spec | 77 ++++++++++++++++++++++++++ 6 files changed, 217 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 findpython-0.7.0.tar.gz create mode 100644 findpython-0.7.1.tar.gz create mode 100644 python-findpython.changes create mode 100644 python-findpython.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/findpython-0.7.0.tar.gz b/findpython-0.7.0.tar.gz new file mode 100644 index 0000000..b679fee --- /dev/null +++ b/findpython-0.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b31647c76352779a3c1a0806699b68e6a7bdc0b5c2ddd9af2a07a0d40c673dc +size 18858 diff --git a/findpython-0.7.1.tar.gz b/findpython-0.7.1.tar.gz new file mode 100644 index 0000000..c3f7cb0 --- /dev/null +++ b/findpython-0.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f29e6a3dabdb75f2b39c949772c0ed26eab15308006669f3478cdab0d867c78 +size 18867 diff --git a/python-findpython.changes b/python-findpython.changes new file mode 100644 index 0000000..3f5d814 --- /dev/null +++ b/python-findpython.changes @@ -0,0 +1,110 @@ +------------------------------------------------------------------- +Tue Dec 9 10:34:06 UTC 2025 - Markéta Machová + +- Update to 0.7.1 + * Make test_find_python_from_uv_provider working on SunOS +- Skip test failing in Factory by design + +------------------------------------------------------------------- +Sat Aug 16 10:19:41 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 0.7.0 + * Add an option to show the python path only + * Separate free-threaded python from normal ones + * Add support for uv installed python + * Correct the uv python dir with platformdirs + * Return the original python executable if resolve_symlink=True +- Update BuildRequires and Requires from pyproject.toml + +------------------------------------------------------------------- +Mon Jun 2 17:39:06 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 0.6.3 + * Refresh lockfile and fix deprecation warnings + * Prefer 64bit Python interpreters + +------------------------------------------------------------------- +Tue Oct 22 16:04:03 UTC 2024 - Dirk Müller + +- update to 0.6.2: + * Don't skip symlinks for rye provider + * **ci**: Macos for old python versions + +------------------------------------------------------------------- +Sat Apr 20 14:05:16 UTC 2024 - Dirk Müller + +- update to 0.6.1: + * Ignore invalid version strinig from winreg +- update to 0.6.0: + * Support find by implementation +- update to 0.5.0: + * Add implementation property + * Drop support for python 3.7 + * Find rye pythons with and without install directory + +------------------------------------------------------------------- +Fri Jan 5 17:47:42 UTC 2024 - Dirk Müller + +- drop revert-back-to-pdm-pep517.patch: + try to resolve build cycle differently + +------------------------------------------------------------------- +Mon Dec 11 07:18:35 UTC 2023 - Steve Kowalik + +- Update 0.4.1: + * feat: provider selector by @frostming in #20 + * feat: add support for RyeProvider + * feat: Add way to filter providers by @bluss in #18 + * feat: add register_provider function and change ALL_PROVIDERS to a map + * fix: don't import site-packages when running in-process scripts + * Make GET_VERSION_TIMEOUT settable via env vars + * Support allow_prereleases option +- Add patch revert-back-to-pdm-pep517.patch: + * We need to use pdm-pep517, to avoid circular requirements. + +------------------------------------------------------------------- +Thu Jun 15 12:45:30 UTC 2023 - Andreas Schneider + +- Use sle15_python_module_pythons + +------------------------------------------------------------------- +Wed May 10 19:32:02 UTC 2023 - Dirk Müller + +- update to 0.2.5: + * UTF-8 encoding of shell command output on Windows + * Findpython failed if PATH env contains folder + with restricted access + +------------------------------------------------------------------- +Tue Jan 31 15:18:19 UTC 2023 - Dirk Müller + +- update to 0.2.4: + * Check path access before is_dir to prevent PermissionError exceptions + +------------------------------------------------------------------- +Fri Jan 20 12:13:56 UTC 2023 - Dirk Müller + +- update to 0.2.3: + * Strip the local part in python version Fix #12 + +------------------------------------------------------------------- +Tue Nov 8 00:26:09 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 0.2.2 + * Prevent find_all exception when a clean pyenv is present - by @ferminho in #11 + * Don't parse as LegacyVersion - by @frostming (e3466) + +------------------------------------------------------------------- +Mon Aug 15 16:16:58 UTC 2022 - Ben Greiner + +- Update to 0.2.1 + * Fix the python detection logic to try the fast method first +- Release 0.2.0 + * Allow provider to keep symlink even when resolve_symlinks is + True +- Fix requirements + +------------------------------------------------------------------- +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..a4f6f99 --- /dev/null +++ b/python-findpython.spec @@ -0,0 +1,77 @@ +# +# spec file for package python-findpython +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-findpython +Version: 0.7.1 +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 base >= 3.7} +BuildRequires: %{python_module packaging >= 20} +BuildRequires: %{python_module pdm-backend} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module platformdirs >= 4.3.6} +BuildRequires: fdupes +BuildRequires: git +BuildRequires: python-rpm-macros +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +Requires: python-platformdirs >= 4.3.6 +Requires(post): update-alternatives +Requires(postun): update-alternatives +Requires: python-packaging >= 20 +%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 +# test_find_python_from_uv_provider needs python3 providing python 3.10, which is not possible in Factory +%pytest -k "not test_find_python_from_uv_provider" + +%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 +%{python_sitelib}/findpython-%{version}*-info + +%changelog