!8 Upgrade version to 1.8.1
From: @cherry530 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
4d1fcf8719
@ -1,14 +1,15 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-xmod
|
Name: python-xmod
|
||||||
Version: 1.4.0
|
Version: 1.8.1
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Create and recursively fill a temporary directory
|
Summary: Create and recursively fill a temporary directory
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/rec/xmod
|
URL: https://github.com/rec/xmod
|
||||||
Source0: https://files.pythonhosted.org/packages/96/ef/ddfc9926e0e5a6e2b8a0bb08ac0e9f976ce53712f0d59fa673e7031dd00f/xmod-1.4.0.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/x/xmod/xmod-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Patch0: remove-requires-dek.patch
|
BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel
|
||||||
|
BuildRequires: python3-poetry-core
|
||||||
|
|
||||||
%description
|
%description
|
||||||
``xmod`` is a tiny library that extends a module to do things that normally
|
``xmod`` is a tiny library that extends a module to do things that normally
|
||||||
@ -31,46 +32,30 @@ Provides: python3-xmod-doc
|
|||||||
only a class could do - handy for modules that "just do one thing".
|
only a class could do - handy for modules that "just do one thing".
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n xmod-1.4.0 -p1
|
%autosetup -n xmod-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d docs ]; then cp -arf docs %{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 example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d examples ]; then cp -arf examples %{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 .
|
|
||||||
|
|
||||||
%files -n python3-xmod -f filelist.lst
|
%files -n python3-xmod
|
||||||
%dir %{python3_sitelib}/*
|
%{python3_sitelib}/xmod*
|
||||||
|
|
||||||
%files help -f doclist.lst
|
|
||||||
|
%files help
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 05 2024 xu_ping <707078654@qq.com> - 1.8.1-1
|
||||||
|
- Update to 1.8.1
|
||||||
|
|
||||||
* Tue Apr 25 2023 xu_ping <707078654@qq.com> - 1.4.0-1
|
* Tue Apr 25 2023 xu_ping <707078654@qq.com> - 1.4.0-1
|
||||||
- Update to 1.4.0
|
- Update to 1.4.0
|
||||||
|
|
||||||
|
|||||||
@ -1,45 +0,0 @@
|
|||||||
diff --git a/PKG-INFO b/PKG-INFO
|
|
||||||
index 41701ca..7b1beef 100644
|
|
||||||
--- a/PKG-INFO
|
|
||||||
+++ b/PKG-INFO
|
|
||||||
@@ -13,7 +13,6 @@ Classifier: Programming Language :: Python :: 3.8
|
|
||||||
Classifier: Programming Language :: Python :: 3.9
|
|
||||||
Classifier: Programming Language :: Python :: 3.10
|
|
||||||
Classifier: Programming Language :: Python :: 3.11
|
|
||||||
-Requires-Dist: dek (>=1.0.2,<2.0.0)
|
|
||||||
Description-Content-Type: text/markdown
|
|
||||||
|
|
||||||
Callable modules! Indexable modules!?
|
|
||||||
diff --git a/pyproject.toml b/pyproject.toml
|
|
||||||
index 48bc54b..6c6fccd 100644
|
|
||||||
--- a/pyproject.toml
|
|
||||||
+++ b/pyproject.toml
|
|
||||||
@@ -16,7 +16,6 @@ readme = "README.md"
|
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
|
||||||
python = "^3.7"
|
|
||||||
-dek = "^1.0.2"
|
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
|
||||||
coverage = "^7.1.0"
|
|
||||||
diff --git a/setup.py b/setup.py
|
|
||||||
index 697456f..940c4be 100644
|
|
||||||
--- a/setup.py
|
|
||||||
+++ b/setup.py
|
|
||||||
@@ -3,8 +3,6 @@ from setuptools import setup
|
|
||||||
|
|
||||||
modules = \
|
|
||||||
['xmod']
|
|
||||||
-install_requires = \
|
|
||||||
-['dek>=1.0.2,<2.0.0']
|
|
||||||
|
|
||||||
setup_kwargs = {
|
|
||||||
'name': 'xmod',
|
|
||||||
@@ -17,7 +15,6 @@ setup_kwargs = {
|
|
||||||
'maintainer_email': 'None',
|
|
||||||
'url': 'None',
|
|
||||||
'py_modules': modules,
|
|
||||||
- 'install_requires': install_requires,
|
|
||||||
'python_requires': '>=3.7,<4.0',
|
|
||||||
}
|
|
||||||
|
|
||||||
Binary file not shown.
BIN
xmod-1.8.1.tar.gz
Normal file
BIN
xmod-1.8.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user