forked from pool/python-platformdirs
- update to 4.5.0:
* [pre-commit.ci] pre-commit autoupdate
* Bump pypa/gh-action-pypi-publish from 1.12.4 to 1.13.0 in the
all group
* Bump pypa/gh-action-pypi-publish from 1.12.4 to 1.13.0 in
/.github/workflows
* [pre-commit.ci] pre-commit autoupdate
* Add support for Python 3.14
* [pre-commit.ci] pre-commit autoupdate
* Update Windows file paths in README
* [pre-commit.ci] pre-commit autoupdate
* [pre-commit.ci] pre-commit autoupdate
* Bump astral-sh/setup-uv from 6 to 7 in the all group
* Drop 3.9 support
- update to 4.4.0:
* feat: improve homebrew path detection
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-platformdirs?expand=0&rev=35
This commit is contained in:
81
python-platformdirs.spec
Normal file
81
python-platformdirs.spec
Normal file
@@ -0,0 +1,81 @@
|
||||
#
|
||||
# spec file for package python-platformdirs
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%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%{psuffix}
|
||||
Version: 4.5.0
|
||||
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 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
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".
|
||||
|
||||
%prep
|
||||
%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
|
||||
Reference in New Issue
Block a user