From 90fa8f107ad10a3ab7f30fbddfabd1076e2efc10 Mon Sep 17 00:00:00 2001 From: bbrucezhang Date: Mon, 24 Mar 2025 11:22:00 +0800 Subject: [PATCH 1/2] Update to 4.2.2 for python-virtualenv --- python-platformdirs.spec | 52 +++++++++++++++++++++++++--------------- sources | 2 +- 2 files changed, 34 insertions(+), 20 deletions(-) diff --git a/python-platformdirs.spec b/python-platformdirs.spec index 0dedfaf..fe680c4 100644 --- a/python-platformdirs.spec +++ b/python-platformdirs.spec @@ -1,27 +1,37 @@ -%global srcname platformdirs - -Summary: Python module for determining appropriate platform-specific dirs -Name: python-%{srcname} -Version: 2.5.4 -Release: 4%{?dist} +Name: python-platformdirs +Version: 4.2.2 +Release: 1%{dist} +Summary: A small Python package for determining appropriate platform-specific dirs License: MIT URL: https://github.com/platformdirs/platformdirs -Source0: https://files.pythonhosted.org/packages/source/p/platformdirs/%{srcname}-%{version}.tar.gz - +Source: https://files.pythonhosted.org/packages/source/p/platformdirs/platformdirs-%{version}.tar.gz BuildArch: noarch -%description -A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". +%global common_description %{expand: +When writing desktop application, finding the right location to store user data +and configuration varies per platform. Even for single-platform apps, there +may by plenty of nuances in figuring out the right location. This kind of +thing is what the platformdirs package is for.} + -%package -n python3-%{srcname} -Summary: Python module for determining appropriate platform-specific dir +%description %{common_description} + + +%package -n python3-platformdirs +Summary: %{summary} BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + + +%description -n python3-platformdirs %{common_description} -%description -n python3-%{srcname} -A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n platformdirs-%{version} + +sed -r -i '/^[[:blank:]]*"pytest-cov\b/d' pyproject.toml +sed -r -i '/^[[:blank:]]*"covdefaults\b/d' pyproject.toml + %generate_buildrequires %pyproject_buildrequires -x test @@ -31,16 +41,20 @@ A small Python module for determining appropriate platform-specific dirs, e.g. a %install %pyproject_install -%pyproject_save_files %{srcname} +%pyproject_save_files platformdirs %check %pytest -%files -n python3-%{srcname} -f %{pyproject_files} -%license LICENSE -%doc README.rst CHANGES.rst + +%files -n python3-platformdirs -f %{pyproject_files} +%doc README.rst + %changelog +* Mon Mar 24 2025 bbrucezhang - 4.2.2-1 +- Update to 4.2.2 for python-virtualenv + * Thu Sep 26 2024 OpenCloudOS Release Engineering - 2.5.4-4 - Rebuilt for clarifying the packages requirement in BaseOS and AppStream diff --git a/sources b/sources index bf2d931..9d4afba 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (platformdirs-2.5.4.tar.gz) = 1b7ff79a421bc0b0320a9b1ba8f99dbbecd34a9bea7fa7696b58007f2e05d8a910a3f32e2c03e6e3a8f3d272ab1c045051a682e3155c5bc5285e66e4add59489 +SHA512 (platformdirs-4.2.2.tar.gz) = e67aff332a6c84669d77a68e7d5546bfd14e08dcf61681b03447bf6381c0d981c63be0f87fd63bc99f0a51c92bf960902ded83ba8872801c14755ab163d45a0f -- Gitee From 2f5b3b42a297960bb8cc646dc366c27949ffcb9a Mon Sep 17 00:00:00 2001 From: bbrucezhang Date: Mon, 24 Mar 2025 19:48:39 +0800 Subject: [PATCH 2/2] Update to 3.11.0 for python-virtualenv --- python-platformdirs.spec | 32 ++++++++++++++++---------------- sources | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/python-platformdirs.spec b/python-platformdirs.spec index fe680c4..1903209 100644 --- a/python-platformdirs.spec +++ b/python-platformdirs.spec @@ -1,33 +1,33 @@ -Name: python-platformdirs -Version: 4.2.2 -Release: 1%{dist} -Summary: A small Python package for determining appropriate platform-specific dirs +%global srcname platformdirs + +Name: python-%{srcname} +Version: 3.11.0 +Release: 1%{?dist} +Summary: Python module for determining appropriate platform-specific dirs License: MIT URL: https://github.com/platformdirs/platformdirs -Source: https://files.pythonhosted.org/packages/source/p/platformdirs/platformdirs-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/platformdirs/%{srcname}-%{version}.tar.gz BuildArch: noarch %global common_description %{expand: -When writing desktop application, finding the right location to store user data -and configuration varies per platform. Even for single-platform apps, there -may by plenty of nuances in figuring out the right location. This kind of -thing is what the platformdirs package is for.} +A small Python module for determining appropriate platform-specific dirs, e.g. +a "user data dir".} %description %{common_description} -%package -n python3-platformdirs +%package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros -%description -n python3-platformdirs %{common_description} +%description -n python3-%{srcname} %{common_description} %prep -%autosetup -n platformdirs-%{version} +%autosetup -n %{srcname}-%{version} sed -r -i '/^[[:blank:]]*"pytest-cov\b/d' pyproject.toml sed -r -i '/^[[:blank:]]*"covdefaults\b/d' pyproject.toml @@ -41,19 +41,19 @@ sed -r -i '/^[[:blank:]]*"covdefaults\b/d' pyproject.toml %install %pyproject_install -%pyproject_save_files platformdirs +%pyproject_save_files %{srcname} %check %pytest -%files -n python3-platformdirs -f %{pyproject_files} +%files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst %changelog -* Mon Mar 24 2025 bbrucezhang - 4.2.2-1 -- Update to 4.2.2 for python-virtualenv +* Mon Mar 24 2025 bbrucezhang - 3.11.0-1 +- Update to 3.11.0 for python-virtualenv * Thu Sep 26 2024 OpenCloudOS Release Engineering - 2.5.4-4 - Rebuilt for clarifying the packages requirement in BaseOS and AppStream diff --git a/sources b/sources index 9d4afba..6378c46 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (platformdirs-4.2.2.tar.gz) = e67aff332a6c84669d77a68e7d5546bfd14e08dcf61681b03447bf6381c0d981c63be0f87fd63bc99f0a51c92bf960902ded83ba8872801c14755ab163d45a0f +SHA512 (platformdirs-3.11.0.tar.gz) = a273ea8fc5916bdb94da9cc62ccef60a7247b5a019639aae3be9718626ce59d27d8e62c6552c25a3cdd0e7fb7215c32b6c30f2509a3356623f628f771e92bb56 -- Gitee