Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Commit

Permalink
build: release scripts
Browse files Browse the repository at this point in the history
use commitizen and add a build and a bump-version scripts
for ci
  • Loading branch information
nlm-pro committed Apr 5, 2020
1 parent 95af660 commit f0e2fc6
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .cz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.3.2"
tag_format = "v$version"
version_files = [
"VERSION"
]
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
panflute==1.12.5
comment_parser==1.1.6
twine==3.1.1
wheel==0.34.2
commitizen==1.17.1
7 changes: 7 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set +x
set -e

python setup.py sdist bdist_wheel
twine check dist/*
9 changes: 9 additions & 0 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set +x

if cz bump; then
git push --follow-tags
else
echo "no new version to release"
fi

0 comments on commit f0e2fc6

Please sign in to comment.