From 4052a10c2bc9afdd7e082bbfe9c268eea789c7aee62ab0f7394c7acdfb59efc6 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Thu, 10 Aug 2023 07:20:22 +0000 Subject: [PATCH] - add sle15_python_module_pythons (jsc#PED-68, jsc#PED-5573) - update to 1.9.0 * Ignore the current directory for path detection on Windows * On non-Windows systems only modify login shells - v1.8.0 * Broadcast WM_SETTINGCHANGE on Windows * Drop Python 2.7 & 3.6 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-userpath?expand=0&rev=11 --- python-userpath.changes | 11 +++++++++++ python-userpath.spec | 25 ++++++++++++++----------- userpath-1.7.0.tar.gz | 3 --- userpath-1.9.0.tar.gz | 3 +++ 4 files changed, 28 insertions(+), 14 deletions(-) delete mode 100644 userpath-1.7.0.tar.gz create mode 100644 userpath-1.9.0.tar.gz diff --git a/python-userpath.changes b/python-userpath.changes index 8ddae91..36071f2 100644 --- a/python-userpath.changes +++ b/python-userpath.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Aug 10 07:10:31 UTC 2023 - Daniel Garcia + +- add sle15_python_module_pythons (jsc#PED-68, jsc#PED-5573) +- update to 1.9.0 + * Ignore the current directory for path detection on Windows + * On non-Windows systems only modify login shells +- v1.8.0 + * Broadcast WM_SETTINGCHANGE on Windows + * Drop Python 2.7 & 3.6 + ------------------------------------------------------------------- Mon Mar 14 10:06:06 UTC 2022 - PragmaticLinux diff --git a/python-userpath.spec b/python-userpath.spec index 361483f..9dcfe4d 100644 --- a/python-userpath.spec +++ b/python-userpath.spec @@ -1,7 +1,7 @@ # # spec file for package python-userpath # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,15 +16,17 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} Name: python-userpath -Version: 1.7.0 +Version: 1.9.0 Release: 0 Summary: Tool for adding locations to the user PATH -License: Apache-2.0 OR MIT +License: MIT URL: https://github.com/ofek/userpath Source: https://files.pythonhosted.org/packages/source/u/userpath/userpath-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-click @@ -42,13 +44,13 @@ Cross-platform tool for adding locations to the user PATH, with no elevated privileges required. %prep -%setup -q -n userpath-%{version} +%autosetup -p1 -n userpath-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/userpath %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -63,9 +65,10 @@ export LC_ALL=C.UTF-8 %python_uninstall_alternative userpath %files %{python_files} -%doc README.rst -%license LICENSE-APACHE LICENSE-MIT +%doc README.md +%license LICENSE.txt %python_alternative %{_bindir}/userpath -%{python_sitelib}/* +%{python_sitelib}/userpath +%{python_sitelib}/userpath-%{version}*-info %changelog diff --git a/userpath-1.7.0.tar.gz b/userpath-1.7.0.tar.gz deleted file mode 100644 index ef442ee..0000000 --- a/userpath-1.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dcd66c5fa9b1a3c12362f309bbb5bc7992bac8af86d17b4e6b1a4b166a11c43f -size 20360 diff --git a/userpath-1.9.0.tar.gz b/userpath-1.9.0.tar.gz new file mode 100644 index 0000000..671c7b3 --- /dev/null +++ b/userpath-1.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:85e3274543174477c62d5701ed43a3ef1051824a9dd776968adc411e58640dd1 +size 11040