!26 Update package
From: @Wangjunqi123 Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
c93adb1988
9
0001-add-setup.py.patch
Normal file
9
0001-add-setup.py.patch
Normal file
@ -0,0 +1,9 @@
|
||||
--- a/setup.py 1970-01-01 08:00:00.000000000 +0800
|
||||
+++ b/setup.py 2022-10-19 09:38:57.746598491 +0800
|
||||
@@ -0,0 +1,6 @@
|
||||
+#!/usr/bin/env python
|
||||
+
|
||||
+from setuptools import setup
|
||||
+
|
||||
+if __name__ == "__main__":
|
||||
+ setup()
|
||||
@ -1,19 +1,23 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-zipp
|
||||
Version: 3.7.0
|
||||
Version: 3.10.0
|
||||
Release: 1
|
||||
Summary: Backport of pathlib-compatible object wrapper for zip files
|
||||
License: MIT
|
||||
URL: https://github.com/jaraco/zipp
|
||||
Source0: https://files.pythonhosted.org/packages/source/z/zipp/zipp-%{version}.tar.gz
|
||||
Source0: https://files.pythonhosted.org/packages/8d/d7/1bd1e0a5bc95a27a6f5c4ee8066ddfc5b69a9ec8d39ab11a41a804ec8f0d/zipp-3.10.0.tar.gz
|
||||
Patch0: 0001-add-setup.py.patch
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: python3-toml
|
||||
Requires: python3-setuptools_scm
|
||||
|
||||
%description
|
||||
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
|
||||
|
||||
%package -n python3-zipp
|
||||
Summary: Backport of pathlib-compatible object wrapper for zip files
|
||||
Provides: python-zipp
|
||||
# Base build requires
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pbr
|
||||
@ -21,21 +25,27 @@ BuildRequires: python3-pip
|
||||
BuildRequires: python3-wheel
|
||||
BuildRequires: python3-setuptools_scm
|
||||
BuildRequires: python3-toml
|
||||
BuildRequires: boost-iostreams
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-more-itertools
|
||||
BuildRequires: python3-jaraco-functools
|
||||
BuildRequires: shadow
|
||||
|
||||
Requires: python3-toml
|
||||
Requires: python3-setuptools_scm
|
||||
%description -n python3-zipp
|
||||
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
|
||||
|
||||
%package_help
|
||||
%package help
|
||||
Summary: Development documents and examples for zipp
|
||||
Provides: python3-zipp-doc
|
||||
|
||||
%description help
|
||||
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
|
||||
|
||||
%prep
|
||||
%autosetup -n zipp-%{version}
|
||||
%patch0
|
||||
# Skip tests that depend on jaraco.itertools
|
||||
sed -i "/import jaraco.itertools/d" test_zipp.py
|
||||
sed -i "/func_timeout/d" test_zipp.py
|
||||
sed -i "/import jaraco.itertools/d" tests/test_zipp.py
|
||||
sed -i "/func_timeout/d" tests/test_zipp.py
|
||||
|
||||
%build
|
||||
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
|
||||
@ -50,13 +60,16 @@ pytest -k "not test_joinpath_constant_time"
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%_prefix/lib/python%{python3_version}/site-packages/zipp*
|
||||
%_prefix/lib/python%{python3_version}/site-packages/__pycache__/zipp.*
|
||||
%_prefix/lib/python%{python3_version}/site-packages/a/*
|
||||
|
||||
%files help
|
||||
%defattr(-,root,root)
|
||||
%doc README.rst
|
||||
|
||||
%changelog
|
||||
* Tue Nov 01 2022 wangjunqi <wangjunqi@kylinos.cn> - 3.10.0-1
|
||||
- Update package to version 3.10.0
|
||||
|
||||
* Thu Jul 28 2022 liksh <liks11@chinaunicom.cn> - 3.7.0-1
|
||||
- Upgrade for openstack yoga
|
||||
|
||||
@ -74,3 +87,4 @@ pytest -k "not test_joinpath_constant_time"
|
||||
|
||||
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.5.1-1
|
||||
- Package init
|
||||
|
||||
|
||||
BIN
zipp-3.10.0.tar.gz
Normal file
BIN
zipp-3.10.0.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user