node.js
andnpm
(task runner and some tasks make use of JS ecosystem)npm i -g maid
or just run withnpx maid
To run any of the tasks listed below (the headers), run maid <task>
.
You can also see a list of the tasks and their descriptions with maid help
.
Install dependencies with poetry
poetry install;
Runs tests with pytest-django
and outputs coverage
poetry run pytest tests/test_project/;
Cleans distribution directories
rm -rf build/ dist/ *.egg-info;
Builds a source distribution and binary wheel
We use setup.py
for releases as poetry
does not yet fully support all the configuration we make use of.
python setup.py sdist bdist_wheel;
Uploads a release to test PyPI.
Internal use only (see publish:test
for external usage).
twine upload --repository-url https://test.pypi.org/legacy/ dist/*;
Uploads a release to production PyPI.
Internal use only (see publish:prod
for external usage).
twine upload dist/*;
clean:dist
-> build:dist
-> __release:test
Run tasks clean:dist
, build:dist
, __release:test
clean:dist
-> build:dist
-> __release:prod
Run tasks clean:dist
, build:dist
, __release:prod
Creates a changelog from the current tag to the previous tag
# changelog-maker only gets name from package.json, so do a replace
npx @agilgur5/changelog-maker | sed 's_nodejs/node_agilgur5/django-serializable-model_';