Skip to content

Commit

Permalink
python2 fixups for dist_name passing
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Dec 13, 2020
1 parent 212090f commit f6e2adf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/setuptools_scm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ def from_file(cls, name="pyproject.toml", dist_name=None):
with open(name) as strm:
defn = __import__("toml").load(strm)
section = defn.get("tool", {})["setuptools_scm"]
return cls(**section, dist_name=dist_name)
return cls(dist_name=dist_name, **section)
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ skip_install=
deps=
pytest
setuptools >= 42
toml
commands=
test: pytest []
selfcheck: python setup.py --version
Expand Down

0 comments on commit f6e2adf

Please sign in to comment.