mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-08-06 16:23:00 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
074db68a1b | ||
|
|
3cd5c1290d | ||
|
|
66a636e994 |
@@ -1,3 +1,7 @@
|
|||||||
|
2.0.1
|
||||||
|
* #1057: Fix argument parsing to avoid using Python 3.12+ string features. Now borgmatic will
|
||||||
|
work with Python 3.9, 3.10, and 3.11 again.
|
||||||
|
|
||||||
2.0.0
|
2.0.0
|
||||||
* TL;DR: More flexible, completely revamped command hooks. All configuration options settable on
|
* TL;DR: More flexible, completely revamped command hooks. All configuration options settable on
|
||||||
the command-line. New configuration options for many command-line flags (including verbosity!).
|
the command-line. New configuration options for many command-line flags (including verbosity!).
|
||||||
|
|||||||
@@ -357,7 +357,7 @@ def add_array_element_arguments(arguments_group, unparsed_arguments, flag_name):
|
|||||||
if '[0]' not in flag_name or not unparsed_arguments or '--help' in unparsed_arguments:
|
if '[0]' not in flag_name or not unparsed_arguments or '--help' in unparsed_arguments:
|
||||||
return
|
return
|
||||||
|
|
||||||
pattern = re.compile(fr'^--{flag_name.replace("[0]", r"\[\d+\]").replace(".", r"\.")}$')
|
pattern = re.compile('^--' + flag_name.replace('[0]', r'\[\d+\]').replace('.', r'\.') + '$')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Find an existing list index flag (and its action) corresponding to the given flag name.
|
# Find an existing list index flag (and its action) corresponding to the given flag name.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "borgmatic"
|
name = "borgmatic"
|
||||||
version = "2.0.0"
|
version = "2.0.1"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Dan Helfman", email="witten@torsion.org" },
|
{ name="Dan Helfman", email="witten@torsion.org" },
|
||||||
]
|
]
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@ twine upload -r pypi --username __token__ dist/borgmatic-*-py3-none-any.whl
|
|||||||
|
|
||||||
# Set release changelogs on projects.torsion.org and GitHub.
|
# Set release changelogs on projects.torsion.org and GitHub.
|
||||||
release_changelog="$(cat NEWS | sed '/^$/q' | grep -v '^\S')"
|
release_changelog="$(cat NEWS | sed '/^$/q' | grep -v '^\S')"
|
||||||
escaped_release_changelog="$(echo "$release_changelog" | sed -z 's/\n/\\n/g' | sed -z 's/\"/\\"/g')"
|
escaped_release_changelog="$(echo "$release_changelog" | sed -z 's/\n/\\n/g' | sed -z 's/\"/\\"/g' | sed -z 's/\*/\\*/g')"
|
||||||
curl --silent --request POST \
|
curl --silent --request POST \
|
||||||
"https://projects.torsion.org/api/v1/repos/borgmatic-collective/borgmatic/releases" \
|
"https://projects.torsion.org/api/v1/repos/borgmatic-collective/borgmatic/releases" \
|
||||||
--header "Authorization: token $projects_token" \
|
--header "Authorization: token $projects_token" \
|
||||||
|
|||||||
Reference in New Issue
Block a user