Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes from tests #14

Merged
merged 4 commits into from
Jul 12, 2024
Merged

Fixes from tests #14

merged 4 commits into from
Jul 12, 2024

Conversation

photonbit
Copy link
Contributor

Fixes coming from running the tests

Cyclic import

To solve this issue, I made the less intrusive approach possible: use forward references for the extended types referenced inside the basic types file. This does not solve the underlying architectural problem though.

Contacting services on import

This solves the issue that caused the library to hang out when using anything inside the utils file. The proposed solution is trying to unblock some workflows, a better solution would be to make separated set of dependencies for the advanced use of the library, avoiding these external contacts and avoiding to install huge libraries like torch for the core usage.

Partial pydantic upgrade

In the requirements pydantic v2 was used, but some parts of the code were still in v1. The ones fixed in this PR are only the ones that were failing when running the tests.

@Relifest Relifest merged commit 7b89afd into openrsgis:main Jul 12, 2024
@photonbit photonbit mentioned this pull request Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants