mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-10 06:48:19 +02:00
changes repo to customized solution
This commit is contained in:
parent
0de5779dd7
commit
85870c896f
8 changed files with 93 additions and 135 deletions
51
Makefile
Normal file
51
Makefile
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
VERSION := 0.1.0
|
||||
|
||||
clean:
|
||||
-rm -rf dist
|
||||
-rm -rf env
|
||||
|
||||
patch:
|
||||
git aftermerge patch || exit 1
|
||||
|
||||
minor:
|
||||
git aftermerge minor || exit 1
|
||||
|
||||
major:
|
||||
git aftermerge major || exit 1
|
||||
|
||||
|
||||
fmt:
|
||||
poetry run black . || exit 1
|
||||
|
||||
lint:
|
||||
poetry run flake8 . || exit 1
|
||||
|
||||
test: clean fmt lint
|
||||
poetry run pytest || exit 1
|
||||
|
||||
build: test
|
||||
poetry build
|
||||
|
||||
deploytest: build
|
||||
python3 -m venv env
|
||||
./env/bin/pip install wheel
|
||||
./env/bin/pip install dist/django-ngmailbox-\$(VERSION).tar.gz
|
||||
-echo "source ./env/bin/activate"
|
||||
|
||||
serve:
|
||||
bash ./devenv/start_firefox.sh &
|
||||
poetry run python manage.py runserver
|
||||
|
||||
dev:
|
||||
bash ./devenv/start_dev.sh &
|
||||
poetry run python manage.py runserver
|
||||
|
||||
migrations:
|
||||
poetry run python manage.py makemigrations
|
||||
poetry run python manage.py migrate
|
||||
|
||||
# Not setup yet
|
||||
#deploy: build
|
||||
# poetry publish -r focus
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue