Skip to content

Conversation

@nicoddemus
Copy link
Contributor

Decided to keep things simple and parsing the final string instead of changing dump_version to receive and handle a ScmVersion object, as that entails also dealing with configuration options related to how interpret/format that version, but let me know if you want this implemented in another way. 👍

Fix #469

@RonnyPfannschmidt RonnyPfannschmidt merged commit 2a1b46d into pypa:master Sep 2, 2020
@nicoddemus nicoddemus deleted the version-tuple branch September 2, 2020 12:54
nicoddemus added a commit to nicoddemus/pytest that referenced this pull request Jun 14, 2021
This adds `pytest.version_tuple`, which makes it simpler for users to do something depending on the pytest version (such as declaring plugins which are introduced in later versions) more easily than parsing the version themselves.

This feature was added originally in pypa/setuptools-scm#475.

Followup to pytest-dev#7605.
nicoddemus added a commit to nicoddemus/pytest that referenced this pull request Jun 14, 2021
This adds `pytest.version_tuple`, which makes it simpler for users to do something depending on the pytest version, such as declaring hooks which are introduced in later versions.

This feature was added originally in pypa/setuptools-scm#475.

Followup to pytest-dev#7605.
nicoddemus added a commit to nicoddemus/pytest that referenced this pull request Jun 14, 2021
This adds `pytest.version_tuple`, which makes it simpler for users to do something depending on the pytest version, such as declaring hooks which are introduced in later versions.

This feature was added originally in pypa/setuptools-scm#475.

Followup to pytest-dev#7605.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enable version-tuples/lazy parsed versions in write_to contents

2 participants