From 35876519b571ef019b672c741d6f3f21c5948393a720a6a60b3917dcd664f86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 23 Aug 2022 09:41:06 +0000 Subject: [PATCH] Accepting request 998726 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/998726 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-platformdirs?expand=0&rev=9 --- no-furo.patch | 20 -------------------- platformdirs-2.5.1.tar.gz | 3 --- platformdirs-2.5.2.tar.gz | 3 +++ python-platformdirs.changes | 13 +++++++++++++ python-platformdirs.spec | 34 +++++++--------------------------- 5 files changed, 23 insertions(+), 50 deletions(-) delete mode 100644 no-furo.patch delete mode 100644 platformdirs-2.5.1.tar.gz create mode 100644 platformdirs-2.5.2.tar.gz diff --git a/no-furo.patch b/no-furo.patch deleted file mode 100644 index 26ebff1..0000000 --- a/no-furo.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- - docs/conf.py | 4 ++-- - src/platformdirs/__init__.py | 1 + - src/platformdirs/api.py | 2 ++ - 3 files changed, 5 insertions(+), 2 deletions(-) - ---- a/docs/conf.py -+++ b/docs/conf.py -@@ -11,9 +11,9 @@ extensions = [ - "sphinx.ext.autosectionlabel", - "sphinx.ext.viewcode", - "sphinx.ext.intersphinx", -- # "sphinx_autodoc_typehints", -+ "sphinx_autodoc_typehints", - ] --html_theme = "furo" -+html_theme = "alabaster" - - autodoc_default_options = { - "member-order": "bysource", diff --git a/platformdirs-2.5.1.tar.gz b/platformdirs-2.5.1.tar.gz deleted file mode 100644 index 632f4e8..0000000 --- a/platformdirs-2.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7535e70dfa32e84d4b34996ea99c5e432fa29a708d0f4e394bbcb2a8faa4f16d -size 24720 diff --git a/platformdirs-2.5.2.tar.gz b/platformdirs-2.5.2.tar.gz new file mode 100644 index 0000000..9f14d3a --- /dev/null +++ b/platformdirs-2.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58c8abb07dcb441e6ee4b11d8df0ac856038f944ab98b7be6b27b2a3c7feef19 +size 22529 diff --git a/python-platformdirs.changes b/python-platformdirs.changes index 3af0284..3f78a9f 100644 --- a/python-platformdirs.changes +++ b/python-platformdirs.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +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 diff --git a/python-platformdirs.spec b/python-platformdirs.spec index 65d334b..b554788 100644 --- a/python-platformdirs.spec +++ b/python-platformdirs.spec @@ -16,56 +16,39 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-platformdirs -Version: 2.5.1 +Version: 2.5.2 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 -# PATCH-FIX-OPENSUSE no-furo.patch mcepl@suse.com -# https://github.com/pradyunsg/furo/discussions/148#discussioncomment-1125486 -# Don't use furo Sphinx theme -Patch0: no-furo.patch 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} BuildRequires: %{python_module pytest >= 6} BuildRequires: %{python_module pytest-mock >= 3.6} -BuildRequires: %{python_module setuptools_scm >= 5} -BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python3-Sphinx >= 4 -BuildRequires: python3-sphinx-autodoc-typehints >= 1.12 BuildArch: noarch %python_subpackages %description A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". -%package -n %{name}-doc -Summary: Documentation files for %{name} -Group: Documentation/Other - -%description -n %{name}-doc -HTML Documentation and examples for %{name}. - %prep %autosetup -p1 -n platformdirs-%{version} %build -%python_build - -PYTHONPATH=src sphinx-build -b html docs/ docs/build/html -rm -r docs/build/html/.{buildinfo,doctrees} +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -rm tox.ini %pytest %files %{python_files} @@ -74,7 +57,4 @@ rm tox.ini %{python_sitelib}/platformdirs %{python_sitelib}/platformdirs-%{version}*-info -%files -n %{name}-doc -%doc docs/build/html/ - %changelog