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.
- {rms_filecache-2.0.1/rms_filecache.egg-info → rms_filecache-2.0.3}/PKG-INFO +2 -1
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/filecache/_version.py +2 -2
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/filecache/file_cache.py +3 -3
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/pyproject.toml +2 -1
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/requirements.txt +1 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3/rms_filecache.egg-info}/PKG-INFO +2 -1
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/rms_filecache.egg-info/requires.txt +1 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.coveragerc +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.flake8 +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.github/pull_request_template.md +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.github/workflows/publish_to_pypi.yml +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.github/workflows/publish_to_test_pypi.yml +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.github/workflows/run-tests.yml +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.gitignore +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/.readthedocs.yaml +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/LICENSE +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/README.md +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/docs/Makefile +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/docs/conf.py +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/docs/index.rst +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/docs/make.bat +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/docs/module.rst +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/filecache/__init__.py +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/filecache/file_cache_path.py +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/filecache/file_cache_source.py +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/filecache/file_cache_types.py +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/filecache/my_glob.py +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/mypy.ini +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/rms_filecache.egg-info/SOURCES.txt +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/rms_filecache.egg-info/dependency_links.txt +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/rms_filecache.egg-info/top_level.txt +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/setup.cfg +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/test_files/expected/lorem1.txt +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/test_files/expected/subdir1/lorem1.txt +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/test_files/expected/subdir1/subdir2a/binary1.bin +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/test_files/expected/subdir1/subdir2b/binary1.bin +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/test_programs/locking.py +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/test_programs/multi_download.py +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/__init__.py +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/gs_lifecycle_config.json +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/gs_lifecycle_config_info.txt +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/s3_bucket_policy_read.txt +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/s3_bucket_policy_write.txt +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/s3_lifecycle_policy.txt +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/test_file_cache.py +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/test_file_cache_path.py +0 -0
- {rms_filecache-2.0.1 → rms_filecache-2.0.3}/tests/test_file_cache_source.py +0 -0
- {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.
|
|
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
|
[](https://github.com/SETI/rms-filecache/releases)
|
|
34
35
|
[](https://github.com/SETI/rms-filecache/releases)
|
|
@@ -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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rms-filecache
|
|
3
|
-
Version: 2.0.
|
|
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
|
[](https://github.com/SETI/rms-filecache/releases)
|
|
34
35
|
[](https://github.com/SETI/rms-filecache/releases)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rms_filecache-2.0.1 → rms_filecache-2.0.3}/test_files/expected/subdir1/subdir2a/binary1.bin
RENAMED
|
File without changes
|
{rms_filecache-2.0.1 → rms_filecache-2.0.3}/test_files/expected/subdir1/subdir2b/binary1.bin
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|