Skip to content

Commit a40d89b

Browse files
authored
Merge pull request #90 from cybertec-postgresql/replace-psycopg2
Replace psycopg2-binary, bump versions - PostgreSQL (fixed a CVE and a subsequent regression) - etcd - Patroni - Python
2 parents b7d5e05 + cd943de commit a40d89b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

env.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
$MD = "PES"
22
$VCREDIST_REF = "https://aka.ms/vs/17/release/vc_redist.x64.exe"
3-
$ETCD_REF = "https://github.com/etcd-io/etcd/releases/download/v3.5.17/etcd-v3.5.17-windows-amd64.zip"
4-
$PATRONI_REF = "https://github.com/patroni/patroni/archive/refs/tags/v4.0.4.zip"
3+
$ETCD_REF = "https://github.com/etcd-io/etcd/releases/download/v3.5.18/etcd-v3.5.18-windows-amd64.zip"
4+
$PATRONI_REF = "https://github.com/patroni/patroni/archive/refs/tags/v4.0.5.zip"
55
$MICRO_REF = "https://github.com/zyedidia/micro/releases/download/v2.0.14/micro-2.0.14-win64.zip"
66
$WINSW_REF = "https://github.com/winsw/winsw/releases/download/v2.12.0/WinSW.NET461.exe"
77
$VIP_REF = "https://github.com/cybertec-postgresql/vip-manager/releases/download/v3.0.0/vip-manager_3.0.0_Windows_x86_64.zip"
8-
$PGSQL_REF = "https://get.enterprisedb.com/postgresql/postgresql-17.2-1-windows-x64-binaries.zip"
9-
$PYTHON_REF = "https://www.python.org/ftp/python/3.13.1/python-3.13.1-amd64.exe"
8+
$PGSQL_REF = "https://get.enterprisedb.com/postgresql/postgresql-17.4-1-windows-x64-binaries.zip"
9+
$PYTHON_REF = "https://www.python.org/ftp/python/3.13.2/python-3.13.2-amd64.exe"
1010
# one should change python version in github action workflows when changed here
1111

1212
$SEVENZIP = "C:\Program Files\7-Zip\7z.exe"
1313

1414
$INNOTOOL = "C:\Program Files (x86)\Inno Setup 6"
1515
$ISCC = Join-Path $INNOTOOL "iscc.exe"
16-
$ISSFile = "installer\patroni.iss"
16+
$ISSFile = "installer\patroni.iss"

make.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function Get-PatroniPackages {
102102
Write-Host "`n--- Download PATRONI packages ---" -ForegroundColor blue
103103
Set-Location "$MD\patroni"
104104
& $PIP download -r requirements.txt -d .patroni-packages
105-
& $PIP download pip pip_install setuptools wheel cdiff psycopg2-binary -d .patroni-packages
105+
& $PIP download pip pip_install setuptools wheel cdiff psycopg-binary -d .patroni-packages
106106
Set-Location -Path "..\.."
107107
Write-Host "`n--- PATRONI packages downloaded ---" -ForegroundColor green
108108
}
@@ -144,4 +144,4 @@ Update-PythonAndPIP
144144
Get-PatroniPackages
145145
Get-WinSW
146146
Export-Assets
147-
Write-Host "`n--- PACKAGING FINISHED ---" -ForegroundColor green
147+
Write-Host "`n--- PACKAGING FINISHED ---" -ForegroundColor green

src/install.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Write-Host "--- Python runtime installed ---`n" -ForegroundColor green
2121

2222
Write-Host "--- Installing Patroni packages ---" -ForegroundColor blue
2323
pip3.exe install --no-index --find-links .patroni-packages -r requirements.txt
24-
pip3.exe install --no-index --find-links .patroni-packages psycopg2-binary
24+
pip3.exe install --no-index --find-links .patroni-packages psycopg-binary
2525
pip3.exe install --no-index --find-links .patroni-packages cdiff
2626
Set-Location '..'
2727
Write-Host "--- Patroni packages installed ---`n" -ForegroundColor green
@@ -74,4 +74,4 @@ netsh advfirewall firewall add rule name="postgresql" dir=in action=allow progra
7474
netsh advfirewall firewall add rule name="python" dir=in action=allow program="$python" enable=yes
7575
Write-Host "--- Firewall rules sucessfully installed ---" -ForegroundColor green
7676

77-
Write-Host "--- Installation sucessfully finished ---" -ForegroundColor green
77+
Write-Host "--- Installation sucessfully finished ---" -ForegroundColor green

0 commit comments

Comments
 (0)