Skip to content

Commit

Permalink
Enable poetry non-package mode (#31282)
Browse files Browse the repository at this point in the history
[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`.
  • Loading branch information
silverwind authored Jun 7, 2024
1 parent ab1948d commit 15debbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ node_modules: package-lock.json
@touch node_modules

.venv: poetry.lock
poetry install --no-root
poetry install
@touch .venv

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

.PHONY: fomantic
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
[tool.poetry]
name = "gitea"
version = "0.0.0"
description = ""
authors = []
package-mode = false

[tool.poetry.dependencies]
python = "^3.10"
Expand Down

0 comments on commit 15debbb

Please sign in to comment.