-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Automate package build process (#2)
- Loading branch information
Showing
6 changed files
with
196 additions
and
71 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
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,28 @@ | ||
.PHONY: setup-os | ||
setup-os: | ||
sudo apt install python-pip | ||
sudo pip install -U pip pipenv | ||
|
||
.PHONY: setup | ||
setup: | ||
pipenv --rm || true | ||
pipenv --python python3.7 | ||
pipenv install --dev | ||
|
||
.PHONY: test | ||
test: | ||
pipenv run pytest | ||
|
||
.PHONY: check | ||
check: | ||
pipenv run flake8 | ||
pipenv run safety check | ||
|
||
.PHONY: build | ||
build: | ||
rm -rf dist | ||
pipenv run python setup.py sdist bdist_wheel | ||
|
||
.PHONY: release | ||
release: build | ||
pipenv run twine upload dist/* || true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[pytest] | ||
addopts = -v -s --cov=google_cloud_logger --cov-report html:coverage --cov-report term --cov-report=xml:coverage/coverage.xml | ||
addopts = -v -s --cov=google_cloud_logger --cov-report html --cov-report term --cov-report=xml |
Oops, something went wrong.