Skip to content

Conversation

wagoodman
Copy link
Contributor

@wagoodman wagoodman commented Feb 14, 2025

When switching from ubuntu 20.04 to 24.04 there have been some python/poetry integration issues (hidden by CI caching of venv dir):

Run actions/setup-python@v5
  with:
    python-version: 3.12
    check-latest: false
    token: ***
    update-environment: true
    allow-prereleases: false
  env:
    CGO_ENABLED: 0
Installed versions
  Successfully set up CPython (3.12.9)
...
poetry install --with dev
The currently activated Python version 3.10.12 is not supported by the project (>=3.11,<=3.13).
...
  - Installing pytest (7.4.4)
cd tests/cli && make
make[2]: Entering directory '/home/runner/work/grype-db/grype-db/manager/tests/cli'
pytest . -vv -o log_cli=true

make[2]: pytest: No such file or directory

as well as...

Run actions/setup-python@v5
  with:
    python-version: 3.12
    check-latest: false
    token: ***
    update-environment: true
    allow-prereleases: false
  env:
    CGO_ENABLED: 0
Installed versions
  Successfully set up CPython (3.12.9)
...
poetry install --with dev
The currently activated Python version 3.10.12 is not supported by the project (>=3.11,<=3.13).
...
poetry run ./test/db/acceptance.sh 5
The currently activated Python version 3.10.12 is not supported by the project (>=3.11,<=3.13).
Trying to find and use a compatible version. 
Using python3 (3.12.9)
Building DB
./test/db/acceptance.sh: /home/runner/.cache/pypoetry/virtualenvs/grype-db-manager-PVaOHv82-py3.12/bin/grype-db-manager: /home/runner/.cache/pypoetry/virtualenvs/grype-db-manager-PVaOHv82-py3.12/bin/python: bad interpreter: No such file or directory

I could spend more time troubleshooting this, but honestly we have been planning to port to uv anyway.

This also updates grype, which was the original reason for this PR.

@wagoodman wagoodman force-pushed the bump-grype-with-language-aliases branch from e06cc56 to ef988c7 Compare February 14, 2025 13:49
@wagoodman wagoodman changed the title Bump grype to add language ecosystem aliasing Switch from poetry to UV Feb 14, 2025
@wagoodman wagoodman force-pushed the bump-grype-with-language-aliases branch 2 times, most recently from 761a9c7 to 73e6475 Compare February 14, 2025 14:32
Signed-off-by: Alex Goodman <[email protected]>
@wagoodman wagoodman force-pushed the bump-grype-with-language-aliases branch from 73e6475 to 4e31d7b Compare February 14, 2025 14:42
@wagoodman wagoodman enabled auto-merge (squash) February 14, 2025 14:51
@wagoodman wagoodman disabled auto-merge February 14, 2025 14:53
@wagoodman wagoodman enabled auto-merge (squash) February 14, 2025 14:53
@wagoodman wagoodman merged commit cb5b1a9 into main Feb 14, 2025
10 checks passed
@wagoodman wagoodman deleted the bump-grype-with-language-aliases branch February 14, 2025 15:04
@wagoodman wagoodman changed the title Switch from poetry to UV Switch manager package management from poetry to UV Mar 6, 2025
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