Skip to content

Commit d837d72

Browse files
authored
Pass all keyword/ arguments to avoid panics with setuptools_scm > 8 (#1702)
* use arg and kwargs * unpin setuptools scm
1 parent 063ea8a commit d837d72

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ install_requires =
4545
typing-extensions
4646
setup_requires =
4747
setuptools>=30.3.0
48-
setuptools_scm<8
48+
setuptools_scm
4949

5050
[options.extras_require]
5151
apm =

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818

1919
# Allows the fetching of tags even from shallow clones
2020
# https://github.com/pypa/setuptools_scm/pull/118#issuecomment-255381535
21-
def parse_fetch_on_shallow(root):
21+
def parse_fetch_on_shallow(*args, **kwargs):
2222
from setuptools_scm.git import parse, fetch_on_shallow
2323

24-
return parse(root, pre_parse=fetch_on_shallow)
24+
kwargs["pre_parse"] = fetch_on_shallow
25+
26+
return parse(*args, **kwargs)
2527

2628

2729
setup(

0 commit comments

Comments
 (0)