-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Hi all and thanks for your work !
I'm using astral-sh/setup-uv@v7 to run test/check with `pytest/ruff/mypy on my lib Python.
I have an issue with windows-latest, i don't know why this is running tox with default Python version :
Caution
Using Python 3.9.13 environment at: .tox\type
Find below more details :
type: venv> D:\a\_temp\uv-tool-dir\tox\Scripts\uv.exe venv -p D:\a\_temp\uv-tool-dir\tox\Scripts\python.exe --allow-existing --python-preference system D:\a\antares_data_collection\antares_data_collection\.tox\type
type: install_deps> D:\a\_temp\uv-tool-dir\tox\Scripts\uv.exe pip install mypy pandas-stubs
.pkg: venv> D:\a\_temp\uv-tool-dir\tox\Scripts\uv.exe venv -p D:\a\_temp\uv-tool-dir\tox\Scripts\python.exe --allow-existing --python-preference system D:\a\antares_data_collection\antares_data_collection\.tox\.pkg
.pkg: install_requires> D:\a\_temp\uv-tool-dir\tox\Scripts\uv.exe pip install setuptools>=61.0
.pkg: _optional_hooks> python D:\a\_temp\uv-tool-dir\tox\lib\site-packages\pyproject_api\_backend.py True setuptools.build_meta
.pkg: get_requires_for_build_sdist> python D:\a\_temp\uv-tool-dir\tox\lib\site-packages\pyproject_api\_backend.py True setuptools.build_meta
.pkg: freeze> D:\a\_temp\uv-tool-dir\tox\Scripts\uv.exe --color never pip freeze
.pkg: setuptools==80.9.0
.pkg: build_sdist> python D:\a\_temp\uv-tool-dir\tox\lib\site-packages\pyproject_api\_backend.py True setuptools.build_meta
type: install_package_deps> D:\a\_temp\uv-tool-dir\tox\Scripts\uv.exe pip install pandas
type: install_package> D:\a\_temp\uv-tool-dir\tox\Scripts\uv.exe pip install --reinstall --no-deps antares-data-collection@D:\a\antares_data_collection\antares_data_collection\.tox\.tmp\package\1\antares_data_collection-0.1.0.tar.gz
Using Python 3.9.13 environment at: .tox\type
type: exit 1 (0.16 seconds) D:\a\antares_data_collection\antares_data_collection> D:\a\_temp\uv-tool-dir\tox\Scripts\uv.exe pip install --reinstall --no-deps antares-data-collection@D:\a\antares_data_collection\antares_data_collection\.tox\.tmp\package\1\antares_data_collection-0.1.0.tar.gz pid=8484
� No solution found when resolving dependencies:
\u[25](https://github.com/AntaresSimulatorTeam/antares_data_collection/actions/runs/19537901087/job/55936414246#step:6:26)70\u2500\u25b6 Because the current Python version (3.9.13) does not satisfy
Python>=3.11 and antares-data-collection==0.1.0 depends on Python>=3.11,
we can conclude that antares-data-collection==0.1.0 cannot be used.
And because only antares-data-collection==0.1.0 is available and you
require antares-data-collection, we can conclude that your requirements
are unsatisfiable.
type: FAIL ! in 4.92 seconds
I found a solution to force version of Python to 3.11 (cause my lib need requires-python = ">=3.11").
Below, .yml file who solve issue :
name: tests+lint+type
on:
push:
branches: ["main"]
pull_request:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# tox-env: ["py310", "py311", "py312"] => config used with tox.ini
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
python-version: ${{ runner.os == 'Windows' && '3.11' || null }}
- name: Install tox + tox-uv
run: uv tool install tox --with tox-uv
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Run tox
# use all env tox defined in tox.ini
run: toxI have no issue with ubuntu-latest, macos-latest, this is a "normal bug" with Windows ?
For more details about the job in Error :
Metadata
Metadata
Assignees
Labels
No labels