rms-filecache 2.0.1__tar.gz → 2.0.3__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 (48) hide show
  1. {rms_filecache-2.0.1/rms_filecache.egg-info → rms_filecache-2.0.3}/PKG-INFO +2 -1
  2. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/filecache/_version.py +2 -2
  3. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/filecache/file_cache.py +3 -3
  4. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/pyproject.toml +2 -1
  5. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/requirements.txt +1 -0
  6. {rms_filecache-2.0.1 → rms_filecache-2.0.3/rms_filecache.egg-info}/PKG-INFO +2 -1
  7. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/rms_filecache.egg-info/requires.txt +1 -0
  8. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.coveragerc +0 -0
  9. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.flake8 +0 -0
  10. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.github/pull_request_template.md +0 -0
  11. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.github/workflows/publish_to_pypi.yml +0 -0
  12. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.github/workflows/publish_to_test_pypi.yml +0 -0
  13. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.github/workflows/run-tests.yml +0 -0
  14. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.gitignore +0 -0
  15. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.readthedocs.yaml +0 -0
  16. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/LICENSE +0 -0
  17. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/README.md +0 -0
  18. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/docs/Makefile +0 -0
  19. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/docs/conf.py +0 -0
  20. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/docs/index.rst +0 -0
  21. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/docs/make.bat +0 -0
  22. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/docs/module.rst +0 -0
  23. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/filecache/__init__.py +0 -0
  24. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/filecache/file_cache_path.py +0 -0
  25. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/filecache/file_cache_source.py +0 -0
  26. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/filecache/file_cache_types.py +0 -0
  27. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/filecache/my_glob.py +0 -0
  28. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/mypy.ini +0 -0
  29. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/rms_filecache.egg-info/SOURCES.txt +0 -0
  30. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/rms_filecache.egg-info/dependency_links.txt +0 -0
  31. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/rms_filecache.egg-info/top_level.txt +0 -0
  32. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/setup.cfg +0 -0
  33. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/test_files/expected/lorem1.txt +0 -0
  34. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/test_files/expected/subdir1/lorem1.txt +0 -0
  35. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/test_files/expected/subdir1/subdir2a/binary1.bin +0 -0
  36. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/test_files/expected/subdir1/subdir2b/binary1.bin +0 -0
  37. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/test_programs/locking.py +0 -0
  38. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/test_programs/multi_download.py +0 -0
  39. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/__init__.py +0 -0
  40. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/gs_lifecycle_config.json +0 -0
  41. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/gs_lifecycle_config_info.txt +0 -0
  42. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/s3_bucket_policy_read.txt +0 -0
  43. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/s3_bucket_policy_write.txt +0 -0
  44. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/s3_lifecycle_policy.txt +0 -0
  45. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/test_file_cache.py +0 -0
  46. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/test_file_cache_path.py +0 -0
  47. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/test_file_cache_source.py +0 -0
  48. {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/test_url_to_path.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rms-filecache
3
- Version: 2.0.1
3
+ Version: 2.0.3
4
4
  Summary: File cache for files retrieved from the cloud
5
5
  Maintainer-email: "Robert S. French" <rfrench@seti.org>
6
6
  License: Apache-2.0
@@ -29,6 +29,7 @@ Requires-Dist: boto3
29
29
  Requires-Dist: filelock
30
30
  Requires-Dist: google-cloud-storage
31
31
  Requires-Dist: requests
32
+ Requires-Dist: typing_extensions
32
33
 
33
34
  [![GitHub release; latest by date](https://img.shields.io/github/v/release/SETI/rms-filecache)](https://github.com/SETI/rms-filecache/releases)
34
35
  [![GitHub Release Date](https://img.shields.io/github/release-date/SETI/rms-filecache)](https://github.com/SETI/rms-filecache/releases)
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '2.0.1'
16
- __version_tuple__ = version_tuple = (2, 0, 1)
15
+ __version__ = version = '2.0.3'
16
+ __version_tuple__ = version_tuple = (2, 0, 3)
@@ -1311,7 +1311,7 @@ class FileCache:
1311
1311
  self.upload(url, anonymous=anonymous, url_to_path=url_to_path)
1312
1312
 
1313
1313
  def new_path(self,
1314
- path: str,
1314
+ path: str | Path | FCPath,
1315
1315
  *,
1316
1316
  anonymous: Optional[bool] = None,
1317
1317
  lock_timeout: Optional[int] = None,
@@ -1358,10 +1358,10 @@ class FileCache:
1358
1358
  If None, use the default translators for this :class:`FileCache` instance.
1359
1359
  """
1360
1360
 
1361
- if isinstance(path, Path):
1361
+ if isinstance(path, (Path, FCPath)):
1362
1362
  path = str(path)
1363
1363
  if not isinstance(path, str):
1364
- raise TypeError('path is not a str or Path')
1364
+ raise TypeError('path is not a str or Path or FCPath')
1365
1365
  path = path.replace('\\', '/').rstrip('/')
1366
1366
  if anonymous is None:
1367
1367
  anonymous = self.anonymous
@@ -12,7 +12,8 @@ dependencies = [
12
12
  "boto3",
13
13
  "filelock",
14
14
  "google-cloud-storage",
15
- "requests"
15
+ "requests",
16
+ "typing_extensions"
16
17
  ]
17
18
  license = {text = "Apache-2.0"}
18
19
  maintainers = [
@@ -14,3 +14,4 @@ sphinx
14
14
  sphinxcontrib-napoleon
15
15
  sphinx-rtd-theme
16
16
  types-requests
17
+ typing_extensions
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rms-filecache
3
- Version: 2.0.1
3
+ Version: 2.0.3
4
4
  Summary: File cache for files retrieved from the cloud
5
5
  Maintainer-email: "Robert S. French" <rfrench@seti.org>
6
6
  License: Apache-2.0
@@ -29,6 +29,7 @@ Requires-Dist: boto3
29
29
  Requires-Dist: filelock
30
30
  Requires-Dist: google-cloud-storage
31
31
  Requires-Dist: requests
32
+ Requires-Dist: typing_extensions
32
33
 
33
34
  [![GitHub release; latest by date](https://img.shields.io/github/v/release/SETI/rms-filecache)](https://github.com/SETI/rms-filecache/releases)
34
35
  [![GitHub Release Date](https://img.shields.io/github/release-date/SETI/rms-filecache)](https://github.com/SETI/rms-filecache/releases)
@@ -2,3 +2,4 @@ boto3
2
2
  filelock
3
3
  google-cloud-storage
4
4
  requests
5
+ typing_extensions
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes