Skip to content

Commit a3bd5ea

Browse files
committed
Release v2.0rc1
1 parent dd8f43b commit a3bd5ea

File tree

4 files changed

+7
-22
lines changed

4 files changed

+7
-22
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# v2.0.dev1
1+
# v2.0rc1
22

33
The first `2.x` release! Like v0 -> v1 this release mostly removes legacy APIs and methods which show warnings in v1. Major changes:
44

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
pyinfra Documentation
77
=========================
88

9-
Welcome to the ``pyinfra`` v1 documentation. If you're new to ``pyinfra`` you should start with the :doc:`getting started <./getting_started>` page.
9+
Welcome to the ``pyinfra`` v2 documentation. If you're new to ``pyinfra`` you should start with the :doc:`getting started <./getting_started>` page.
1010

1111

1212
Using pyinfra

scripts/release.sh

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,14 @@ set -euo pipefail
55
VERSION=`python setup.py --version`
66
MAJOR_BRANCH="`python setup.py --version | cut -d'.' -f1`.x"
77

8-
IS_DEV=false
9-
if [[ `python setup.py --version` =~ "dev" ]]; then
10-
IS_DEV=true
11-
fi
12-
13-
echo "# Releasing pyinfra v${VERSION} (branch ${MAJOR_BRANCH}, dev=${IS_DEV})"
8+
echo "# Releasing pyinfra v${VERSION} (branch ${MAJOR_BRANCH})"
149

1510
echo "# Running tests..."
1611
pytest
1712

18-
if [[ "${IS_DEV}" == "false" ]]; then
19-
echo "# Git tag & push..."
20-
git tag -a "v$VERSION" -m "v$VERSION"
21-
git push --tags
22-
23-
echo "Git update major branch..."
24-
git checkout $MAJOR_BRANCH
25-
git merge current
26-
git push
27-
git checkout current
28-
else
29-
echo "Skipping major branch due to dev release"
30-
fi
13+
echo "# Git tag & push..."
14+
git tag -a "v$VERSION" -m "v$VERSION"
15+
git push --tags
3116

3217
echo "Clear existing build/dist..."
3318
rm -rf build/* dist/*

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
def get_version_from_changelog():
7575
# Regex matching pattern followed by 3 numerical values separated by '.'
76-
pattern = re.compile(r'^# v(?P<version>[0-9]+\.[0-9]+(\.[0-9]+)?(\.[a-z0-9]+)?)$')
76+
pattern = re.compile(r'^# v(?P<version>[0-9]+\.[0-9]+(\.[0-9]+)?(\.?[a-z0-9]+)?)$')
7777

7878
with open('CHANGELOG.md', 'r') as fn:
7979
for line in fn.readlines():

0 commit comments

Comments
 (0)