!4 Upgrade to 3.5.0
From: @cherry530 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
6afed80133
@ -1,31 +0,0 @@
|
||||
From 8737b8d1f7727fa145fd858425e6552692a3b753 Mon Sep 17 00:00:00 2001
|
||||
From: yuqi <yuqi@isrc.iscas.ac.cn>
|
||||
Date: Mon, 30 May 2022 12:37:51 +0000
|
||||
Subject: [PATCH] fix pkg version
|
||||
|
||||
---
|
||||
setup.py | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index a03590f..468a2f1 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -1,5 +1,13 @@
|
||||
from __future__ import annotations
|
||||
+import io
|
||||
+import re
|
||||
+
|
||||
|
||||
from setuptools import setup
|
||||
+with io.open("src/platformdirs/version.py", "rt", encoding="utf8") as f:
|
||||
+ version = re.search(r'''__version__ = ['"]([0-9.]+)['"]''', f.read()).group(1)
|
||||
|
||||
-setup()
|
||||
+setup(
|
||||
+ name="platformdirs",
|
||||
+ version=version,
|
||||
+ )
|
||||
--
|
||||
2.33.0
|
||||
|
||||
Binary file not shown.
BIN
platformdirs-3.5.0.tar.gz
Normal file
BIN
platformdirs-3.5.0.tar.gz
Normal file
Binary file not shown.
@ -1,13 +1,15 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-platformdirs
|
||||
Version: 2.5.1
|
||||
Version: 3.5.0
|
||||
Release: 1
|
||||
Summary: A small Python module for determining appropriate platform-specific dirs
|
||||
License: MIT
|
||||
URL: https://github.com/platformdirs/platformdirs
|
||||
Source0: https://files.pythonhosted.org/packages/33/66/61da40aa546141b0d70b37fe6bb4ef1200b4b4cb98849f131b58faa9a5d2/platformdirs-2.5.1.tar.gz
|
||||
Patch0: 0001-fix-pkg-version.patch
|
||||
Source0: https://files.pythonhosted.org/packages/91/17/3836ffe140abb245726d0e21c5b9b984e2569e7027c20d12e969ec69bd8a/platformdirs-3.5.0.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel
|
||||
|
||||
%description
|
||||
The problem When writing desktop application, finding the right location to
|
||||
store user data and configuration varies per platform. Even for single-platform
|
||||
@ -46,47 +48,30 @@ cp -r src/platformdirs tests/
|
||||
cp -r src/platformdirs ./
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install platformdirs==%{version}
|
||||
|
||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||
pushd %{buildroot}
|
||||
if [ -d usr/lib ]; then
|
||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib64 ]; then
|
||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/bin ]; then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/sbin ]; then
|
||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
touch doclist.lst
|
||||
if [ -d usr/share/man ]; then
|
||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||
fi
|
||||
popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
mv %{buildroot}/doclist.lst .
|
||||
|
||||
%check
|
||||
/usr/bin/pytest
|
||||
|
||||
%files -n python3-platformdirs -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
%files -n python3-platformdirs
|
||||
%{python3_sitelib}/platformdirs*
|
||||
|
||||
%files help -f doclist.lst
|
||||
%files help
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Sat May 06 2023 xu_ping <707078654@qq.com> - 3.5.0-1
|
||||
- Upgrade the version to 3.5.0
|
||||
|
||||
* Thu May 26 2022 OpenStack_SIG <openstack@openeuler.org> - 2.5.1-1
|
||||
- Upgrade the version to 2.5.1
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user