-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare repo releasing, add Makefile (#7)
* add cargo-release config & python metadata * add Makefile, continue releasing prep * final readme additions; add linting to CI workflow * fix mistake in CI workflow, improve 'make clean' target
- Loading branch information
Showing
7 changed files
with
84 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.PHONY: pydep | ||
pydep: | ||
pip install maturin~=0.13.0 pytest | ||
|
||
.PHONY: pylib | ||
pylib: | ||
maturin develop | ||
|
||
.PHONY: install | ||
install: pydep pylib | ||
|
||
.PHONY: test | ||
test: | ||
pytest . | ||
|
||
.PHONY: fmt | ||
fmt: | ||
cargo fmt | ||
|
||
.PHONY: lint | ||
lint: | ||
cargo fmt --all -- --check | ||
cargo clippy --all-targets -- -D warnings --no-deps | ||
|
||
.PHONY: clean | ||
clean: | ||
cargo clean | ||
find ./ -depth -type d -name '__pycache__' -prune -print -exec rm -rf {} + | ||
|
||
.PHONY: ci-ready | ||
ci-ready: fmt lint test | ||
|
||
.PHONY: ci-clean-check | ||
ci-clean-check: clean ci-ready | ||
|
||
.PHONY: release | ||
release: ci-clean-check | ||
cargo release --execute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
push = false | ||
tag = true | ||
sign-commit = true | ||
sign-tag = true | ||
pre-release-commit-message = "release {{version}} of {{crate_name}}" | ||
post-release-commit-message = "starting {{next_version}} of {{crate_name}}" | ||
pre-release-replacements = [ | ||
{file="pyproject.toml", search="version = \"[a-z0-9\\.-]+\"", replace="version=\"{{version}}\"", exactly=1}, | ||
] | ||
post-release-replacements = [ | ||
{file="pyproject.toml", search="version = \"[0-9\\.]+\"", replace="version=\"{{next_version}}\"", exactly=1}, | ||
] |