Skip to content

Commit

Permalink
🔀 Merge pull request #5 from davep/deploying
Browse files Browse the repository at this point in the history
Add targets related to packaging
  • Loading branch information
davep authored Nov 24, 2024
2 parents c5dee80 + 92fa046 commit a23116d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,24 @@ stricttypecheck: # Perform a strict static type checks with mypy
.PHONY: checkall
checkall: codestyle lint stricttypecheck # Check all the things

##############################################################################
# Package/publish.
.PHONY: package
package: # Package the library
rye build

.PHONY: spackage
spackage: # Create a source package for the library
rye build --sdist

.PHONY: testdist
testdist: package # Perform a test distribution
rye publish --yes --skip-existing --repository testpypi --repository-url https://test.pypi.org/legacy/

.PHONY: dist
dist: package # Upload to pypi
rye publish --yes --skip-existing

##############################################################################
# Utility.
.PHONY: repl
Expand All @@ -63,6 +81,10 @@ pep8ify: # Reformat the code to be as PEP8 as possible.
.PHONY: tidy
tidy: delint pep8ify # Tidy up the code, fixing lint and format issues.

.PHONY: clean
clean: # Clean the build directories
rm -rf dist

.PHONY: help
help: # Display this help
@grep -Eh "^[a-z]+:.+# " $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.+# "}; {printf "%-20s %s\n", $$1, $$2}'
Expand Down

0 comments on commit a23116d

Please sign in to comment.