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

Switch to UV from PDM #40

Merged
merged 13 commits into from
Nov 22, 2024
Merged

Switch to UV from PDM #40

merged 13 commits into from
Nov 22, 2024

Conversation

ewilliams-cloudera
Copy link
Collaborator

No description provided.

Comment on lines 23 to 27
- name: Set up Python
uses: pdm-project/setup-pdm@v3
with:
python-version: '3.10'
cache: false
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove?

pdm install
uv python install 3.10
uv venv
uv pip install -r pyproject.toml
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we install from the locked versions instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe? Let me see if that's possible

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not seeing a way to install from the lock file instead of the toml.

docs here: https://docs.astral.sh/uv/pip/packages/#installing-packages-from-files

local-dev.sh Outdated
pdm install
pdm run pytest -sxvvra
python -m pip install uv
uv pip install -r pyproject.toml
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same

pdm install -v
pip install uv
uv venv
uv pip install -r pyproject.toml
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same

WORKDIR /app
RUN pdm install
RUN uv install
Copy link
Collaborator

Choose a reason for hiding this comment

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

The other places used uv pip install -r pyproject.toml. Why is this different? 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, that seems right

Copy link
Collaborator

Choose a reason for hiding this comment

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

this should be uv sync

Copy link
Collaborator

@jkwatson jkwatson left a comment

Choose a reason for hiding this comment

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

🚢

@jkwatson jkwatson merged commit ebbdf89 into main Nov 22, 2024
3 checks passed
@jkwatson jkwatson deleted the mob/main branch November 22, 2024 22:07
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