Skip to content

Commit 04e7015

Browse files
Merge pull request #42 from memgraph/MG-prepare-release-1.3.0
Prepare release 1.3.0
2 parents f1769a4 + 8919181 commit 04e7015

File tree

6 files changed

+57
-27
lines changed

6 files changed

+57
-27
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
run: python3 -c "import mgclient"
9191

9292
build_windows_and_test:
93-
runs-on: windows-latest
93+
runs-on: windows-2019
9494
strategy:
9595
matrix:
9696
arch:
@@ -159,8 +159,8 @@ jobs:
159159
- '3.7'
160160
- '3.10'
161161
include:
162-
- {platform: [macOS-11.6, ARM64, self-hosted], python_version: '3.8'}
163162
- {platform: [macOS-11.6, ARM64, self-hosted], python_version: '3.10'}
163+
- {platform: [macOS-11.6, ARM64, self-hosted], python_version: '3.8'}
164164
runs-on: ${{ matrix.platform }}
165165
steps:
166166
- uses: actions/checkout@v2
@@ -174,7 +174,7 @@ jobs:
174174
run: brew install openssl@3
175175
- name: Make used python version default
176176
run: |
177-
brew link --force --overwrite python@${{ matrix.python_version }}
177+
brew unlink python@3 && brew link python@${{ matrix.python_version }}
178178
python3 --version
179179
- name: Install pytest and pyopenssl
180180
run: python3 -m pip install pyopenssl pytest
@@ -184,13 +184,13 @@ jobs:
184184
run: python3 -m pip install -f dist --no-index pymgclient
185185
- name: Import mgclient to validate installation
186186
run: python3 -c "import mgclient"
187-
- name: Save artifact name on not ARM64 machines
187+
- name: Save artifact name on x86 machines
188188
if: ${{ !contains(matrix.platform, 'ARM64') }}
189189
run: echo "OS_TYPE=${{ matrix.platform }}" >> $GITHUB_ENV
190-
- name: Save artifact name on ARM64 machine
190+
- name: Save artifact name on ARM64 machines
191191
if: ${{ contains(matrix.platform, 'ARM64') }}
192192
# Convert macOS-11.6-ARM64 to macos-11.6-arm64 to be consistent with full lowercase naming
193-
run: echo "OS_TYPE=${{ matrix.platform[0] }}-${{ matrix.platform[1] }}" | tr '[:upper:]' '[:lower:]' >> $GITHUB_ENV
193+
run: echo OS_TYPE=`echo "${{ matrix.platform[0] }}-${{ matrix.platform[1] }}" | tr "[:upper:]" "[:lower:]"` >> $GITHUB_ENV
194194
- name: Save wheel package
195195
uses: actions/upload-artifact@v2
196196
with:

.github/workflows/release.yml

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ on:
1010
description: 'If set to true, then the documentation will be published.'
1111
default: 'false'
1212
required: false
13-
openssl_version:
14-
description: 'The expected version of OpenSSL.'
13+
openssl_1_version:
14+
description: 'The expected version of OpenSSL 1, e.g.: 1.1.1o.'
15+
required: true
16+
type: string
17+
openssl_3_version:
18+
description: 'The expected version of OpenSSL 3, e.g.: 3.0.3.'
1519
required: true
1620
type: string
1721

@@ -65,7 +69,7 @@ jobs:
6569
publish_dir: ./docs/build/html
6670

6771
build_windows_and_test:
68-
runs-on: windows-latest
72+
runs-on: windows-2019
6973
strategy:
7074
matrix:
7175
arch:
@@ -104,7 +108,7 @@ jobs:
104108
- name: Check version
105109
shell: msys2 {0}
106110
run: |
107-
[ `openssl version -v | cut -d ' ' -f 2` == "${{ github.event.inputs.openssl_version }}" ]
111+
[ `openssl version -v | cut -d ' ' -f 2` == "${{ github.event.inputs.openssl_1_version }}" ]
108112
- uses: Vampire/setup-wsl@v1
109113
with:
110114
distribution: Ubuntu-18.04
@@ -146,26 +150,38 @@ jobs:
146150
- '3.9'
147151
- '3.10'
148152
include:
149-
- {platform: [macos-11.6, arm64], python_version: '3.10'}
153+
- {platform: [macOS-11.6, ARM64, self-hosted], python_version: '3.10'}
154+
- {platform: [macOS-11.6, ARM64, self-hosted], python_version: '3.9'}
155+
- {platform: [macOS-11.6, ARM64, self-hosted], python_version: '3.8'}
150156
runs-on: ${{ matrix.platform }}
151157
steps:
152158
- uses: actions/checkout@v2
153159
with:
154160
submodules: true
155-
- name: Install python and OpenSSL
161+
- name: Install python
156162
run: |
157163
brew update
158-
brew install python@${{ matrix.python_version }} [email protected]
159-
brew upgrade [email protected]
160-
- name: Print OpenSSL version
164+
brew install python@${{ matrix.python_version }}
165+
- name: Manage OpenSSL 1 on x86 machines
166+
if: ${{ !contains(matrix.platform, 'ARM64') }}
161167
run: |
168+
brew uninstall -f openssl@3
169+
brew install [email protected]
170+
brew upgrade [email protected]
171+
brew link --force --overwrite [email protected]
162172
openssl version -a
163-
- name: Check version
173+
[ `openssl version -v | cut -d ' ' -f 2` == "${{ github.event.inputs.openssl_1_version }}" ]
174+
- name: Manage OpenSSL 3 on ARM machines
175+
if: ${{ contains(matrix.platform, 'ARM64') }}
164176
run: |
165-
[ `openssl version -v | cut -d ' ' -f 2` == "${{ github.event.inputs.openssl_version }}" ]
177+
brew install openssl@3
178+
brew upgrade openssl@3
179+
brew link --force --overwrite openssl@3
180+
openssl version -a
181+
[ `openssl version -v | cut -d ' ' -f 2` == "${{ github.event.inputs.openssl_3_version }}" ]
166182
- name: Make used python version default
167183
run: |
168-
brew link --force --overwrite python@${{ matrix.python_version }}
184+
brew unlink python@3 && brew link python@${{ matrix.python_version }}
169185
python3 --version
170186
- name: Install pytest and pyopenssl
171187
run: python3 -m pip install pyopenssl pytest
@@ -175,12 +191,13 @@ jobs:
175191
run: python3 -m pip install -f dist --no-index pymgclient
176192
- name: Import mgclient to validate installation
177193
run: python3 -c "import mgclient"
178-
- name: Save artifact name on not ARM64 machines
179-
if: ${{ startsWith(matrix.platform, 'macos') }}
194+
- name: Save artifact name on x86 machines
195+
if: ${{ !contains(matrix.platform, 'ARM64') }}
180196
run: echo "OS_TYPE=${{ matrix.platform }}" >> $GITHUB_ENV
181-
- name: Save artifact name on ARM64 machine
182-
if: ${{ !startsWith(matrix.platform, 'macos') }}
183-
run: echo "OS_TYPE=${{ matrix.platform[0] }}-${{ matrix.platform[1] }}" >> $GITHUB_ENV
197+
- name: Save artifact name on ARM64 machines
198+
if: ${{ contains(matrix.platform, 'ARM64') }}
199+
# Convert macOS-11.6-ARM64 to macos-11.6-arm64 to be consistent with full lowercase naming
200+
run: echo OS_TYPE=`echo "${{ matrix.platform[0] }}-${{ matrix.platform[1] }}" | tr "[:upper:]" "[:lower:]"` >> $GITHUB_ENV
184201
- name: Save wheel package
185202
uses: actions/upload-artifact@v2
186203
with:

CHANGELOG.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22
Changelog
33
=========
44

5+
######
6+
1.3.0
7+
######
8+
9+
10+
******************************
11+
Major Feature and Improvements
12+
******************************
13+
14+
* mgclient has been updated to 1.4.0
15+
* Support for OpenSSL 3
16+
* Use OpenSSL 1.1.1o and 3.0.3 versions for binary packages
17+
518
######
619
1.2.1
720
######

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
author = "Memgraph Ltd."
2424

2525
# The full version, including alpha/beta/rc tags
26-
release = "1.2.1"
26+
release = "1.3.0"
2727

2828

2929
# -- General configuration ---------------------------------------------------

docs/source/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ build it from you will need:
7878
* Preqrequisites of `mgclient`_:
7979

8080
* CMake 3.8 or newer
81-
* OpenSSL 1.0.2 or newer (but not OpenSSL 3.0) and its header files
81+
* OpenSSL 1.0.2 or newer (including OpenSSL 3.0.0+) and its header files
8282

8383
Building on Linux
8484
*****************
@@ -119,7 +119,7 @@ To install the C/C++ compiler, run::
119119

120120
The rest of the build prerequisites can be installed easily via `brew`_::
121121

122-
$ brew install python3 openssl@1.1 cmake
122+
$ brew install python3 openssl cmake
123123

124124
It is important to mention that on M1/ARM machines pymgclient cannot be built
125125
with the default installed Python version, thus Python needs to be installed via

setup.py

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

5555
static_openssl = parser.getboolean("build_ext", "static_openssl", fallback=False)
5656

57-
version = os.getenv("PYMGCLIENT_OVERRIDE_VERSION", "1.2.1")
57+
version = os.getenv("PYMGCLIENT_OVERRIDE_VERSION", "1.3.0")
5858

5959

6060
def list_all_files_in_dir(path):

0 commit comments

Comments
 (0)