forked from pool/python-pyftpdlib
Accepting request 605511 from home:TheBlackCat:branches:devel:languages:python
- Version update to 1.5.4 + Enhancements * #463: FTPServer class can now be used as a context manager. + Bug fixes * #431: Ctrl-C doesn't exit `python -m pyftpdlib` on Windows. * #436: ThreadedFTPServer.max_cons is evaluated threading.activeCount(). If the user uses threads of its own it will consume the number of max_cons. * #447: ThreadedFTPServer and MultiprocessFTPServer do not join() tasks which are no longer consuming resources. - Disable tests since they randomly fail. See https://github.com/giampaolo/pyftpdlib/issues/386 OBS-URL: https://build.opensuse.org/request/show/605511 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyftpdlib?expand=0&rev=9
This commit is contained in:
@@ -18,8 +18,10 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# Tests randomly fail: https://github.com/giampaolo/pyftpdlib/issues/386
|
||||
%bcond_with test
|
||||
Name: python-pyftpdlib
|
||||
Version: 1.5.3
|
||||
Version: 1.5.4
|
||||
Release: 0
|
||||
Summary: Asynchronous FTP server library for Python
|
||||
License: MIT
|
||||
@@ -27,13 +29,20 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/giampaolo/pyftpdlib/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pyftpdlib/pyftpdlib-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module pyOpenSSL}
|
||||
BuildRequires: %{python_module psutil}
|
||||
BuildRequires: %{python_module pysendfile}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python-ipaddress
|
||||
BuildRequires: python-mock
|
||||
Requires: python-pyOpenSSL
|
||||
Recommends: python-pysendfile
|
||||
%ifpython2
|
||||
Requires: python-ipaddress
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -51,9 +60,11 @@ write very asynchronous FTP servers with Python.
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
export PYTHONPATH=$PWD
|
||||
%python_exec pyftpdlib/test/runner.py
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
Reference in New Issue
Block a user