15
0
forked from pool/python-aioftp
Files
python-aioftp/python-aioftp.spec
Dirk Mueller 70588401c9 Accepting request 997724 from home:bnavigator:branches:devel:languages:python
- Update to 0.21.3
  * server/LIST: prevent broken links are listed, but can't be used
    with stat
  * server: make User.get_permissions async
- Release 0.21.2
  + tests: remove exception representation check
- Release 0.21.1
  * tests: replace more specific ConnectionRefusedError with
    OSError for compatibility with FreeBSD (#152)
- Release 0.21.0
  * server: support PASV response with custom address (#150)
- Release 0.20.1
  * server: fix real directory resolve for windows (#147)
- Release 0.20.0
  * add client argument to set priority of custom list parser
    (parse_list_line_custom_first) (#145)
  * do not ignore failed parsing of list response (#144)
- Enforce legacy pytest-asyncio mode
  * gh#aio-libs/aioftp#155
  * works around gh#pytest-dev/pytest-asyncio#390

OBS-URL: https://build.opensuse.org/request/show/997724
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aioftp?expand=0&rev=12
2022-08-19 06:50:00 +00:00

65 lines
1.9 KiB
RPMSpec

#
# spec file for package python-aioftp
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-aioftp
Version: 0.21.3
Release: 0
Summary: FTP client/server for asyncio
License: Apache-2.0
URL: https://github.com/aio-libs/aioftp
Source: https://files.pythonhosted.org/packages/source/a/aioftp/aioftp-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-siosocks >= 0.2.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module async_timeout}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module siosocks >= 0.2.0}
BuildRequires: %{python_module trustme}
# /SECTION
%python_subpackages
%description
aioftp is a python FTP client/server based on asyncio.
%prep
%setup -q -n aioftp-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest --asyncio-mode=legacy
%files %{python_files}
%doc README.rst
%license license.txt
%{python_sitelib}/aioftp-%{version}*-info
%{python_sitelib}/aioftp
%changelog