-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #991 from ae-utbm/uv
Switch from poetry to uv
- Loading branch information
Showing
23 changed files
with
1,967 additions
and
2,985 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,6 @@ | ||
if [[ ! -f pyproject.toml ]]; then | ||
log_error 'No pyproject.toml found. Use `poetry new` or `poetry init` to create one first.' | ||
if [[ ! -d .venv ]]; then | ||
log_error 'No .venv folder found. Use `uv sync` to create one first.' | ||
exit 2 | ||
fi | ||
|
||
local VENV=$(poetry env list --full-path | cut -d' ' -f1) | ||
if [[ -z $VENV || ! -d $VENV/bin ]]; then | ||
log_error 'No poetry virtual environment found. Use `poetry install` to create one first.' | ||
exit 2 | ||
fi | ||
|
||
export VIRTUAL_ENV=$VENV | ||
export POETRY_ACTIVE=1 | ||
PATH_add "$VENV/bin" | ||
. .venv/bin/activate |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,8 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version-file: ".python-version" | ||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files | ||
|
@@ -29,14 +31,15 @@ jobs: | |
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup_project | ||
- uses: ./.github/actions/setup_xapian | ||
- uses: ./.github/actions/compile_messages | ||
env: | ||
# To avoid race conditions on environment cache | ||
CACHE_SUFFIX: ${{ matrix.pytest-mark }} | ||
- name: Run tests | ||
run: poetry run coverage run -m pytest -m "${{ matrix.pytest-mark }}" | ||
run: uv run coverage run -m pytest -m "${{ matrix.pytest-mark }}" | ||
- name: Generate coverage report | ||
run: | | ||
poetry run coverage report | ||
poetry run coverage html | ||
uv run coverage report | ||
uv run coverage html | ||
- name: Archive code coverage results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ pyrightconfig.json | |
dist/ | ||
.vscode/ | ||
.idea/ | ||
env/ | ||
.venv/ | ||
doc/html | ||
data/ | ||
galaxy/test_galaxy_state.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.