06d3e1a208
* Remove casting to list in _get_form_data * Use cache for most fields and admin form for m2m files * MR comments/clean up * Cache should obey exclude and fields * Some more tests and docs * Only use cache for image files * Even more tests and handle save as new * fix test * More tests * minor refactor * Improve test coverage * Add no cover for some places * V0.2.3.dev7 * Adding tests for fieldsets * Added cache timeout * Added another test for an edge case * Fix issue with ManagementForm tampered with * Update cache to only set when form is_multipart * Even more testing changes * Update based on comments on MR and clean up a bit * make test names better Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
35 lines
960 B
Makefile
35 lines
960 B
Makefile
run:
|
|
./tests/manage.py runserver
|
|
|
|
test:
|
|
coverage run --source admin_confirm --branch -m pytest
|
|
coverage report -m
|
|
|
|
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
|
|
|
|
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}
|