Skip to content

Commit

Permalink
Replace Makefile
Browse files Browse the repository at this point in the history
Modernizing some of our tooling.
  • Loading branch information
ross-spencer committed Sep 30, 2024
1 parent 3ea2029 commit 2607961
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 48 deletions.
1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ ignore-patterns=
^(.+).svg,
^(.+).env,
^\.,
^justfile$,

ignore-paths=
requirements/.,
Expand Down
48 changes: 0 additions & 48 deletions Makefile

This file was deleted.

57 changes: 57 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Get help
help:
just -l

## Package repository as tar for easy distribution
tar-source: package-deps
rm -rf tar-src/
mkdir tar-src/
git-archive-all --prefix simplep-sign/ tar-src/simple_sign-v0.0.0.tar.gz

## Upgrade dependencies for packaging
package-deps:
python3 -m pip install -U twine wheel build git-archive-all

## Package the source code
package-source: package-deps clean
python -m build .

## Check the distribution is valid
package-check: clean package-source
twine check dist/*

## Upload package to test.pypi
package-upload-test: clean package-deps package-check
twine upload dist/* --repository-url https://test.pypi.org/legacy/ --verbose

## Upload package to pypi
package-upload: clean package-deps package-check
twine upload dist/* --repository-url https://upload.pypi.org/legacy/ --verbose

# Package
package: package-upload

## Run pre-commit-checks.
pre-commit-checks:
pre-commit run --all-files

## Upgrade project dependencies
upgrade:
pip-upgrade

## Generate documentation
docs:
pdoc3 --force --html -o docs src/
mv docs/src/* docs/.
rm -r docs/src

## Serve the documentation
serve-docs:
python3 -m http.server --directory docs/

## Clean the package directory
clean:
rm -rf src/*.egg-info/
rm -rf build/
rm -rf dist/
rm -rf tar-src/

0 comments on commit 2607961

Please sign in to comment.