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

Import python implementations from python, not rust wrapper #464

Closed

Conversation

alexgleith
Copy link

Closes

Related to

Description

Fixes the main import for the init.py file by importing the Python implementations rather than the naked rust wrappers of them.

Checklist

Delete any checklist items that do not apply (e.g. if your change is minor, it may not require documentation updates).

  • Unit tests
  • Documentation, including doctests
  • Git history is linear
  • Commit messages are descriptive
  • (optional) Git commit messages follow conventional commits
  • Code is formatted (cargo fmt)
  • cargo test
  • Changes are added to the CHANGELOG

@gadomski gadomski self-requested a review October 18, 2024 11:33
Copy link
Member

@gadomski gadomski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contrib @alexgleith! Looks like there's a couple issues w/ imports and tests — I might look to tackle #462 in a separate PR, I'll be sure to cc you in.

@@ -1,16 +1,19 @@
from . import stacrs
from .stacrs import (
import pystac
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was an intentional decision to not import pystac at the top level — I'd like this library to be zero-dependency by default.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, sorry, that was meant to be the internal .pystac.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd want a test to confirm that this works.

@alexgleith
Copy link
Author

Yeah, no worries. Sorry it's not tested, it's a pretty complex environment for me still.

@gadomski
Copy link
Member

Closing as OBE, #468

@gadomski gadomski closed this Oct 18, 2024
@alexgleith alexgleith deleted the import-functions-from-pystac branch October 18, 2024 21:29
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.

Can't write a STAC Parquet file from a list of Items
2 participants