Skip to content

Commit 6e4e44b

Browse files
committed
Revert "chore: check for latest version of urllib3 (#250)"
This reverts commit c22795b.
1 parent dc3bc6f commit 6e4e44b

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

lib/repo_funcs.sh

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,6 @@ fetch_postgres_image_version() {
2929
head -n1
3030
}
3131

32-
# Get the latest urllib3 version
33-
latest_urllib3_version=
34-
_raw_get_latest_urllib3_version() {
35-
curl -s https://pypi.org/pypi/urllib3/json | jq -r '.releases | keys[]' | sort -Vr | head -n1
36-
}
37-
get_latest_urllib3_version() {
38-
if [ -z "$latest_urllib3_version" ]; then
39-
latest_urllib3_version=$(_raw_get_latest_urllib3_version)
40-
fi
41-
echo "$latest_urllib3_version"
42-
}
43-
4432
# Get the latest Barman version
4533
latest_barman_version=
4634
_raw_get_latest_barman_version() {
@@ -178,14 +166,12 @@ generate_postgres() {
178166

179167
update_requirements() {
180168
barmanVersion=$(get_latest_barman_version)
181-
urllib3=$(get_latest_urllib3_version)
182-
183169
# If there's a new version we need to recreate the requirements files
184-
echo -e "barman[cloud,azure,snappy,google,zstandard,lz4] == $barmanVersion\nurllib3 == $urllib3" > requirements.in
170+
echo "barman[cloud,azure,snappy,google,zstandard,lz4] == $barmanVersion" > requirements.in
185171

186172
# This will take the requirements.in file and generate a file
187173
# requirements.txt with the hashes for the required packages
188-
pip-compile -U --allow-unsafe --generate-hashes --output-file=requirements.txt --strip-extras requirements.in 2> /dev/null
174+
pip-compile -U --generate-hashes 2> /dev/null
189175

190176
# Removes psycopg from the list of packages to install
191177
sed -i '/psycopg/{:a;N;/barman/!ba};/via barman/d' requirements.txt

0 commit comments

Comments
 (0)