update version to 16.5.0

This commit is contained in:
Wangjunqi123 2022-11-22 10:15:06 +08:00
parent dda016f4d3
commit 4fae1095c1
4 changed files with 70 additions and 41 deletions

View File

@ -1,25 +1,13 @@
From c6d54531419da1de4c68ed938120f7e9dc73db2c Mon Sep 17 00:00:00 2001 --- c/setup.py 1970-01-01 08:00:00.000000000 +0800
From: liqiuyu123 <liqiuyu@kylinos.cn> +++ a/setup.py 2022-11-22 10:14:02.675655535 +0800
Date: Tue, 9 Aug 2022 16:24:40 +0800 @@ -0,0 +1,10 @@
Subject: [PATCH] add setup file
---
setup.py | 6 ++++++
1 file changed, 6 insertions(+)
create mode 100644 setup.py
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..bac24a4
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,6 @@
+#!/usr/bin/env python +#!/usr/bin/env python
+ +
+import setuptools +import setuptools
+ +
+if __name__ == "__main__": +if __name__ == "__main__":
+ setuptools.setup() + setuptools.setup(
-- + name="path",
2.37.1.windows.1 + version="16.5.0"
+ )
+

Binary file not shown.

BIN
path-16.5.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,43 +1,84 @@
Name: python-path %global _empty_manifest_terminate_build 0
Version: 16.4.0 Name: python-path
Release: 1 Version: 16.5.0
Summary: Python module wrapper for path Release: 1
License: MIT Summary: Python module wrapper for path
URL: https://github.com/jaraco/path License: MIT
Source0: https://files.pythonhosted.org/packages/04/b7/076f0188859b31fcdd9b824cfad63b8ec0c2b354497684f90e486ecb4afa/path-16.4.0.tar.gz URL: https://github.com/jaraco/path
BuildArch: noarch Source0: https://files.pythonhosted.org/packages/fb/e6/dd02249a59d14aa23509591f95ec7d6468fdbddfc6f8b482ad147741c1be/path-16.5.0.tar.gz
BuildRequires: python3-devel python3-setuptools python3-pytest python3-setuptools_scm Patch0: 0001-add-setup-file.patch
Patch0: 0001-add-setup-file.patch BuildArch: noarch
%description %description
This package implements path objects as first-class entities, This package implements path objects as first-class entities,
allowing common operations on files to be invoked on those path objects directly. allowing common operations on files to be invoked on those path objects directly.
%package -n python3-path %package -n python3-path
Summary: Python3 module wrapper for path Summary: Python module wrapper for path
%{?python_provide:%python_provide python3-path} Provides: python-path = %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pytest
BUildRequires: python3-setuptools_scm
%description -n python3-path
This package implements path objects as first-class entities,
allowing common operations on files to be invoked on those path objects directly.
%description -n python3-path %package help
This package implements a path objects as first-class entities, Summary: Development documents and examples for path
Provides: python3-path-doc
%description help
This package implements path objects as first-class entities,
allowing common operations on files to be invoked on those path objects directly. allowing common operations on files to be invoked on those path objects directly.
%prep %prep
%autosetup -n path-%{version} -p1 %autosetup -n path-%{version}
%patch0
%build %build
%py3_build %py3_build
%install
%py3_install
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 %check
/usr/bin/pytest /usr/bin/pytest
%install %files -n python3-path -f filelist.lst
%py3_install %dir %{python3_sitelib}/*
%files -n python3-path %files help -f doclist.lst
%{python3_sitelib}/* %{_docdir}/*
%changelog %changelog
* Tue Nov 22 2022 wangjunqi <wangjunqi@kylinos.cn> - 16.5.0-1
- Update package to version 16.5.0
* Tue Aug 09 2022 liqiuyu <liqiuyu@kylinos.cn> - 16.4.0-1 * Tue Aug 09 2022 liqiuyu <liqiuyu@kylinos.cn> - 16.4.0-1
- Update to 16.4.0 - Update to 16.4.0