Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/appstore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-01-05 16:14:08 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-01-05 16:14:08 +0300
commitb304bc910134d908f08686832fb55fcc506c99c5 (patch)
tree02958161016c754a79c91045ec4a2881737a07a2 /Makefile
parentb23ca1ea82e73c80cff7dc7741de2f80e4eb2fe4 (diff)
Port from pyenv to poetry
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 11 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 152bc4089a..c643dcc598 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,14 @@
-venv_bin=venv/bin/
-python=$(venv_bin)python
-pip=$(venv_bin)pip3
-pycodestyle=$(venv_bin)pycodestyle
-pyresttest=$(venv_bin)pyresttest
-coverage=$(venv_bin)coverage
-bandit=$(venv_bin)bandit
-mypy=$(venv_bin)mypy
+poetry=poetry
+poetry_run=$(poetry) run
+python=$(poetry_run) python
+pycodestyle=$(poetry_run) pycodestyle
+pyresttest=$(poetry_run) pyresttest
+coverage=$(poetry_run) coverage
+bandit=$(poetry_run) bandit
+mypy=$(poetry_run) mypy
manage-script=$(CURDIR)/manage.py
-manage=$(python) $(manage-script)
+manage=$(poetry_run) $(manage-script)
db=sqlite
-pyvenv=python3 -m venv
yarn=yarn
prod_version=12.0.0
@@ -42,10 +41,7 @@ dev-setup:
rm -f db.sqlite3
$(yarn) install
$(yarn) run build
- $(pyvenv) venv
- $(pip) install --upgrade pip
- $(pip) install -r $(CURDIR)/requirements/development.txt
- $(pip) install -r $(CURDIR)/requirements/base.txt
+ poetry install
ifeq ($(db), postgres)
$(pip) install -r $(CURDIR)/requirements/production.txt
endif
@@ -69,8 +65,7 @@ docs:
.PHONY: update-dev-deps
update-dev-deps:
- $(pip) install --upgrade -r $(CURDIR)/requirements/development.txt
- $(pip) install --upgrade -r $(CURDIR)/requirements/base.txt
+ $(poetry) upgrade
$(yarn) install --upgrade
.PHONY: authors