Skip to content

Commit 7f2cff7

Browse files
committed
Update differences docs page
1 parent f0a88dc commit 7f2cff7

File tree

2 files changed

+5
-25
lines changed

2 files changed

+5
-25
lines changed

docs/differences.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Python version support
111111
+------------------------------------+------------------+------------+------------------+--------------+
112112
| Package | Python 3 support | Type hints | Python 2 support | PyPy support |
113113
+====================================+==================+============+==================+==============+
114-
| setuptools-git-versioning | 3.5+ | yes | deprecated | yes |
114+
| setuptools-git-versioning | 3.7+ | yes | no | yes |
115115
+------------------------------------+------------------+------------+------------------+--------------+
116116
| setuptools-scm | 3.6+ | yes | no | unknown |
117117
+------------------------------------+------------------+------------+------------------+--------------+

setuptools_git_versioning.py

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,7 @@ def load_tag_formatter(
272272
tag_formatter: str | Callable[[str], str],
273273
package_name: str | None = None,
274274
) -> Callable:
275-
log.warning(
276-
"Parsing tag_formatter {tag_formatter} with type {type}".format(
277-
tag_formatter=tag_formatter,
278-
type=type(tag_formatter),
279-
)
280-
)
275+
log.warning(f"Parsing tag_formatter {tag_formatter} with type {type(tag_formatter)}")
281276

282277
if callable(tag_formatter):
283278
return tag_formatter
@@ -295,12 +290,7 @@ def formatter(tag):
295290
if match:
296291
return match.group("tag")
297292

298-
raise ValueError(
299-
"tag name {name} does not match regexp '{regexp}'".format(
300-
name=tag,
301-
regexp=tag_formatter,
302-
)
303-
)
293+
raise ValueError(f"Tag name {tag} does not match regexp '{tag_formatter}'")
304294

305295
return formatter
306296
except re.error as e:
@@ -336,12 +326,7 @@ def formatter(branch):
336326
if match:
337327
return match.group("branch")
338328

339-
raise ValueError(
340-
"Branch name {name} does not match regexp '{regexp}'".format(
341-
name=branch,
342-
regexp=branch_formatter,
343-
)
344-
)
329+
raise ValueError(f"Branch name {branch} does not match regexp '{branch_formatter}'")
345330

346331
return formatter
347332
except re.error as e:
@@ -355,12 +340,7 @@ def get_version_from_callback(
355340
version_callback: str | Callable[[], str],
356341
package_name: str | None = None,
357342
) -> str:
358-
log.warning(
359-
"Parsing version_callback {version_callback} with type {type}".format(
360-
version_callback=version_callback,
361-
type=type(version_callback),
362-
)
363-
)
343+
log.warning(f"Parsing version_callback {version_callback} with type {type(version_callback)}")
364344

365345
if callable(version_callback):
366346
return version_callback()

0 commit comments

Comments
 (0)