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

docs(contribute): include instructions to use Pixi #10504

Merged
merged 4 commits into from
Nov 19, 2024

Conversation

deepyaman
Copy link
Contributor

@deepyaman deepyaman commented Nov 16, 2024

Description of changes

Share how I set up my development environment using Pixi.

@github-actions github-actions bot added the docs Documentation related issues or PRs label Nov 16, 2024
@deepyaman deepyaman changed the title docs(contribute): include instructures to use Pixi docs(contribute): include instructions to use Pixi Nov 16, 2024
if manager == "conda" or manager == "mamba":
print(f" {manager} install -c conda-forge gh")
elif manager == "pixi":
print(f" {manager} global install gh")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't do this because I don't use gh, but wanted to keep things consistent...

print()
if manager == "pixi":
print(" ::: {.callout-note}")
print(" This command will initialize a `pixi.toml` file and also modify ")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alternatively, we could provide Pixi configuration in pyproject.toml (or pixi.toml), but this would be more involved to keep in sync; this approach worked well enough for me so far, with minimal effort.

@deepyaman deepyaman added the docs-preview Add this label to trigger a docs preview label Nov 16, 2024
@ibis-docs-bot ibis-docs-bot bot removed the docs-preview Add this label to trigger a docs preview label Nov 16, 2024
@deepyaman deepyaman added the docs-preview Add this label to trigger a docs preview label Nov 17, 2024
@ibis-docs-bot ibis-docs-bot bot removed the docs-preview Add this label to trigger a docs preview label Nov 17, 2024
@deepyaman deepyaman added the docs-preview Add this label to trigger a docs preview label Nov 17, 2024
@ibis-docs-bot ibis-docs-bot bot removed the docs-preview Add this label to trigger a docs preview label Nov 17, 2024
@deepyaman deepyaman added the docs-preview Add this label to trigger a docs preview label Nov 17, 2024
@ibis-docs-bot ibis-docs-bot bot removed the docs-preview Add this label to trigger a docs preview label Nov 17, 2024
@deepyaman deepyaman marked this pull request as ready for review November 17, 2024 04:06
print(" ```")
print()
print(
f"1. Install your local copy of `ibis` into the {manager.capitalize()} environment"
)
print()
print(" ```sh")
print(" pip install -e .")
print(" uv pip install -e .")
Copy link
Member

Choose a reason for hiding this comment

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

Where'd uv come from? Should this just be pip still?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. pip isn't installed by default in the environment created this way (I could, but...)
  2. Since chore(dev-deps): move to uv for development #10424, uv is included in conda/environment.yml anyway, so why not use uv over pip? Seems there was a decision to generally move to uv, and it's what's being used in CI.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I didn't realize that uv had also been added to the yml files. All good, then!

@gforsyth
Copy link
Member

Dunno about that nix job CI is waiting on but I'm going to merge this

@gforsyth gforsyth merged commit db8af10 into ibis-project:main Nov 19, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation related issues or PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants