mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-07-22 02:03:01 +02:00
Add a development script for upgrading pinned dependencies.
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eou pipefail
|
||||
|
||||
uv pip compile --quiet --upgrade --annotation-style line test_requirements.in -o test_requirements.txt
|
||||
uv pip compile --quiet --upgrade --annotation-style line binary_requirements.in -o binary_requirements.txt
|
||||
|
||||
# Carry forward certain packages with version ranges instead of absolute pins. This is because these
|
||||
# packages are a pain to compile, and pre-built wheels available on pypi may not be available for
|
||||
# pinned versions on particular platforms.
|
||||
while IFS= read -r package_line; do
|
||||
package_name=$(echo "$package_line" | cut -d ">" -f 1)
|
||||
sed -i "s/^$package_name==.*/$package_line/" test_requirements.txt
|
||||
done <<< $(grep ">" test_requirements.in)
|
||||
|
||||
sed -i "s/was autogenerated/was (mostly) autogenerated/" test_requirements.txt
|
||||
Reference in New Issue
Block a user