Skip to content

Commit f6e2adf

Browse files
python2 fixups for dist_name passing
1 parent 212090f commit f6e2adf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/setuptools_scm/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ def from_file(cls, name="pyproject.toml", dist_name=None):
137137
with open(name) as strm:
138138
defn = __import__("toml").load(strm)
139139
section = defn.get("tool", {})["setuptools_scm"]
140-
return cls(**section, dist_name=dist_name)
140+
return cls(dist_name=dist_name, **section)

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ skip_install=
2828
deps=
2929
pytest
3030
setuptools >= 42
31+
toml
3132
commands=
3233
test: pytest []
3334
selfcheck: python setup.py --version

0 commit comments

Comments
 (0)