Accepting request 910032 from home:mcepl:branches:devel:languages:python
It seems to be an emerging replacement for the upstream-dead appdirs, so potentially a very widely used package. OBS-URL: https://build.opensuse.org/request/show/910032 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-platformdirs?expand=0&rev=1
This commit is contained in:
commit
0c7cfdea3b
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
20
no-furo.patch
Normal file
20
no-furo.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
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",
|
3
platformdirs-2.2.0.tar.gz
Normal file
3
platformdirs-2.2.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:632daad3ab546bd8e6af0537d09805cec458dce201bccfe23012df73332e181e
|
||||||
|
size 21691
|
6
python-platformdirs.changes
Normal file
6
python-platformdirs.changes
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 3 09:35:42 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- 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)
|
76
python-platformdirs.spec
Normal file
76
python-platformdirs.spec
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-platformdirs
|
||||||
|
#
|
||||||
|
# Copyright (c) 2021 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
Name: python-platformdirs
|
||||||
|
Version: 2.2.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
|
||||||
|
# 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-rpm-macros
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: %{python_module appdirs == 1.4.4}
|
||||||
|
BuildRequires: %{python_module pytest >= 6}
|
||||||
|
BuildRequires: %{python_module pytest-cov >= 2.7}
|
||||||
|
BuildRequires: %{python_module pytest-mock >= 3.6}
|
||||||
|
BuildRequires: python3-Sphinx >= 4
|
||||||
|
BuildRequires: python3-furo >= 2021.7.5b38
|
||||||
|
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
|
||||||
|
|
||||||
|
%install
|
||||||
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%pytest
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%doc CHANGES.rst README.rst
|
||||||
|
%license LICENSE.txt
|
||||||
|
%{python_sitelib}/platformdirs*
|
||||||
|
|
||||||
|
%files -n %{name}-doc
|
||||||
|
%doc docs/build/html/
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user