[packages/python-pyftpdlib] - updated to 1.5.7 - removed obsolete tests patch
qboosh
qboosh at pld-linux.org
Mon Jan 2 20:19:27 CET 2023
commit c470b8ce903085cd84ca5b40ba2cc3c83d0becf8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jan 2 20:20:28 2023 +0100
- updated to 1.5.7
- removed obsolete tests patch
python-pyftpdlib-tests.patch | 19 -------------------
python-pyftpdlib.spec | 16 +++++++---------
2 files changed, 7 insertions(+), 28 deletions(-)
---
diff --git a/python-pyftpdlib.spec b/python-pyftpdlib.spec
index 30f4a6d..7c52889 100644
--- a/python-pyftpdlib.spec
+++ b/python-pyftpdlib.spec
@@ -7,14 +7,13 @@
Summary: Very fast asynchronous FTP server library for Python 2
Summary(pl.UTF-8): Bardzo szybka biblioteka asynchronicznego serwera FTP dla Pythona 2
Name: python-pyftpdlib
-Version: 1.5.6
-Release: 4
+Version: 1.5.7
+Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.python.org/simple/pyftpdlib/
Source0: https://files.pythonhosted.org/packages/source/p/pyftpdlib/pyftpdlib-%{version}.tar.gz
-# Source0-md5: 459dd3e685c4b7dfcf574ca05e5586eb
-Patch0: %{name}-tests.patch
+# Source0-md5: 6d9539aea866d4f959d86ae001cdddf7
URL: https://github.com/giampaolo/pyftpdlib/
%if %{with python2}
BuildRequires: python-modules >= 1:2.6
@@ -74,7 +73,6 @@ języka programowania.
%prep
%setup -q -n pyftpdlib-%{version}
-%patch0 -p1
%build
%if %{with python2}
@@ -116,14 +114,14 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -a demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' \
- $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*.py
+%{__sed} -i -e '1s,/usr/bin/env python3,%{__python},' \
+ $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*.py
%endif
%if %{with python3}
install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-pyftpdlib-%{version}
cp -a demo/* $RPM_BUILD_ROOT%{_examplesdir}/python3-pyftpdlib-%{version}
-%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python3}\1,' \
- $RPM_BUILD_ROOT%{_examplesdir}/python3-pyftpdlib-%{version}/*.py
+%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' \
+ $RPM_BUILD_ROOT%{_examplesdir}/python3-pyftpdlib-%{version}/*.py
%endif
%clean
diff --git a/python-pyftpdlib-tests.patch b/python-pyftpdlib-tests.patch
deleted file mode 100644
index 2e143ff..0000000
--- a/python-pyftpdlib-tests.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-Disable tests kwown to fail
-
---- pyftpdlib-1.5.5/pyftpdlib/test/test_functional_ssl.py.orig 2016-05-02 15:28:11.000000000 +0200
-+++ pyftpdlib-1.5.5/pyftpdlib/test/test_functional_ssl.py 2017-03-25 07:43:25.956672523 +0100
-@@ -108,6 +108,14 @@
- def test_stou(self):
- pass
-
-+ @unittest.skipIf(1, "fails with SSL")
-+ def test_rest_on_stor(self):
-+ pass
-+
-+ @unittest.skipIf(1, "fails with SSL")
-+ def test_stor_ascii(self):
-+ pass
-+
-
- # class TestSendFileTLSMixin(TLSTestMixin, TestSendfile):
-
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pyftpdlib.git/commitdiff/c470b8ce903085cd84ca5b40ba2cc3c83d0becf8
More information about the pld-cvs-commit
mailing list