From a7bff363f5315b0b585dc8a2d1ed9e8ec6182668d7c30b7ba4f1d4a57852257c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 17 Apr 2025 14:02:13 +0000 Subject: [PATCH] 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 --- ftputil-3.4.tar.gz | 3 --- ftputil-5.1.0.tar.gz | 3 +++ python-ftputil.changes | 16 ++++++++++++++++ python-ftputil.spec | 15 ++++++--------- 4 files changed, 25 insertions(+), 12 deletions(-) delete mode 100644 ftputil-3.4.tar.gz create mode 100644 ftputil-5.1.0.tar.gz diff --git a/ftputil-3.4.tar.gz b/ftputil-3.4.tar.gz deleted file mode 100644 index 2d7234b..0000000 --- a/ftputil-3.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:374b01e174079e91babe2a462fbd6f6c00dbfbfa299dec04239ca4229fbf8762 -size 141472 diff --git a/ftputil-5.1.0.tar.gz b/ftputil-5.1.0.tar.gz new file mode 100644 index 0000000..57e449d --- /dev/null +++ b/ftputil-5.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9e62d3fd307ef9c52e43b33fd92759fc94c04d8b5178f85f641b183906d4353 +size 86403 diff --git a/python-ftputil.changes b/python-ftputil.changes index 5a51b5d..7d59a33 100644 --- a/python-ftputil.changes +++ b/python-ftputil.changes @@ -1,3 +1,19 @@ +Wed Apr 16 14:05:01 UTC 2025 - Felix Stegmeier + +- 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 diff --git a/python-ftputil.spec b/python-ftputil.spec index 5cd4148..3507247 100644 --- a/python-ftputil.spec +++ b/python-ftputil.spec @@ -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