Skip to content

Commit 1c65334

Browse files
authored
fix: Use right python environment (#7)
* fix: Use right python environment Even despite adsf did activate python3.8. This was not used by poetry. python-poetry/poetry#655 In the Make target I've added a command which ensures that the right python version is used. * fix: for poetry command failures in netlify For some reason poetry started to fail with No module named 'poetry.repositories.http'. This works around that issue.
1 parent ca9ea2a commit 1c65334

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Diff for: Makefile

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
POETRY_RUN := poetry run
1+
# Workaround for issues in Netlify which started to occur
2+
# recently
3+
POETRY := poetry --no-plugins
24

35
theme:
46
(ls theme/ > /dev/null && cd theme/ && git pull) || git clone https://github.com/Ecno92/pelican-hyde.git theme/
57

68
dev:
7-
$(POETRY_RUN) pelican --listen --autoreload
9+
$(POETRY) run pelican --listen --autoreload
810

911
publish:
10-
$(POETRY_RUN) pelican
12+
$(POETRY) run pelican
1113

1214
venv:
13-
poetry install
15+
$(POETRY) env use $(shell which python3)
16+
$(POETRY) install
1417

1518
deploy: venv theme publish
1619

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = ["Therry van Neerven <[email protected]>"]
66
readme = "README.md"
77

88
[tool.poetry.dependencies]
9-
python = "^3.8"
9+
python = "^3.8.10"
1010
Markdown = "*"
1111
pelican = "*"
1212
markdown = "*"

0 commit comments

Comments
 (0)