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

Install poetry using pip in CI scripts #924

Merged
merged 5 commits into from
Jan 23, 2023
Merged

Conversation

nickmoreton
Copy link
Contributor

@nickmoreton nickmoreton commented Jan 3, 2023

The CI command that uses this url:

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py ...

is no longer available and returns 404.

This became apparent when rebasing: #871

This updates the installation of poetry to use pip.

@codecov-commenter
Copy link

codecov-commenter commented Jan 3, 2023

Codecov Report

Merging #924 (0851ba5) into master (30c51c4) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #924   +/-   ##
=======================================
  Coverage   52.02%   52.02%           
=======================================
  Files         160      160           
  Lines        7494     7494           
  Branches      166      166           
=======================================
  Hits         3899     3899           
  Misses       3476     3476           
  Partials      119      119           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@nickmoreton nickmoreton changed the title Install poetry using pip Install poetry using pip in CI scripts Jan 3, 2023
@victoriachan victoriachan self-requested a review January 3, 2023 13:13
@@ -22,8 +22,8 @@ jobs:
- run:
name: install python dependencies
command: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_VERSION=1.1.8 python
. $HOME/.poetry/env
pip install --upgrade pip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tried replacing get-poetry.py with https://github.com/python-poetry/install.python-poetry.org? e.g. curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.1.15 python3 -? I'm not sure if this is better than using pip install but it looks it looks more in line with the way it was done before.

.circleci/config.yml Show resolved Hide resolved
@@ -23,7 +23,7 @@ ARG POETRY_HOME=/opt/poetry
ARG POETRY_INSTALL_ARGS="--no-dev"

# IMPORTANT: Remember to review both of these when upgrading
ARG POETRY_VERSION=1.1.8
ARG POETRY_VERSION=1.1.15
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matches the version specified in the CI script

@nickmoreton nickmoreton added the on-dev Flag to state if this code is on the dev site label Jan 20, 2023
@nickmoreton nickmoreton merged commit 9308d3e into master Jan 23, 2023
@nickmoreton nickmoreton deleted the fix/ci-poetry-install branch January 23, 2023 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on-dev Flag to state if this code is on the dev site
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants