Get version keyword¶
Removes the need for a setup.py
file.
In pyproject.toml
,
[project.entry-points."distutils.setup_keywords"] use_scm_version = "drain_swamp.monkey.wrap_version_keyword:version_keyword"
- drain_swamp.monkey.wrap_version_keyword.log: logging.Logger¶
Module level logger
- drain_swamp.monkey.wrap_version_keyword.version_keyword(dist, keyword, value)¶
Called by entrypoint project.entry-points.”distutils.setup_keywords”.
With this setup. setup.py is unneeded for versioning purposes.
In
pyproject.toml
,[project.entry-points."distutils.setup_keywords"] use_scm_version = "drain_swamp.monkey.wrap_version_keyword:version_keyword"