Skip to content

Commit 8c692b3

Browse files
Pin poetry to 1.1
1 parent 693b97b commit 8c692b3

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Downloading CodeQL packs has been moved to the `init` step. Previously, CodeQL packs were downloaded during the `analyze` step. [#1218](https://github.com/github/codeql-action/pull/1218)
66
- Update default CodeQL bundle version to 2.10.4. [#1224](https://github.com/github/codeql-action/pull/1224)
7+
- The newly released [Poetry 1.2](https://python-poetry.org/blog/announcing-poetry-1.2.0) is not yet supported. In the most common case where the CodeQL Action is automatically installing Python dependencies, it will continue to install and use Poetry 1.1 on its own. However, in certain cases such as with self-hosted runners, you may need to ensure Poetry 1.1 is installed yourself.
78

89
## 2.1.21 - 25 Aug 2022
910

python-setup/install_tools.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ py -3 -m pip install --user --upgrade pip setuptools wheel
88
py -2 -m pip install --user 'virtualenv<20.11'
99
py -3 -m pip install --user 'virtualenv<20.11'
1010

11-
# poetry 1.0.10 has error (https://github.com/python-poetry/poetry/issues/2711)
12-
py -3 -m pip install --user poetry!=1.0.10
11+
# We aren't compatible with poetry 1.2
12+
py -3 -m pip install --user "poetry>=1.1,<1.2"
1313
py -3 -m pip install --user pipenv

python-setup/install_tools.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ python3 -m pip install --user 'virtualenv<20.11'
2424
# "program uses threads.", RuntimeWarning)
2525
# LGTM_PYTHON_SETUP_VERSION=The currently activated Python version 2.7.18 is not supported by the project (^3.5). Trying to find and use a compatible version. Using python3 (3.8.2) 3
2626

27-
# poetry 1.0.10 has error (https://github.com/python-poetry/poetry/issues/2711)
28-
python3 -m pip install --user poetry!=1.0.10
27+
# We aren't compatible with poetry 1.2
28+
python3 -m pip install --user "poetry>=1.1,<1.2"
2929
python3 -m pip install --user pipenv
3030

3131
if command -v python2 >/dev/null 2>&1; then

0 commit comments

Comments
 (0)