Skip to content

Commit 15debbb

Browse files
authored
Enable poetry non-package mode (#31282)
[Poetry 1.8.0](https://github.com/python-poetry/poetry/releases/tag/1.8.0) added support for [non-package mode](https://python-poetry.org/docs/basic-usage/#operating-modes), e.g. projects that are not python packages themselves like we are. Make use of that and remove the previous workaround via `--no-root`.
1 parent ab1948d commit 15debbb

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ node_modules: package-lock.json
878878
@touch node_modules
879879

880880
.venv: poetry.lock
881-
poetry install --no-root
881+
poetry install
882882
@touch .venv
883883

884884
.PHONY: update
@@ -895,7 +895,7 @@ update-js: node-check | node_modules
895895
update-py: node-check | node_modules
896896
npx updates -u -f pyproject.toml
897897
rm -rf .venv poetry.lock
898-
poetry install --no-root
898+
poetry install
899899
@touch .venv
900900

901901
.PHONY: fomantic

pyproject.toml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
[tool.poetry]
2-
name = "gitea"
3-
version = "0.0.0"
4-
description = ""
5-
authors = []
2+
package-mode = false
63

74
[tool.poetry.dependencies]
85
python = "^3.10"

0 commit comments

Comments
 (0)