-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2301 from liberapay/aws-upgrade
The Liberapay webapp is now running on Python 3.11. This enables dropping support for older versions (3.8 to 3.10). It also enables using the new features that have been added in Python versions 3.9 to 3.11, but this branch attempt to do that. I've observed a slight increase of the median response time to HTTP requests, by about 2.5ms (10%). A bit disappointing, but not too bad.
- Loading branch information
Showing
7 changed files
with
19 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ | |
set -eux | ||
|
||
# Install libffi-devel for misaka, and htop for when I want to look at what's going on | ||
yum install -y libffi-devel htop | ||
dnf install -y libffi-devel htop | ||
# Install PostgreSQL client tools and libraries | ||
amazon-linux-extras install -y postgresql11 | ||
dnf install -y postgresql15 | ||
|
||
# Automatically set the PG* environment variables so that `psql` connects to the liberapay database by default | ||
install -m 644 -o root -g root -t /etc/profile.d .platform/files/pgenv.sh | ||
|
@@ -18,7 +18,7 @@ install -m 644 -o root -g root -t /etc/systemd/system .platform/files/[email protected] | |
systemctl daemon-reload | ||
|
||
# Install cloudflared, directly from GitHub | ||
target_cfd_version="2021.11.0" | ||
target_cfd_version="2023.10.0" | ||
function get_installed_cfd_version() { | ||
if [ -x /usr/local/bin/cloudflared ]; then | ||
/usr/local/bin/cloudflared version | \ | ||
|
@@ -34,7 +34,7 @@ if [ "$installed_cfd_version" != "$target_cfd_version" ]; then | |
fi | ||
wget "https://github.com/cloudflare/cloudflared/releases/download/$target_cfd_version/cloudflared-linux-amd64" | ||
hash=$(sha256sum cloudflared-linux-amd64 | cut -d' ' -f1) | ||
expected_hash=cce5bc7df0187e93291135d32d159b1acd86d9ca25c3e448b8bbeab2ce976b8e | ||
expected_hash=33e6876bd55c2db13a931cf812feb9cb17c071ab45d3b50c588642b022693cdc | ||
if [ $hash != $expected_hash ]; then | ||
echo "cloudflared binary downloaded from GitHub doesn't match expected hash: $hash != $expected_hash" | ||
exit 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[tox] | ||
envlist = py38,py311 | ||
envlist = py311,py312 | ||
skipsdist = True | ||
|
||
[testenv] | ||
|