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`.
pull/31283/head^2
silverwind 6 months ago committed by GitHub
parent ab1948d4a3
commit 15debbbe4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      Makefile
  2. 5
      pyproject.toml

@ -878,7 +878,7 @@ node_modules: package-lock.json
@touch node_modules @touch node_modules
.venv: poetry.lock .venv: poetry.lock
poetry install --no-root poetry install
@touch .venv @touch .venv
.PHONY: update .PHONY: update
@ -895,7 +895,7 @@ update-js: node-check | node_modules
update-py: node-check | node_modules update-py: node-check | node_modules
npx updates -u -f pyproject.toml npx updates -u -f pyproject.toml
rm -rf .venv poetry.lock rm -rf .venv poetry.lock
poetry install --no-root poetry install
@touch .venv @touch .venv
.PHONY: fomantic .PHONY: fomantic

@ -1,8 +1,5 @@
[tool.poetry] [tool.poetry]
name = "gitea" package-mode = false
version = "0.0.0"
description = ""
authors = []
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.10" python = "^3.10"

Loading…
Cancel
Save