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:
2025-04-17 14:02:13 +00:00
committed by Git OBS Bridge
parent 6167b58a3e
commit b350bc1840
4 changed files with 25 additions and 12 deletions

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>