forked from pool/python-ftputil
Accepting request 1270046 from home:fstegmeier:branches:devel:languages:python
- Update to 5.1.0
* When the path encoding is specified as UTF-8, send `OPTS UTF8 ON` if
the server supports it
* ftputil uses `ftplib.FTP` as default session factory, but explicitly
sets the path encoding to latin-1 (regardless of the Python
version). This is the same behavior as in ftputil 4.0.0 or earlier
if running under Python 3.8 or earlier.
* If client code uses a custom session factory (i. e. the
`session_factory` argument of the `FTPHost` constructor), ftputil
will take the path encoding to use for `bytes` paths from the
`encoding` attribute of an FTP session from this factory. If there's
no such attribute, an exception is raised.
OBS-URL: https://build.opensuse.org/request/show/1270046
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ftputil?expand=0&rev=11
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-ftputil
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,15 +16,14 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15allpythons}
|
||||
Name: python-ftputil
|
||||
Version: 3.4
|
||||
Version: 5.1.0
|
||||
Release: 0
|
||||
Summary: High-level FTP client library (virtual file system and more) for Python
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: http://ftputil.sschwarzer.net/
|
||||
URL: http://ftputil.sschwarzer.net/
|
||||
Source: https://files.pythonhosted.org/packages/source/f/ftputil/ftputil-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
@@ -54,13 +53,11 @@ servers in different timezones.
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
mkdir -p %{buildroot}%{_docdir}
|
||||
%python_expand cp -r %{buildroot}%{_prefix}/doc/ftputil %{buildroot}%{_docdir}/%{$python_prefix}-ftputil
|
||||
rm -rf %{buildroot}%{_prefix}/doc/ftputil
|
||||
|
||||
%files %{python_files}
|
||||
%{_docdir}/%{python_prefix}-ftputil
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%doc README.md
|
||||
%{python_sitelib}/ftputil
|
||||
%{python_sitelib}/ftputil-%{version}*.egg-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user