Skip to content

Commit

Permalink
chore: switch from pipenv to uv
Browse files Browse the repository at this point in the history
uv from the people who wrote ruff is an extremely fast Python package
and project manager.

Signed-off-by: Sébastien Han <[email protected]>
  • Loading branch information
leseb committed Dec 9, 2024
1 parent 8c2981c commit 779e2cb
Show file tree
Hide file tree
Showing 6 changed files with 661 additions and 668 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/pre_commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,10 @@ jobs:
with:
fetch-depth: 2 # Needed for HEAD to exists

- name: Setup Python
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: "3.12"
cache: pipenv

- name: Setup Pipenv
uses: tiagovrtr/actions-pipenv@v1
with:
pipenv-version: "v2024.1.0"

- name: Configure caching
uses: actions/cache@v4
Expand All @@ -37,15 +31,15 @@ jobs:

- name: Install dependencies
run: |
pipenv sync
uv sync
- name: Run pre-commit
run: |
pipenv run pre-commit run --all-files
uv run pre-commit run --all-files
- name: Test if pipeline is up-to-date
run: |
pipenv run make pipeline
uv run make pipeline
git diff --exit-code || (echo "Pipeline is not up-to-date. Please run 'make pipeline' and commit the changes." && exit 1)
- name: test if standalone.py was updated and not standalone.tpl (no components file(s) updated)
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
18 changes: 0 additions & 18 deletions Pipfile

This file was deleted.

Loading

0 comments on commit 779e2cb

Please sign in to comment.