-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from kurtmckee/support-importlib-resources
Partially support reading resources
- Loading branch information
Showing
31 changed files
with
372 additions
and
14 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
changelog.d/20241122_091407_kurtmckee_support_importlib_resources.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Added | ||
----- | ||
|
||
* Partially support accessing resources in packages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/installed-projects/filesystem/package_resources_filesystem-1.1.1.dist-info/INSTALLER
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pip |
21 changes: 21 additions & 0 deletions
21
tests/installed-projects/filesystem/package_resources_filesystem-1.1.1.dist-info/METADATA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Metadata-Version: 2.1 | ||
Name: package-resources-filesystem | ||
Version: 1.1.1 | ||
Summary: | ||
License: MIT | ||
Author: Kurt McKee | ||
Author-email: [email protected] | ||
Requires-Python: >=3.7 | ||
Classifier: License :: OSI Approved :: MIT License | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: Programming Language :: Python :: 3.7 | ||
Classifier: Programming Language :: Python :: 3.8 | ||
Classifier: Programming Language :: Python :: 3.9 | ||
Classifier: Programming Language :: Python :: 3.10 | ||
Classifier: Programming Language :: Python :: 3.11 | ||
Classifier: Programming Language :: Python :: 3.12 | ||
Classifier: Programming Language :: Python :: 3.13 | ||
Description-Content-Type: text/x-rst | ||
|
||
A package that contains resources. | ||
|
8 changes: 8 additions & 0 deletions
8
tests/installed-projects/filesystem/package_resources_filesystem-1.1.1.dist-info/RECORD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package_resources_filesystem-1.1.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 | ||
package_resources_filesystem-1.1.1.dist-info/METADATA,sha256=bRIR9byrlEeRogVJ__XF1rj8YwIg5ocgRLv0rpyAY7k,702 | ||
package_resources_filesystem-1.1.1.dist-info/RECORD,, | ||
package_resources_filesystem-1.1.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 | ||
package_resources_filesystem-1.1.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88 | ||
package_resources_filesystem-1.1.1.dist-info/direct_url.json,, | ||
package_resources_filesystem/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 | ||
package_resources_filesystem/resource.txt,sha256=UzUTwTl8uMzsBYUrUlFL7NX9jJwhUJ97wvXUYMYUPdg,9 |
Empty file.
4 changes: 4 additions & 0 deletions
4
tests/installed-projects/filesystem/package_resources_filesystem-1.1.1.dist-info/WHEEL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Wheel-Version: 1.0 | ||
Generator: poetry-core 1.9.1 | ||
Root-Is-Purelib: true | ||
Tag: py3-none-any |
1 change: 1 addition & 0 deletions
1
...nstalled-projects/filesystem/package_resources_filesystem-1.1.1.dist-info/direct_url.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"archive_info": {"hash": "sha256=fe8e939ef9b5fe64eddd0c3ddb0d0f6e3f4e0d61b76323346068549631b62354", "hashes": {"sha256": "fe8e939ef9b5fe64eddd0c3ddb0d0f6e3f4e0d61b76323346068549631b62354"}}, "url": "file:///package_resources_filesystem-1.1.1-py3-none-any.whl"} |
Empty file.
1 change: 1 addition & 0 deletions
1
tests/installed-projects/filesystem/package_resources_filesystem/resource.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
resource |
1 change: 1 addition & 0 deletions
1
tests/installed-projects/sqlite/package_resources_sqlite-2.2.2.dist-info/INSTALLER
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pip |
21 changes: 21 additions & 0 deletions
21
tests/installed-projects/sqlite/package_resources_sqlite-2.2.2.dist-info/METADATA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Metadata-Version: 2.1 | ||
Name: package-resources-sqlite | ||
Version: 2.2.2 | ||
Summary: | ||
License: MIT | ||
Author: Kurt McKee | ||
Author-email: [email protected] | ||
Requires-Python: >=3.7 | ||
Classifier: License :: OSI Approved :: MIT License | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: Programming Language :: Python :: 3.7 | ||
Classifier: Programming Language :: Python :: 3.8 | ||
Classifier: Programming Language :: Python :: 3.9 | ||
Classifier: Programming Language :: Python :: 3.10 | ||
Classifier: Programming Language :: Python :: 3.11 | ||
Classifier: Programming Language :: Python :: 3.12 | ||
Classifier: Programming Language :: Python :: 3.13 | ||
Description-Content-Type: text/x-rst | ||
|
||
A package that contains resources. | ||
|
8 changes: 8 additions & 0 deletions
8
tests/installed-projects/sqlite/package_resources_sqlite-2.2.2.dist-info/RECORD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package_resources_sqlite-2.2.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 | ||
package_resources_sqlite-2.2.2.dist-info/METADATA,sha256=sJmD_MkvHCoc0BAKdIAQoMgRVzumA4l0xOC7kqEO5RE,698 | ||
package_resources_sqlite-2.2.2.dist-info/RECORD,, | ||
package_resources_sqlite-2.2.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 | ||
package_resources_sqlite-2.2.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88 | ||
package_resources_sqlite-2.2.2.dist-info/direct_url.json,, | ||
package_resources_sqlite/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 | ||
package_resources_sqlite/resource.txt,sha256=UzUTwTl8uMzsBYUrUlFL7NX9jJwhUJ97wvXUYMYUPdg,9 |
Empty file.
4 changes: 4 additions & 0 deletions
4
tests/installed-projects/sqlite/package_resources_sqlite-2.2.2.dist-info/WHEEL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Wheel-Version: 1.0 | ||
Generator: poetry-core 1.9.1 | ||
Root-Is-Purelib: true | ||
Tag: py3-none-any |
1 change: 1 addition & 0 deletions
1
tests/installed-projects/sqlite/package_resources_sqlite-2.2.2.dist-info/direct_url.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"archive_info": {"hash": "sha256=a7b9f6e2cdb94e02c3a59ec026c473efc6b6e27385438574733e97b6d95385e9", "hashes": {"sha256": "a7b9f6e2cdb94e02c3a59ec026c473efc6b6e27385438574733e97b6d95385e9"}}, "url": "file:///package_resources_sqlite-2.2.2-py3-none-any.whl"} |
Empty file.
1 change: 1 addition & 0 deletions
1
tests/installed-projects/sqlite/package_resources_sqlite/resource.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
resource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
A package that contains resources. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
A package that contains resources. |
18 changes: 18 additions & 0 deletions
18
tests/source-projects/package-resources/filesystem/pyproject.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
|
||
# poetry | ||
# ------ | ||
|
||
[tool.poetry] | ||
name = "package-resources-filesystem" | ||
version = "1.1.1" | ||
description = "" | ||
authors = ["Kurt McKee <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.rst" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.7" |
Empty file.
1 change: 1 addition & 0 deletions
1
...ource-projects/package-resources/filesystem/src/package_resources_filesystem/resource.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
resource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
A package that contains resources. |
18 changes: 18 additions & 0 deletions
18
tests/source-projects/package-resources/sqlite/pyproject.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
|
||
# poetry | ||
# ------ | ||
|
||
[tool.poetry] | ||
name = "package-resources-sqlite" | ||
version = "2.2.2" | ||
description = "" | ||
authors = ["Kurt McKee <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.rst" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.7" |
Empty file.
1 change: 1 addition & 0 deletions
1
tests/source-projects/package-resources/sqlite/src/package_resources_sqlite/resource.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
resource |
Oops, something went wrong.