Skip to content

Commit 681ed02

Browse files
committed
Bump version to v0.10.0 for release
1 parent 859bf7c commit 681ed02

4 files changed

Lines changed: 37 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## [v0.10.0](https://github.com/gagan3012/PolyDeDupe/releases/tag/v0.10.0) - 2023-11-27
11+
1012
## [v0.9.0](https://github.com/gagan3012/PolyDeDupe/releases/tag/v0.9.0) - 2023-11-27
1113

1214
## [v0.8.0](https://github.com/gagan3012/PolyDeDupe/releases/tag/v0.8.0) - 2023-11-27

PolyDeDupe/version.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
_MAJOR = "0"
2-
_MINOR = "9"
3-
# On main and in a nightly release the patch should be one ahead of the last
4-
# released build.
5-
_PATCH = "0"
6-
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
7-
# https://semver.org/#is-v123-a-semantic-version for the semantics.
8-
_SUFFIX = ""
9-
10-
V2 = _MINOR
11-
VERSION_SHORT = "{0}.{1}".format(_MAJOR, V2)
12-
VERSION = "{0}.{1}.{2}{3}".format(_MAJOR, V2, _PATCH, _SUFFIX)
1+
_MAJOR = "0"
2+
_MINOR = "10"
3+
# On main and in a nightly release the patch should be one ahead of the last
4+
# released build.
5+
_PATCH = "0"
6+
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
7+
# https://semver.org/#is-v123-a-semantic-version for the semantics.
8+
_SUFFIX = ""
9+
10+
V2 = _MINOR
11+
VERSION_SHORT = "{0}.{1}".format(_MAJOR, V2)
12+
VERSION = "{0}.{1}.{2}{3}".format(_MAJOR, V2, _PATCH, _SUFFIX)

scripts/release.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,22 @@
22

33
set -e
44

5+
echo "Let's create a new release!"
6+
7+
python scripts/upgrade_version.py
8+
59
TAG=$(python -c 'from PolyDeDupe.version import VERSION; print("v" + VERSION)')
610

711
read -p "Creating new release for $TAG. Do you want to continue? [Y/n] " prompt
812

913
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
1014
python scripts/prepare_changelog.py
11-
python scripts/release_notes.py
1215
git add -A
1316
git commit -m "Bump version to $TAG for release" || true && git push
1417
echo "Creating new git tag $TAG"
1518
git tag "$TAG" -m "$TAG"
1619
git push --tags
20+
python scripts/release_notes.py
1721
else
1822
echo "Cancelled"
1923
exit 1

scripts/upgrade_version.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Filename containing the version information
2+
filename = 'PolyDeDupe/version.py'
3+
4+
# Read the current version information
5+
with open(filename, 'r') as file:
6+
lines = file.readlines()
7+
8+
# Increment the minor version
9+
for i, line in enumerate(lines):
10+
if '_MINOR' in line:
11+
parts = line.split('=')
12+
minor_version = int(parts[1].strip().strip('"')) + 1
13+
lines[i] = '_MINOR = "{}"\n'.format(minor_version)
14+
break
15+
16+
# Write the updated version information back to the file
17+
with open(filename, 'w') as file:
18+
file.writelines(lines)

0 commit comments

Comments
 (0)