Commit Graph

20 Commits

Author SHA256 Message Date
c222913e49 - drop scandir dependency (only for < 3.5)
of `fs.move` functions, which was causing optimized implementation of
* Made TarFS directory loading lazy

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=36
2024-06-30 20:36:34 +00:00
ab195fa392 - Switch to autosetup and pyproject macros
- Add patch support-python-312.patch, don't call a removed assertion
  function
- Skip some recalcitrant tests
- Clean up some old Python 3 version requirements

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=34
2023-09-19 06:10:49 +00:00
4243e5a3a9 Accepting request 1081418 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081418
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=32
2023-04-21 14:35:16 +00:00
2d4e7efa07 - update to 2.4.16:
* Make `fs.zipfs._ZipExtFile` use the seeking mechanism implemented
    in the Python standard library in Python version 3.7 and later
  * Mark `fs.zipfs.ReadZipFS` as a case-sensitive filesystem
  * Optimized moving files between filesystems with syspaths.
  * Fixed `fs.move.move_file` to clean up the copy on the destination in case of errors.
  * `fs.opener.manage_fs` with `writeable=True` will now raise a `ResourceReadOnly`
    exception if the managed filesystem is not writeable.
  * Marked filesystems wrapped with `fs.wrap.WrapReadOnly` as read-only.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=30
2022-05-29 20:14:19 +00:00
9962c61b88 - update to 2.4.15:
- Support more lenient usernames and group names in FTP servers
  - Fixed `MemoryFS.move` and `MemoryFS.movedir` not updating the name of moved
    resources, causing `MemoryFS.scandir` to use the old name.
  - Make `WrapFS.move` and `WrapFS.movedir` use the delegate FS methods instead
    of `fs.move` functions, which was causing optimized implementation of 
   `movedir` to be always skipped.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=28
2022-03-26 22:23:17 +00:00
c0c53ffe7c - update to 2.4.14:
* Added `fs.copy.copy_file_if`, `fs.copy.copy_dir_if`, and `fs.copy.copy_fs_if`.
  * Added `fs.base.FS.getmodified`.
  * FTP servers that do not support the MLST command now try to use the MDTM
    command to retrieve the last modification timestamp of a resource.
  * Fixed performance bugs in `fs.copy.copy_dir_if_newer`. Test cases were
    adapted to catch those bugs in the future.
  * Fixed precision bug for timestamps in `fs.OSFS.setinfo`.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=27
2022-01-15 15:57:50 +00:00
9e5eda1207 Accepting request 886001 from home:bnavigator:branches:devel:languages:python
- Update to 2.4.13
  * Added FTP over TLS (FTPS) support to FTPFS.
    Closes #437, #449.
  * PathError now supports wrapping an exception using the exc
   argument.
    Closes #453.
  * Better documentation of the writable parameter of fs.open_fs,
    and hint about using fs.wrap.read_only when a read-only
    filesystem is required. Closes #441.
  Changed
  * Make FS.upload explicit about the expected error when the
    parent directory of the destination does not exist.
    Closes #445.
  * Migrate continuous integration from Travis-CI to GitHub
    Actions and introduce several linters again in the build steps
    (#448). Closes #446.
  * Stop requiring pytest to run tests, allowing any test runner
    supporting unittest-style test suites.
  * FSTestCases now builds the large data required for upload and
     download tests only once in order to reduce the total testing
     time.
  * MemoryFS.move and MemoryFS.movedir will now avoid copying data.
    Closes #452.
  * FS.removetree("/") behaviour has been standardized in all
    filesystems, and is expected to clear the contents of the root
    folder without deleting it. Closes #471.
  * FS.getbasic is now deprecated, as it is redundant with
    FS.getinfo, and FS.getinfo is now explicitly expected to
    return the basic info namespace unconditionally. Closes #469.
  Fixed
  * Make FTPFile, MemoryFile and RawWrapper accept array.array
    arguments for the write and writelines methods, as expected by
    their base class io.RawIOBase.
  * Various documentation issues, including MemoryFS docstring not
    rendering properly.
  * Avoid creating a new connection on every call of FTPFS.upload.
    Closes #455.
  * WrapReadOnly.removetree not raising a ResourceReadOnly when
    called. Closes #468.
  * WrapCachedDir.isdir and WrapCachedDir.isfile raising a
    ResourceNotFound error on non-existing path (#470).
  * FTPFS not listing certain entries with sticky/SUID/SGID
    permissions set by Linux server (#473). Closes #451.
  * scandir iterator not being closed explicitly in OSFS.scandir,
    occasionally causing a ResourceWarning
    to be thrown. Closes #311.
  * Incomplete type annotations for the temp_fs parameter of
    WriteTarFS and WriteZipFS. Closes #410.
- Release 2.4.12
  Added
  *  Missing mode attribute to _MemoryFile objects returned by
    MemoryFS.    openbin.
  *  Missing readinto method for MemoryFS and FTPFS file objects.
    Closes #380.
  * Added compatibility if a Windows FTP server returns file
    information to the LIST command with 24-hour times. Closes
    #438.
  Changed
  * Start testing on PyPy. Due to #342
    we have to treat PyPy builds specially and allow them to fail,
    but at least we'll be able to see if we break something aside
    from known issues with FTP tests.
  * Include docs in source distributions as well as the whole
    tests folder, ensuring conftest.py is present, fixes #364.
  * Stop patching copy with Python 3.8+ because it already
    uses sendfile.
  Fixed
  * Fixed crash when CPython's -OO flag is used
  * Fixed error when parsing timestamps from a FTP directory
    served from a WindowsNT FTP Server, fixes #395.
  * Fixed documentation of Mode.to_platform_bin. Closes #382.
  * Fixed the code example in the "Testing Filesystems" section of
    the  "Implementing Filesystems" guide. Closes #407.
  * Fixed FTPFS.openbin not implicitly opening files in binary
    mode like expected from openbin. Closes #406.
- conftest.py was removed by upstream

OBS-URL: https://build.opensuse.org/request/show/886001
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=25
2021-04-16 14:16:40 +00:00
Tomáš Chvátal
0413a013ae - Fix build wihtout python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=23
2020-04-20 12:01:49 +00:00
Tomáš Chvátal
979f7160da OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=21 2019-09-12 17:42:11 +00:00
Tomáš Chvátal
d77cc5a8bb - Update to 2.4.11:
* Restored fs.path import
  * Fixed potential race condition in makedirs. Fixes #310
  * Added missing methods to WrapFS. Fixed #294
  * MemFS now immediately releases all memory it holds when close() is called, rather than when it gets garbage collected. Closes issue #308.
  * FTPFS now translates EOFError into RemoteConnectionError. Closes #292
  * Added automatic close for filesystems that go out of scope. Fixes #298
  * Fixed broken WrapFS.movedir #322
  * Added geturl for TarFS and ZipFS for 'fs' purpose. NoURL for 'download' purpose.
  * Added helpful root path in CreateFailed exception #340
- remove patch more-relaxed-requirements.patch replaced by sed

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=20
2019-09-12 12:32:30 +00:00
Tomáš Chvátal
f9b4390353 Accepting request 718906 from home:pgajdos
the last one this week

OBS-URL: https://build.opensuse.org/request/show/718906
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=18
2019-07-26 14:22:16 +00:00
Tomáš Chvátal
6c474ebde8 Accepting request 703517 from home:anandrit:branches:devel:languages:python
Update to 2.4.5
Fixes:
* Restored deprecated setfile method with deprecation warning
  to change to writefile
* Fixed exception when a tarfile contains a path called '.'
* Made TarFS directory loading lazy

OBS-URL: https://build.opensuse.org/request/show/703517
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=16
2019-05-16 18:20:49 +00:00
Tomáš Chvátal
42c9e126b3 Accepting request 681587 from home:jayvdb:noflake8
- Remove unnecessary bcond_without test
- Simplifed build dependencies on scandir and typing
- Fix compatibility Requires for older Python which were using incorrect
  comparisons with python_version_nodots, and incorrectly used Recommends
- Update to v2.4.4
  * OSFS fail in nfs mounts
- from 2.4.3
  * Fixed broken "case_insensitive" check
  * Fixed Windows test fails
- from 2.4.2
  * Fixed exception when Python runs with -OO
- from 2.4.1
  * Fixed hash method missing from WrapFS
- from 2.4.0
  * Added exclude and filter_dirs arguments to walk
  * Micro-optimizations to walk
- from 2.3.1
  * Add encoding check in OSFS.validatepath
- from 2.3.0
  * IllegalBackReference had mangled error message
  * Added FS.hash method

OBS-URL: https://build.opensuse.org/request/show/681587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=14
2019-03-05 09:58:52 +00:00
Todd R
fb7e81c49b Accepting request 669133 from home:TheBlackCat:branches:devel:languages:python
- Update to version 2.2.1
  + Fixed
    * `Registry.install` returns its argument.
- Update to version 2.2.0
    * A few methods have been renamed for greater clarity (but functionality remains the same).
      The old methods are now aliases and will continue to work, but will
      issue a deprecation warning via the `warnings` module.
      Please update your code accordingly.
      > `getbytes` -> `readbytes`
      > `getfile` -> `download`
      > `gettext` -> `readtext`
      > `setbytes` -> `writebytes`
      > `setbinfile` -> `upload`
      > `settext` -> `writetext`
  + Changed
    * Changed default chunk size in `copy_file_data` to 1MB
    * Added `chunk_size` and `options` to `FS.upload`
- Update to version 2.1.3
  + Fixed
    * Incomplete FTPFile.write when using `workers` @geoffjukes
    * Fixed AppFS not creating directory
  + Added
    * Added load_extern switch to opener, fixes #228 @althanos
- Update to version 2.1.2
  + Added
    * Support for Windows NT FTP servers @sspross
  + Fixed
    * Root dir of MemoryFS accesible as a file
    * Packaging issues @televi
    * Deprecation warning re collections.Mapping
- Update to version 2.1.1
  + Added
    * Added PEP 561 py.typed files
    * Use sendfile for faster copies @althonos
    * Atomic exclusive mode in Py2.7 @sqwishy
  + Fixed
    * Fixed lstat @kamomil
- Update to version 2.1.0
  + Added
    * fs.glob support
- Update to version 2.0.27
  + Fixed
    * Fixed for Winows paths #152
    * Fixed ftp dir parsing (@dhirschfeld)
- Update to version 2.0.26
  + Fixed
    * fs.copy and fs.move disable workers if not thread-safe
    * fs.match detects case insensitivity
    * Open in exclusive mode is atomic (@squishy)
    * Exceptions can be pickleabe (@Spacerat)
- Update to version 2.0.25
  + Added
    * workers parameter to fs.copy, fs.move, and fs.mirror for concurrent
      copies
- Update to version 2.0.24
  + Added
    * timeout to FTP opener
- Update to version 2.0.23
  * Fix for Markdown on PyPi, no code changes
- Update to version 2.0.22
  + Fixed
    * Handling of broken unicode on Python2.7
  + Added
    * Added fs.getospath
- Update to version 2.0.21
  + Added
    * Typing information
    * Added Info.suffix, Info.suffixes, Info.stem attributes
  + Fixed
    * Fixed issue with implied directories in TarFS
  + Changed
    * Changed path.splitext so that 'leading periods on the basename are
      ignored', which is the behaviour of os.path.splitext
- Update to version 2.0.20
  + Fixed
    * MultiFS.listdir now correctly filters out duplicates
- Update to version 2.0.19
  + Fixed
    * encoding issue with TarFS
    * CreateFailed now contains the original exception in `exc` attribute
- Update to version 2.0.18
  + Added
    * fs.getfile function
  + Changed
    * Modified walk to use iterators internally (for more efficient walking)
    * Modified fs.copy to use getfile
- Update to version 2.0.17
  + Fixed
    * Issue with ZipFS files missing a byte
- Update to version 2.0.16
  + Added
    * fs.parts
  + Fixed
    * Walk now yields Step named tuples as advertised
  + Added
    * Added max_depth parameter to fs.walk
- Update to version 2.0.15
  + Changed
    * ZipFS files are now seekable (Martin Larralde)
- Update to version 2.0.14
  * No changes, pushed wrong branch to PyPi.
- Update to version 2.0.13
  + Fixed
    * Fixed ignore_errors in walk.py
- Update to version 2.0.12
  + Fixed
    * settext, appendtext, appendbytes, setbytes now raise a TypeError if
      the type is wrong, rather than ValueError
    * More efficient feature detection for FTPFS
    * Fixes for `fs.filesize`
    * Major documentation refactor (Martin Larralde)
- Update to version 2.0.11
  + Added
    * fs.mirror
- Update to version 2.0.10
  + Added
    * Added params support to FS URLs
  + Fixed
    * Many fixes to FTPFS contributed by Martin Larralde.
- Update to version 2.0.9
  + Changed
    * MountFS and MultiFS now accept FS URLS
    * Add openers for AppFS
- Update to version 2.0.8
  + Added
    * Lstat info namespace
    * Link info namespace
    * FS.islink method
    * Info.is_link method
- Update to version 2.0.7
  + Fixes
    * Fixed entry point breaking pip
- Update to version 2.0.6
  + Fixes
    * Opener refinements
- Update to version 2.0.5
  + Fixed
    * Fixed potential for deadlock in MemoryFS
  + Added
    * Added factory parameter to opendir.
    * ClosingSubFS.
    * File objects are all derived from io.IOBase.
  + Fixed
    * Fix closing for FTP opener.
- License change to MIT
- Rebase and update more-relaxed-requirements.patch
- Remove no longer needed python-fs-fix-ftp-test.patch

OBS-URL: https://build.opensuse.org/request/show/669133
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=12
2019-01-28 16:44:45 +00:00
7d6dc5cf28 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=10
2018-12-04 13:28:42 +00:00
831fc41170 Accepting request 546304 from home:bmwiedemann:branches:devel:languages:python
Add python-fs-fix-ftp-test.patch to make ftp tests pass in 2018

OBS-URL: https://build.opensuse.org/request/show/546304
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=8
2017-11-28 23:46:58 +00:00
Todd R
1904e55792 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=6 2017-08-18 21:47:25 +00:00
Todd R
99b834ed2c Accepting request 514108 from home:sebix:branches:devel:languages:python
- add more-relaxed-requirements.patch to weaken the very harsh version requirements

OBS-URL: https://build.opensuse.org/request/show/514108
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=4
2017-08-03 20:35:44 +00:00
Jan Matejek
a0db158365 Accepting request 511490 from home:sebix:branches:devel:languages:python
singlespec

OBS-URL: https://build.opensuse.org/request/show/511490
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=3
2017-07-25 16:10:05 +00:00
f7748e75d7 Accepting request 394662 from home:frispete:python
preparation for the new python-wheel: dependency of python-keyrings.alt

OBS-URL: https://build.opensuse.org/request/show/394662
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=1
2016-05-12 08:34:57 +00:00