Skip to content

Commit 7a2ef61

Browse files
authored
Fix poetry version (#31)
1 parent 89dd261 commit 7a2ef61

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PYTHONPATH := `pwd`
66
#* Poetry
77
.PHONY: poetry-download
88
poetry-download:
9-
curl -sSL https://install.python-poetry.org | $(PYTHON) -
9+
curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.8.5 $(PYTHON) -
1010

1111
.PHONY: poetry-remove
1212
poetry-remove:
@@ -17,7 +17,7 @@ poetry-remove:
1717
install:
1818
poetry lock -n && poetry export --without-hashes > requirements.txt
1919
poetry install -n
20-
-poetry run mypy --install-types --non-interactive hooks tests
20+
poetry run mypy --install-types --non-interactive hooks tests
2121

2222
.PHONY: pre-commit-install
2323
pre-commit-install:

{{ cookiecutter.project_name.lower().replace(' ', '-') }}/.github/workflows/{{ cookiecutter.package_name }}.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install Poetry
2424
uses: snok/install-poetry@v1
2525
with:
26-
version: 1.8.1
26+
version: 1.8.5
2727
virtualenvs-create: true
2828
virtualenvs-in-project: true
2929
installer-parallel: true
@@ -59,7 +59,7 @@ jobs:
5959
- name: Install Poetry
6060
uses: snok/install-poetry@v1
6161
with:
62-
version: 1.8.1
62+
version: 1.8.5
6363
virtualenvs-create: true
6464
virtualenvs-in-project: true
6565
installer-parallel: true

{{ cookiecutter.project_name.lower().replace(' ', '-') }}/.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ stages:
1818
.install-deps-template: &install-deps
1919
image: python:{{ cookiecutter.python_version }}
2020
before_script:
21-
- pip install poetry
21+
- pip install poetry==1.8.5
2222
- poetry --version
2323
- poetry config virtualenvs.in-project true
2424
- poetry config installer.max-workers 10

{{ cookiecutter.project_name.lower().replace(' ', '-') }}/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# PYTHON-BASE
55
# Sets up all our shared environment variables
66
################################
7-
FROM python:{{ cookiecutter.python_version }}-slim as python-base
7+
FROM python:{{ cookiecutter.python_version }}-slim AS python-base
88

99
# python
1010
ENV PYTHONUNBUFFERED=1 \
@@ -17,7 +17,7 @@ ENV PYTHONUNBUFFERED=1 \
1717
\
1818
# poetry
1919
# https://python-poetry.org/docs/configuration/#using-environment-variables
20-
POETRY_VERSION=1.8.1 \
20+
POETRY_VERSION=1.8.5 \
2121
# make poetry install to this location
2222
POETRY_HOME="/opt/poetry" \
2323
# make poetry create the virtual environment in the project's root

{{ cookiecutter.project_name.lower().replace(' ', '-') }}/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ TESTS = tests
1313
#* Poetry
1414
.PHONY: poetry-download
1515
poetry-download:
16-
curl -sSL https://install.python-poetry.org | $(PYTHON) -
16+
POETRY_VERSION=1.8.5 curl -sSL https://install.python-poetry.org | $(PYTHON) -
1717

1818
.PHONY: poetry-remove
1919
poetry-remove:

0 commit comments

Comments
 (0)