cloud-files 5.8.0__tar.gz → 5.8.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. {cloud_files-5.8.0 → cloud_files-5.8.1}/ChangeLog +5 -0
  2. {cloud_files-5.8.0 → cloud_files-5.8.1}/PKG-INFO +14 -2
  3. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloud_files.egg-info/PKG-INFO +14 -2
  4. cloud_files-5.8.1/cloud_files.egg-info/pbr.json +1 -0
  5. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/interfaces.py +12 -22
  6. cloud_files-5.8.0/cloud_files.egg-info/pbr.json +0 -1
  7. {cloud_files-5.8.0 → cloud_files-5.8.1}/.github/workflows/test-suite.yml +0 -0
  8. {cloud_files-5.8.0 → cloud_files-5.8.1}/AUTHORS +0 -0
  9. {cloud_files-5.8.0 → cloud_files-5.8.1}/LICENSE +0 -0
  10. {cloud_files-5.8.0 → cloud_files-5.8.1}/MANIFEST.in +0 -0
  11. {cloud_files-5.8.0 → cloud_files-5.8.1}/README.md +0 -0
  12. {cloud_files-5.8.0 → cloud_files-5.8.1}/automated_test.py +0 -0
  13. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloud_files.egg-info/SOURCES.txt +0 -0
  14. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloud_files.egg-info/dependency_links.txt +0 -0
  15. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloud_files.egg-info/entry_points.txt +0 -0
  16. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloud_files.egg-info/not-zip-safe +0 -0
  17. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloud_files.egg-info/requires.txt +0 -0
  18. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloud_files.egg-info/top_level.txt +0 -0
  19. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/__init__.py +0 -0
  20. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/cloudfiles.py +0 -0
  21. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/compression.py +0 -0
  22. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/connectionpools.py +0 -0
  23. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/exceptions.py +0 -0
  24. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/gcs.py +0 -0
  25. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/lib.py +0 -0
  26. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/monitoring.py +0 -0
  27. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/paths.py +0 -0
  28. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/resumable_tools.py +0 -0
  29. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/scheduler.py +0 -0
  30. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/secrets.py +0 -0
  31. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/test.py +0 -0
  32. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/threaded_queue.py +0 -0
  33. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles/typing.py +0 -0
  34. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles_cli/LICENSE +0 -0
  35. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles_cli/__init__.py +0 -0
  36. {cloud_files-5.8.0 → cloud_files-5.8.1}/cloudfiles_cli/cloudfiles_cli.py +0 -0
  37. {cloud_files-5.8.0 → cloud_files-5.8.1}/requirements.txt +0 -0
  38. {cloud_files-5.8.0 → cloud_files-5.8.1}/setup.cfg +0 -0
  39. {cloud_files-5.8.0 → cloud_files-5.8.1}/setup.py +0 -0
@@ -1,6 +1,11 @@
1
1
  CHANGES
2
2
  =======
3
3
 
4
+ 5.8.1
5
+ -----
6
+
7
+ * fix(gcs ls): additional page prefixes were not populating (#119)
8
+
4
9
  5.8.0
5
10
  -----
6
11
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: cloud-files
3
- Version: 5.8.0
3
+ Version: 5.8.1
4
4
  Summary: Fast access to cloud storage and local FS.
5
5
  Home-page: https://github.com/seung-lab/cloud-files/
6
6
  Author: William Silversmith
@@ -54,6 +54,18 @@ Requires-Dist: intervaltree; extra == "monitoring"
54
54
  Requires-Dist: matplotlib; extra == "monitoring"
55
55
  Provides-Extra: apache
56
56
  Requires-Dist: lxml; extra == "apache"
57
+ Dynamic: author
58
+ Dynamic: author-email
59
+ Dynamic: classifier
60
+ Dynamic: description
61
+ Dynamic: description-content-type
62
+ Dynamic: home-page
63
+ Dynamic: license
64
+ Dynamic: license-file
65
+ Dynamic: provides-extra
66
+ Dynamic: requires-dist
67
+ Dynamic: requires-python
68
+ Dynamic: summary
57
69
 
58
70
  [![PyPI version](https://badge.fury.io/py/cloud-files.svg)](https://badge.fury.io/py/cloud-files) [![Test Suite](https://github.com/seung-lab/cloud-files/workflows/Test%20Suite/badge.svg)](https://github.com/seung-lab/cloud-files/actions?query=workflow%3A%22Test+Suite%22)
59
71
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: cloud-files
3
- Version: 5.8.0
3
+ Version: 5.8.1
4
4
  Summary: Fast access to cloud storage and local FS.
5
5
  Home-page: https://github.com/seung-lab/cloud-files/
6
6
  Author: William Silversmith
@@ -54,6 +54,18 @@ Requires-Dist: intervaltree; extra == "monitoring"
54
54
  Requires-Dist: matplotlib; extra == "monitoring"
55
55
  Provides-Extra: apache
56
56
  Requires-Dist: lxml; extra == "apache"
57
+ Dynamic: author
58
+ Dynamic: author-email
59
+ Dynamic: classifier
60
+ Dynamic: description
61
+ Dynamic: description-content-type
62
+ Dynamic: home-page
63
+ Dynamic: license
64
+ Dynamic: license-file
65
+ Dynamic: provides-extra
66
+ Dynamic: requires-dist
67
+ Dynamic: requires-python
68
+ Dynamic: summary
57
69
 
58
70
  [![PyPI version](https://badge.fury.io/py/cloud-files.svg)](https://badge.fury.io/py/cloud-files) [![Test Suite](https://github.com/seung-lab/cloud-files/workflows/Test%20Suite/badge.svg)](https://github.com/seung-lab/cloud-files/actions?query=workflow%3A%22Test+Suite%22)
59
71
 
@@ -0,0 +1 @@
1
+ {"git_version": "add0684", "is_release": true}
@@ -798,6 +798,7 @@ class GoogleCloudStorageInterface(StorageInterface):
798
798
  except google.cloud.exceptions.NotFound:
799
799
  pass
800
800
 
801
+
801
802
  @retry
802
803
  def list_files(self, prefix, flat=False):
803
804
  """
@@ -817,33 +818,22 @@ class GoogleCloudStorageInterface(StorageInterface):
817
818
  delimiter=delimiter,
818
819
  )
819
820
 
820
- first = True
821
- for blob in blobs:
822
- # This awkward construction is necessary
823
- # because the request that populates prefixes
824
- # isn't made until the iterator is activated.
825
- if first and blobs.prefixes:
821
+ for page in blobs.pages:
822
+ if page.prefixes:
826
823
  yield from (
827
824
  item.removeprefix(path)
828
- for item in blobs.prefixes
825
+ for item in page.prefixes
829
826
  )
830
- first = False
831
827
 
832
- filename = blob.name.removeprefix(layer_path)
833
- if not filename:
834
- continue
835
- elif not flat and filename[-1] != '/':
836
- yield filename
837
- elif flat and '/' not in blob.name.removeprefix(path):
838
- yield filename
828
+ for blob in page:
829
+ filename = blob.name.removeprefix(layer_path)
830
+ if not filename:
831
+ continue
832
+ elif not flat and filename[-1] != '/':
833
+ yield filename
834
+ elif flat and '/' not in blob.name.removeprefix(path):
835
+ yield filename
839
836
 
840
- # When there are no regular items at this level
841
- # we need to still print the directories.
842
- if first and blobs.prefixes:
843
- yield from (
844
- item.removeprefix(path)
845
- for item in blobs.prefixes
846
- )
847
837
 
848
838
  def release_connection(self):
849
839
  global GC_POOL
@@ -1 +0,0 @@
1
- {"git_version": "9e3fa7f", "is_release": true}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes