15
0

Accepting request 1270571 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1270571
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ftputil?expand=0&rev=5
This commit is contained in:
2025-04-18 14:20:49 +00:00
committed by Git OBS Bridge
4 changed files with 25 additions and 12 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:374b01e174079e91babe2a462fbd6f6c00dbfbfa299dec04239ca4229fbf8762
size 141472

3
ftputil-5.1.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e9e62d3fd307ef9c52e43b33fd92759fc94c04d8b5178f85f641b183906d4353
size 86403

View File

@@ -1,3 +1,19 @@
Wed Apr 16 14:05:01 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- 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.
-------------------------------------------------------------------
Wed Apr 10 14:20:00 UTC 2024 - Christian Keil <keil@dfn-cert.de>

View File

@@ -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