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

Initial version of rattler python bindings #279

Merged
merged 9 commits into from
Aug 24, 2023

Conversation

baszalmstra
Copy link
Collaborator

@baszalmstra baszalmstra commented Aug 21, 2023

This is the initial work of creating Python bindings for rattler.

The bindings are implemented using a double indirection approach that I learned from polars. Lets take Version as an example:

  • Rust: PyVersion (wraps rattler_conda_types::Version and exposes it to python using PyO3)
  • Python: Version (wraps the exposed PyVersion and exposes all functionalities with a pythonic API. Adds types and docstrings)

TODO:

  • Set up better CI (lint, test, build).
  • Set up linter (ruff)
  • Determine the initial functionality and implement it. (I think matchspec and version)

@baszalmstra baszalmstra marked this pull request as ready for review August 24, 2023 13:52
@baszalmstra baszalmstra self-assigned this Aug 24, 2023
@baszalmstra baszalmstra requested a review from tdejager August 24, 2023 13:52
py-rattler/src/version.rs Show resolved Hide resolved
@tdejager tdejager merged commit 344b7f4 into conda:main Aug 24, 2023
This was referenced Sep 5, 2023
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.

3 participants