Sync from SUSE:SLFO:Main python-platformdirs revision 045ff0bd4e49241f3a30db32601ca03a

This commit is contained in:
2025-05-17 15:54:36 +02:00
parent ab2b35f4ed
commit c77862a753
5 changed files with 57 additions and 7 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

BIN
platformdirs-4.2.2.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
platformdirs-4.3.6.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,31 @@
-------------------------------------------------------------------
Wed Feb 5 12:15:54 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Use multibuild for test package
-------------------------------------------------------------------
Wed Nov 20 16:12:13 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 4.3.6:
* Fix readme download target
- update to 4.3.5:
* Split build and publish for release
- update to 4.3.4:
* Use upstream setup-uv with uv python
- update to 4.3.3:
* Update check.yml
* don't include outdated changelog in docs
- update to 4.3.2:
* Use uv as installer
* Fix multi-path returned from `_path` methods on MacOS
- update to 4.3.0:
* Speed up Hatch installation
* Test with Python 3.13
* Test with latest PyPy
* Use `include-hidden-files: true` to upload coverage artifacts
* Ensure PlatformDirs is valid superclass type for mypy AND not
an abstract class for other checkers
-------------------------------------------------------------------
Tue Jun 4 20:37:45 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-platformdirs
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,22 +16,33 @@
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?sle15_python_module_pythons}
Name: python-platformdirs
Version: 4.2.2
Name: python-platformdirs%{psuffix}
Version: 4.3.6
Release: 0
Summary: 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
BuildRequires: %{python_module appdirs == 1.4.4}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module hatch-vcs}
BuildRequires: %{python_module hatchling >= 0.22.0}
BuildRequires: %{python_module pip}
%if %{with test}
BuildRequires: %{python_module appdirs == 1.4.4}
BuildRequires: %{python_module platformdirs = %{version}}
BuildRequires: %{python_module pytest >= 7.4}
BuildRequires: %{python_module pytest-cov >= 4.1}
BuildRequires: %{python_module pytest-mock >= 3.11.1}
%endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -44,19 +55,27 @@ A small Python module for determining appropriate platform-specific dirs, e.g. a
%autosetup -p1 -n platformdirs-%{version}
%build
%if !%{with test}
%pyproject_wheel
%endif
%install
%if !%{with test}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
%pytest
%endif
%if !%{with test}
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/platformdirs
%{python_sitelib}/platformdirs-%{version}.dist-info
%endif
%changelog