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

Python 3.10 job installs dependencies under Python 3.9 (Cookiecutter) #1196

Open
cjolowicz opened this issue May 16, 2022 · 4 comments
Open
Labels
ci Changes to CI configuration files and scripts cookiecutter Changes outside of the template directory

Comments

@cjolowicz
Copy link
Owner

See https://github.com/cjolowicz/cookiecutter-hypermodern-python/runs/6451683960?check_suite_focus=true

Possible reason: The CI for the Cookiecutter uses the pre-installed pipx to install Poetry. It looks like the pre-installed pipx uses Python 3.9, so Poetry is also installed under that version. As a result, Poetry uses Python 3.9 to create the project environment.

@cjolowicz cjolowicz added ci Changes to CI configuration files and scripts cookiecutter Changes outside of the template directory labels May 16, 2022
@paw-lu
Copy link
Contributor

paw-lu commented May 18, 2022

Good find. Embarassingly I had come across this a while back and forgot to investigate.

Do we need to use pipx here?

We can either:

  1. Install pipx under the proper python, then proceed as usual
  2. Just use pip itself to install nox and poetry

Happy to help with either.

@paw-lu
Copy link
Contributor

paw-lu commented May 18, 2022

Think your reasoning is right btw, on the 3.10 runs my pipx uses 3.8.

runner@fv-az426-664:~/work/nbpreview/nbpreview$ pipx runpip nox '--version'
pip 22.1 from /opt/pipx/shared/lib/python3.8/site-packages/pip (python 3.8)
runner@fv-az426-664:~/work/nbpreview/nbpreview$ python -V
Python 3.10.4

@paw-lu
Copy link
Contributor

paw-lu commented May 18, 2022

@paw-lu
Copy link
Contributor

paw-lu commented May 18, 2022

We can either:

  1. Install pipx under the proper python, then proceed as usual
  2. Just use pip itself to install nox and poetry
  1. is use an action to handle installing poetry: snok/install-poetry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Changes to CI configuration files and scripts cookiecutter Changes outside of the template directory
Projects
None yet
Development

No branches or pull requests

2 participants