Add .gitignore and update-version script
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
__pycache__
|
||||
/*.egg*
|
||||
/build
|
||||
/dist
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
set -o pipefail
|
||||
|
||||
readonly VERSION=${1:?}
|
||||
|
||||
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
|
||||
sed -i "s/^\(__version__ = \"\).*\(\"\)/\1$VERSION\2/w /dev/stdout" hddfancontrol/__init__.py
|
||||
|
||||
git add hddfancontrol/__init__.py
|
||||
|
||||
git commit -m "Version ${VERSION}"
|
||||
|
||||
git tag -m "Version ${VERSION}" ${VERSION}
|
||||
Reference in New Issue
Block a user