From 48c61bfe6018ed131e2001f618fe6169c47904f566b677537e7bf454c50e02ce Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 5 Feb 2025 13:20:17 +0000 Subject: [PATCH] - Use multibuild for test package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-platformdirs?expand=0&rev=29 --- .gitattributes | 23 ++++ .gitignore | 1 + _multibuild | 3 + platformdirs-4.2.2.tar.gz | 3 + platformdirs-4.3.6.tar.gz | 3 + python-platformdirs.changes | 248 ++++++++++++++++++++++++++++++++++++ python-platformdirs.spec | 81 ++++++++++++ 7 files changed, 362 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 platformdirs-4.2.2.tar.gz create mode 100644 platformdirs-4.3.6.tar.gz create mode 100644 python-platformdirs.changes create mode 100644 python-platformdirs.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/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/platformdirs-4.2.2.tar.gz b/platformdirs-4.2.2.tar.gz new file mode 100644 index 0000000..a15d63a --- /dev/null +++ b/platformdirs-4.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:38b7b51f512eed9e84a22788b4bce1de17c0adb134d6becb09836e37d8654cd3 +size 20916 diff --git a/platformdirs-4.3.6.tar.gz b/platformdirs-4.3.6.tar.gz new file mode 100644 index 0000000..ff9607e --- /dev/null +++ b/platformdirs-4.3.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:357fb2acbc885b0419afd3ce3ed34564c13c9b95c89360cd9563f73aa5e2b907 +size 21302 diff --git a/python-platformdirs.changes b/python-platformdirs.changes new file mode 100644 index 0000000..9e0ec60 --- /dev/null +++ b/python-platformdirs.changes @@ -0,0 +1,248 @@ +------------------------------------------------------------------- +Wed Feb 5 12:15:54 UTC 2025 - Daniel Garcia + +- Use multibuild for test package + +------------------------------------------------------------------- +Wed Nov 20 16:12:13 UTC 2024 - Dirk Müller + +- 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 + +- update to 4.2.2: + * Fix android detection when python4android is present + +------------------------------------------------------------------- +Sat Apr 27 07:40:21 UTC 2024 - Dirk Müller + +- update to 4.2.1: + * Switch to ruff for formatting and use codespell and + docformatter + * Use hatch over tox + * Allow working without ctypes + +------------------------------------------------------------------- +Thu Feb 1 12:37:16 UTC 2024 - Dirk Müller + +- update to 4.2.0: + * Fix 2 typos about XDG_DATA_DIR + * Add convenience methods to `PlatformDirsAPI` that allow + iterating over both user and site dirs/paths. + +------------------------------------------------------------------- +Mon Jan 1 20:22:00 UTC 2024 - Dirk Müller + +- update to 4.1.0: + * docs: fix Linux user_log_dir example in README + * Drop support for EOL Python 3.7 +- update to 4.0.0: + * site_cache_dir: Use `/var/cache` again instead of `/var/tmp` + on UNIX + +------------------------------------------------------------------- +Thu Nov 9 08:47:29 UTC 2023 - ecsos + +- Update to 3.11.0 + - README: Fix CI badge in #222 + - Fix documentation build in #225 + - Add support for Homebrew-installed software in #232 +- Changes from 3.10.0 + - Fix docs build failure in #210 + - platformdirs: introduce site_runtime_dir in #212 +- Changes from 3.9.1 + - unix: Optionally create the opinionated log/ in user_log_dir() + in #208 +- Changes from 3.9.0 + - Added desktop folder in #200 +- Changes from 3.8.1 + - BSD: provide a fallback for user_runtime_dir in #201 +- Changes from 3.8.0 + - Add missing user media directory docs in #195 +- Changes from 3.7.0 + - Have user_runtime_dir return /var/run/user/uid for *BSD in #194 +- Changes from 3.6.0 + - platformdirs: introduce user_downloads_dir() in #192 +- Changes from 3.5.3 + - https://github.com/platformdirs/platformdirs/compare/3.5.2...3.5.3 +- Changes from 3.5.2 + - git ls-files -z -- .github/workflows/check.yml | xargs -0 + sed -i 's|3.12.0-alpha.7|3.12.0-beta.1|g' in #187 + - Use ruff in #189 + +------------------------------------------------------------------- +Fri Jun 2 20:55:07 UTC 2023 - Dirk Müller + +- update to 3.5.1: + * Add 3.12 support + * Add tox.ini to sdist + * removing Windows versions + * Better handling for UNIX support + * platformdirs: introduce `user_music_dir()` + * platformdirs: introduce `user_videos_dir()` + * Adding platformdirs.PlatformDirs to docs + * Fix linter failures + * Exclude bots from generated release notes + * platformdirs: introduce `user_pictures_dir()` + +------------------------------------------------------------------- +Fri Apr 21 12:29:27 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:43:03 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Sun Apr 2 15:40:11 UTC 2023 - Andreas Prittwitz + +- update to 3.2.0 + + * Remove reference to missing CHANGES.rst in %doc section + * Rename %license reference to LICENSE + * Add pyproject-fmt by @gaborbernat in #150 + * Bump deps and tools by @gaborbernat in #149 + * Bump pypa/gh-action-pypi-publish from 1.6.4 to 1.7.1 by + @dependabot in #151 + * Bump pypa/gh-action-pypi-publish from 1.7.1 to 1.8.1 by + @dependabot in #153 + * Bump deps and tools by @gaborbernat in #154 + * Bump pypa/gh-action-pypi-publish from 1.8.1 to 1.8.3 by + @dependabot in #156 + * Add option to create directories by @smsearcy in #155 + +- changes in 3.1.1 + + * site_cache_dir: use /var/tmp instead of /var/cache on unix by + @efiop in #148 + +- changes in 3.1.0 + + * rst: fix backtics by @efiop in #146 + * platformdirs: introduce site_cache_dir by @efiop in #145 + +- changes in 3.0.1 + + * pyproject.toml: add appdirs keyword by @efiop in #144 + +- changes in 3.0.0 + + * Fix CI by @gaborbernat in #125 + * Use the correct project name in documentation by @pradyunsg in + #131 + * Fix CI by @gaborbernat in #138 + * Fix macos user_site_dir by @ThomasWaldmann in #137 + +- changes in 2.6.2 + + * Add typing-extensions as dependency when python_version < 3.8 + by @amacf in #123 + +- changes in 2.6.1 + + * Bump pypa/gh-action-pypi-publish from 1.6.1 to 1.6.4 by + @dependabot in #116 + * Fix the CI, bump tools by @gaborbernat in #119 + * Coverage reporting fixes by @nedbat in #121 + * Fix #114 by @Freed-Wu in #115 + +- changes in 2.6.0 + + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #107 + * Bump pypa/gh-action-pypi-publish from 1.5.1 to 1.5.2 by + @dependabot in #111 + * Bump pypa/gh-action-pypi-publish from 1.5.2 to 1.6.1 by + @dependabot in #113 + * Change user_log_dir to point to user_state_dir on Linux per the + XDG spec by @lordwelch in #108 + +- changes in 2.5.4 + + * Update check.yml + +- changes in 2.5.3 + + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #80 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #82 + * Bump pre-commit/action from 2.0.3 to 3.0.0 by @dependabot in + #87 + * Bump actions/upload-artifact from 2 to 3 by @dependabot in #86 + * Bump actions/download-artifact from 2 to 3 by @dependabot in + #85 + * Bump actions/setup-python from 2 to 4 by @dependabot in #84 + * Bump actions/checkout from 2 to 3 by @dependabot in #83 + * Docs: platformdirs is a package by @chanicpanic in #88 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #89 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #91 + * Check 3.11 support by @gaborbernat in #92 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #93 + * Bump tools by @gaborbernat in #94 + * Bump dependencies by @gaborbernat in #95 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #96 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #99 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #100 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #101 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #102 + * Declare support for Python 3.11 by @hugovk in #103 + +------------------------------------------------------------------- +Mon Aug 22 21:59:19 UTC 2022 - Ben Greiner + +- Update to 2.5.2: + * Move packaging to hatchling from setuptools + * Treat android shells as unix +- Disable building the docs. + * It's the only package in Ring1 pulling in + python-sphinx-autodoc-typehints and thus python-nptyping and + python-beartype. Avoid it. The online docs should be enough + nowadays. + * Drop no-furo.patch + +------------------------------------------------------------------- +Sat Mar 26 18:42:11 UTC 2022 - Dirk Müller + +- update to 2.5.1: + - Add native support for nuitka + - Add support for Termux subsystems + +------------------------------------------------------------------- +Mon Jan 10 22:19:08 UTC 2022 - Dirk Müller + +- update to 2.4.1: + * python 3.6 removal + +------------------------------------------------------------------- +Sun Oct 3 19:04:59 UTC 2021 - Ben Greiner + +- Update to version 2.4.0 + * Add user_documents_dir + * Add user_runtime_dir and its path-returning equivalent (#37) +- Fix egg-info version: build requires setuptools_scm >= 5 + +------------------------------------------------------------------- +Tue Aug 3 09:35:42 UTC 2021 - Matej Cepl + +- Initial package for platformdirs 2.2.0. +- Add no-furo.patch to avoid using furo Sphinx theme + (https://github.com/pradyunsg/furo/discussions/148#discussioncomment-1125486) diff --git a/python-platformdirs.spec b/python-platformdirs.spec new file mode 100644 index 0000000..7e3d276 --- /dev/null +++ b/python-platformdirs.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-platformdirs +# +# 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 +# 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.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 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