This repository has been archived by the owner on May 28, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
95 additions
and
87 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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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,33 +1,37 @@ | ||
#!/usr/bin/env sh | ||
#-*- encoding: utf-8; mode: sh; grammar-ext: sh -*- | ||
# -*- encoding: utf-8; grammar-ext: sh; mode: shell-script -*- | ||
|
||
#========================================================================= | ||
# ======================================================================== | ||
# Copyright and other protections apply. Please see the accompanying | ||
# ``LICENSE`` and ``CREDITS`` files for rights and restrictions governing | ||
# use of this software. All rights not expressly waived or licensed are | ||
# reserved. If those files are missing or appear to be modified from their | ||
# originals, then please contact the author before viewing or using this | ||
# software in any capacity. | ||
#========================================================================= | ||
# ======================================================================== | ||
|
||
_REPO_DIR="$( cd "$( dirname "${0}" )" && pwd )/.." | ||
set -ex | ||
[ -d "${_REPO_DIR}" ] | ||
[ "${_REPO_DIR}/helpers/release.sh" -ef "${0}" ] | ||
cd "${_REPO_DIR}" | ||
|
||
if [ "${#}" -ne 3 ] ; then | ||
echo 1>&2 "usage: $( basename "${0}" ) MAJOR MINOR PATCH" | ||
|
||
exit 1 | ||
fi | ||
|
||
_MY_DIR="$( cd "$( dirname "${0}" )" && pwd )" | ||
_PKG='dimgx' | ||
PKG="$( python -c 'import setup ; print(setup.SETUP_ARGS["name"])' )" | ||
MAJOR="${1}" | ||
MINOR="${2}" | ||
PATCH="${3}" | ||
VERS="${MAJOR}.${MINOR}.${PATCH}" | ||
TAG="v${VERS}" | ||
|
||
set -ex | ||
cd "${_MY_DIR}" | ||
git checkout -b "${VERS}-release" | ||
perl -pi -e 's{^__version__\s*=\s*\(\s*0,\s*0,\s*0\s*\)$}{__version__ = ( '"${MAJOR}"', '"${MINOR}"', '"${PATCH}"' )}g ;' "_${_PKG}/version.py" | ||
perl -pi -e 's{master}{'"${TAG}"'}g ; s{pypi/([^/]+/)'"${_PKG}"'(\.svg)?$}{pypi/\1'"${_PKG}"'/'"${VERS}"'\2}g' README.rst | ||
perl -pi -e 's{^__version__\s*=\s*\(\s*0,\s*0,\s*0\s*\)$}{__version__ = ( '"${MAJOR}"', '"${MINOR}"', '"${PATCH}"' )}g ;' "${PKG}/version.py" | ||
perl -pi -e 's{master}{'"${TAG}"'}g ; s{pypi/([^/]+/)'"${PKG}"'(\.svg)?$}{pypi/\1'"${PKG}"'/'"${VERS}"'\2}g' README.rst | ||
git commit --all --message "Update version and release ${TAG}." | ||
git tag --sign --force --message "Release ${TAG}." "${TAG}" |
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
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 +0,0 @@ | ||
pytest | ||
Oops, something went wrong.