Skip to content

Commit

Permalink
add makefile for common tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
luto committed Dec 17, 2023
1 parent fa96a99 commit 6726980
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 6 deletions.
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
setup:
pip install -r requirements.txt

test:
py.test

build:
rm -f dist/*
python -m build

clean:
pip uninstall django-aetos -y
rm -f dist/*

install:
pip install dist/*.whl

uninstall:
pip uninstall django-aetos -y

install-dev:
pip install -e .

upload-test:
python3 -m twine upload --repository testpypi dist/*.tar.gz dist/*.whl

upload:
python3 -m twine upload dist/*.tar.gz dist/*.whl
19 changes: 13 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,22 @@ Dev Setup
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt -e .
pre-commit install --install-hooks
make setup
make install-dev
Testing
---------

.. code-block::
make test
Packaging
---------

.. code-block::
mkdir -p dist
rm -f dist/*
python3 -m build
python3 -m twine upload --repository testpypi dist/*.tar.gz dist/*.whl
make build
make upload-test
once the package looks good, run `make upload`.

0 comments on commit 6726980

Please sign in to comment.