Update dlt dependency from ^0.4.12 to latest#135
Merged
AstrakhantsevaAA merged 7 commits intodevelfrom Aug 29, 2025
Merged
Conversation
92f696e to
fcd89e6
Compare
- Upgraded dlt from ^0.4.12 to ^1.11.0 - Updated rest_api.py, utils.py, and other files - Cleanup and minor fixes# This is a combination of 13 commits. Update dlt dependency from ^0.4.12 to ^1.11.0 Updated 'update_rest_api.py' Updated Updated utils.py updated Updted Updated Updated Updated Updated Updated Updated updated pokemon Updated
fcd89e6 to
57152c8
Compare
sh-rp
reviewed
Aug 4, 2025
dlt_init_openapi/config.py
Outdated
| REST_API_SOURCE_LOCATION = str(pathlib.Path(__file__).parent / "rest_api") | ||
|
|
||
| # Placeholder for SecretsTomlConfig to resolve ImportError in tests | ||
| SecretsTomlConfig = Dict[str, Any] |
Collaborator
There was a problem hiding this comment.
This does not seem to be used anywhere, does it? Why is it imported in the tests at all?
sh-rp
reviewed
Aug 4, 2025
| FILES = ["README.md", "__init__.py", "config_setup.py", "exceptions.py", "requirements.txt", "typing.py", "utils.py"] | ||
|
|
||
|
|
||
| def update_rest_api(force: bool = False) -> None: |
Collaborator
There was a problem hiding this comment.
I think you can remove this and the commands that depend on it entirely
sh-rp
reviewed
Aug 4, 2025
| # there should be 20 entries with pokemon details loaded | ||
| # (the id is only loaded on the full request) | ||
| assert db.sql("SELECT count (*) from pokemon_data.pokemon as p WHERE p.id IS NOT NULL").fetchone()[0] == 40 | ||
| assert db.sql("SELECT count (*) from pokemon_data.pokemon as p WHERE p.id IS NOT NULL").fetchone()[0] == 2 |
Collaborator
There was a problem hiding this comment.
do you know why this has changed?
Collaborator
Author
There was a problem hiding this comment.
It's fetching 40 Pokémon's names, but only 2 of them have an ID, so I decreased the number to 2 to match the assertion.
sh-rp
reviewed
Aug 4, 2025
tests/integration/utils.py
Outdated
| from dlt_init_openapi.config import REST_API_SOURCE_LOCATION, Config | ||
| from rest_api.typing import EndpointResource, RESTAPIConfig | ||
| from dlt_init_openapi.config import REST_API_SOURCE_LOCATION, Config, SecretsTomlConfig | ||
| from dlt_init_openapi.parser.context import OpenapiContext |
Collaborator
There was a problem hiding this comment.
why is this line here? OpenapiContext does not seem to be used?
sh-rp
reviewed
Aug 4, 2025
dlt_init_openapi/config.py
Outdated
| REST_API_SOURCE_LOCATION = str(pathlib.Path(__file__).parent.resolve() / "../rest_api") | ||
| # In dlt>=1.11.0, the rest_api is part of the main package | ||
| # For backwards compatibility, we keep a stub directory | ||
| REST_API_SOURCE_LOCATION = str(pathlib.Path(__file__).parent / "rest_api") |
Collaborator
There was a problem hiding this comment.
I don't think this is needed anymore.
AstrakhantsevaAA
approved these changes
Aug 29, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.