forked from TrangPham/django-admin-confirm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (36 loc) · 1.32 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
run:
./tests/manage.py runserver
test:
coverage run --source admin_confirm --branch -m pytest --ignore=admin_confirm/tests/integration
coverage report -m
test-all:
coverage run --source admin_confirm --branch -m pytest
coverage report -m
t:
python -m pytest --last-failed -x
test-integration:
coverage run --source admin_confirm --branch -m pytest --ignore=admin_confirm/tests/unit
docker-exec:
docker-compose -f docker-compose.dev.yml exec -T web ${COMMAND}
check-readme:
python -m readme_renderer README.md -o /tmp/README.html
migrate:
./tests/manage.py makemigrations
./tests/manage.py migrate
shell:
./tests/manage.py shell
dbshell:
./tests/manage.py dbshell
package:
python3 setup.py sdist bdist_wheel
upload-testpypi:
python3 -m twine upload --repository testpypi dist/django_admin_confirm-$(VERSION)-*
i-have-tested-with-testpypi-and-am-ready-to-release:
python3 -m twine upload --repository pypi dist/django_admin_confirm-$(VERSION)-*
install-testpypi:
pip uninstall django_admin_confirm
python -m pip install --index-url https://test.pypi.org/simple/ django_admin_confirm==${VERSION}
testpypi:
python3 -m twine upload --repository testpypi dist/django_admin_confirm-$(VERSION)*
pip uninstall django_admin_confirm
python -m pip install --index-url https://test.pypi.org/simple/ django_admin_confirm==${VERSION}