Skip to content

Commit

Permalink
Explicitly pass pyproject.toml parameters to get_version
Browse files Browse the repository at this point in the history
  • Loading branch information
grst committed Oct 20, 2020
1 parent 54fc69f commit 951680e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scirpy/_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
proj = pytoml.loads((here.parent / "pyproject.toml").read_text())
metadata = proj["tool"]["flit"]["metadata"]

__version__ = get_version(root="..", relative_to=__file__)
__version__ = get_version(
# Allegedly, the parameters from pyproject.toml should be passed automatically.
# However, this didn't work, so I pass them explicitly here.
root="..",
relative_to=__file__,
**proj["tool"]["setuptools_scm"]
)
__author__ = metadata["author"]
__email__ = metadata["author-email"]

Expand Down

0 comments on commit 951680e

Please sign in to comment.