lsst-resources 29.2025.2900__tar.gz → 29.2025.3100__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.
- {lsst_resources-29.2025.2900/python/lsst_resources.egg-info → lsst_resources-29.2025.3100}/PKG-INFO +1 -1
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/_resourcePath.py +4 -2
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/tests.py +15 -0
- lsst_resources-29.2025.3100/python/lsst/resources/version.py +2 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100/python/lsst_resources.egg-info}/PKG-INFO +1 -1
- lsst_resources-29.2025.2900/python/lsst/resources/version.py +0 -2
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/COPYRIGHT +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/LICENSE +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/MANIFEST.in +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/README.md +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/doc/lsst.resources/CHANGES.rst +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/doc/lsst.resources/dav.rst +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/doc/lsst.resources/index.rst +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/doc/lsst.resources/internal-api.rst +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/doc/lsst.resources/s3.rst +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/pyproject.toml +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/__init__.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/__init__.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/_resourceHandles/__init__.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/_resourceHandles/_baseResourceHandle.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/_resourceHandles/_davResourceHandle.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/_resourceHandles/_fileResourceHandle.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/_resourceHandles/_httpResourceHandle.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/_resourceHandles/_s3ResourceHandle.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/dav.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/davutils.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/file.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/gs.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/http.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/location.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/mem.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/packageresource.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/py.typed +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/s3.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/s3utils.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/schemeless.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/utils.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst_resources.egg-info/SOURCES.txt +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst_resources.egg-info/dependency_links.txt +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst_resources.egg-info/requires.txt +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst_resources.egg-info/top_level.txt +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst_resources.egg-info/zip-safe +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/setup.cfg +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/tests/test_dav.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/tests/test_file.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/tests/test_gs.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/tests/test_http.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/tests/test_location.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/tests/test_mem.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/tests/test_resource.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/tests/test_s3.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/tests/test_s3utils.py +0 -0
- {lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/tests/test_schemeless.py +0 -0
{lsst_resources-29.2025.2900/python/lsst_resources.egg-info → lsst_resources-29.2025.3100}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lsst-resources
|
|
3
|
-
Version: 29.2025.
|
|
3
|
+
Version: 29.2025.3100
|
|
4
4
|
Summary: An abstraction layer for reading and writing from URI file resources.
|
|
5
5
|
Author-email: Rubin Observatory Data Management <dm-admin@lists.lsst.org>
|
|
6
6
|
License: BSD 3-Clause License
|
{lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/_resourcePath.py
RENAMED
|
@@ -549,7 +549,7 @@ class ResourcePath: # numpydoc ignore=PR02
|
|
|
549
549
|
return self, ""
|
|
550
550
|
|
|
551
551
|
head, tail = self._pathModule.split(self.path)
|
|
552
|
-
headuri = self._uri._replace(path=head)
|
|
552
|
+
headuri = self._uri._replace(path=head, fragment="", query="", params="")
|
|
553
553
|
|
|
554
554
|
# The file part should never include quoted metacharacters
|
|
555
555
|
tail = urllib.parse.unquote(tail)
|
|
@@ -619,7 +619,7 @@ class ResourcePath: # numpydoc ignore=PR02
|
|
|
619
619
|
# regardless of the presence of a trailing separator
|
|
620
620
|
originalPath = self._pathLib(self.path)
|
|
621
621
|
parentPath = originalPath.parent
|
|
622
|
-
return self.replace(path=str(parentPath), forceDirectory=True)
|
|
622
|
+
return self.replace(path=str(parentPath), forceDirectory=True, fragment="", query="", params="")
|
|
623
623
|
|
|
624
624
|
def replace(
|
|
625
625
|
self, forceDirectory: bool | None = None, isTemporary: bool = False, **kwargs: Any
|
|
@@ -866,6 +866,8 @@ class ResourcePath: # numpydoc ignore=PR02
|
|
|
866
866
|
forceDirectory=forceDirectory,
|
|
867
867
|
isTemporary=isTemporary,
|
|
868
868
|
fragment=path_uri.fragment,
|
|
869
|
+
query=path_uri.query,
|
|
870
|
+
params=path_uri.params,
|
|
869
871
|
)
|
|
870
872
|
|
|
871
873
|
def relative_to(self, other: ResourcePath) -> str | None:
|
|
@@ -392,6 +392,14 @@ class GenericTestCase(_GenericTestCase):
|
|
|
392
392
|
self.assertEqual(child_file.parent().parent(), parent)
|
|
393
393
|
self.assertEqual(child_subdir.dirname(), child_subdir)
|
|
394
394
|
|
|
395
|
+
# Make sure that the parent doesn't retain any fragment from the
|
|
396
|
+
# child.
|
|
397
|
+
child_fragment = child_subdir.join("a.txt#fragment")
|
|
398
|
+
self.assertEqual(child_fragment.fragment, "fragment")
|
|
399
|
+
fragment_parent = child_fragment.parent()
|
|
400
|
+
self.assertEqual(fragment_parent.fragment, "")
|
|
401
|
+
self.assertTrue(str(fragment_parent).endswith("/"))
|
|
402
|
+
|
|
395
403
|
def test_escapes(self) -> None:
|
|
396
404
|
"""Special characters in file paths."""
|
|
397
405
|
src = self.root_uri.join("bbb/???/test.txt")
|
|
@@ -496,6 +504,13 @@ class GenericTestCase(_GenericTestCase):
|
|
|
496
504
|
self.assertEqual(fnew3.fragment, "fragment")
|
|
497
505
|
self.assertEqual(fnew3.basename(), "b.txt", msg=f"Got: {fnew3._uri}")
|
|
498
506
|
|
|
507
|
+
# Check that fragment on the directory is dropped on join.
|
|
508
|
+
frag_dir = add_dir.join("subdir/#dir_fragment")
|
|
509
|
+
self.assertEqual(frag_dir.fragment, "dir_fragment")
|
|
510
|
+
fnew4 = frag_dir.join("a.txt")
|
|
511
|
+
self.assertEqual(fnew4.fragment, "")
|
|
512
|
+
self.assertTrue(str(fnew4).endswith("/a.txt"))
|
|
513
|
+
|
|
499
514
|
# Join a resource path.
|
|
500
515
|
subpath = ResourcePath("a/b.txt#fragment2", forceAbsolute=False, forceDirectory=False)
|
|
501
516
|
fnew3 = root.join(subpath)
|
{lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100/python/lsst_resources.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lsst-resources
|
|
3
|
-
Version: 29.2025.
|
|
3
|
+
Version: 29.2025.3100
|
|
4
4
|
Summary: An abstraction layer for reading and writing from URI file resources.
|
|
5
5
|
Author-email: Rubin Observatory Data Management <dm-admin@lists.lsst.org>
|
|
6
6
|
License: BSD 3-Clause License
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/doc/lsst.resources/internal-api.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/__init__.py
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
|
{lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/davutils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/location.py
RENAMED
|
File without changes
|
|
File without changes
|
{lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/packageresource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/s3utils.py
RENAMED
|
File without changes
|
{lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst/resources/schemeless.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lsst_resources-29.2025.2900 → lsst_resources-29.2025.3100}/python/lsst_resources.egg-info/zip-safe
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
|