Skip to content

Commit

Permalink
release commands (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
crflynn authored Jun 3, 2020
1 parent 063866c commit e192a14
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ build:
poetry run python build.py clean
poetry run python build.py build_ext --inplace --force

.PHONY: clean
clean:
rm -rf build
rm -rf dist

.PHONY: copy
copy:
poetry run python buildpre.py
Expand Down Expand Up @@ -31,6 +36,14 @@ fmt:
poetry run isort -y
poetry run black .

.PHONY: publish
publish: clean sdist
poetry publish

.PHONY: release
release: clean sdist
ghr -u crflynn -r skranger -c $(shell git rev-parse HEAD) -delete -b "release" -n $(shell poetry version | tail -c +10) $(shell poetry version | tail -c +10) dist/*.tar.gz

.PHONY: sdist
sdist: copy
poetry build -f sdist
Expand Down

0 comments on commit e192a14

Please sign in to comment.