File tree Expand file tree Collapse file tree 4 files changed +7
-22
lines changed Expand file tree Collapse file tree 4 files changed +7
-22
lines changed Original file line number Diff line number Diff line change 1
- # v2.0.dev1
1
+ # v2.0rc1
2
2
3
3
The first ` 2.x ` release! Like v0 -> v1 this release mostly removes legacy APIs and methods which show warnings in v1. Major changes:
4
4
Original file line number Diff line number Diff line change 6
6
pyinfra Documentation
7
7
=========================
8
8
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.
10
10
11
11
12
12
Using pyinfra
Original file line number Diff line number Diff line change @@ -5,29 +5,14 @@ set -euo pipefail
5
5
VERSION=` python setup.py --version`
6
6
MAJOR_BRANCH=" ` python setup.py --version | cut -d' .' -f1` .x"
7
7
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} )"
14
9
15
10
echo " # Running tests..."
16
11
pytest
17
12
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
31
16
32
17
echo " Clear existing build/dist..."
33
18
rm -rf build/* dist/*
Original file line number Diff line number Diff line change 73
73
74
74
def get_version_from_changelog ():
75
75
# 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]+)?)$' )
77
77
78
78
with open ('CHANGELOG.md' , 'r' ) as fn :
79
79
for line in fn .readlines ():
You can’t perform that action at this time.
0 commit comments