Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix #291: Disallow negative numbers in VersionInfo #292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 19, 2020

Conversation

tomschr
Copy link
Member

@tomschr tomschr commented Oct 18, 2020

This PR fixes #291 and contains the following change:

Disallow negative numbers of major, minor, and patch in semver.VersionInfo.
Reason: a version can only contain positive numbers

@tlaferriere This is the corresponding pull request. Maybe there are better ways to do it. 😉

I would release 2.12.0 if you think this is useful.

@tomschr tomschr added Release_3.x.y Only for the major release 3 Bug Error, flaw or fault to produce incorrect or unexpected results Release_2.x.y Only for the major release 2 labels Oct 18, 2020
@tomschr tomschr self-assigned this Oct 18, 2020
@tomschr tomschr requested a review from a team October 18, 2020 21:27
Disallow negative numbers in major, minor, and patch in
semver.VersionInfo.

Reason: a version can only contain positive numbers
@tlaferriere
Copy link
Contributor

Is it a feature or a semantic bugfix? This kind of feels like bug. I would kind of expect it to reject negative numbers out of the box.

@tomschr tomschr merged commit 0309c63 into python-semver:master Oct 19, 2020
@tomschr tomschr deleted the bugfix/291-negnum branch October 19, 2020 06:45
@tomschr tomschr mentioned this pull request Oct 19, 2020
tomschr added a commit to tomschr/python-semver that referenced this pull request Oct 19, 2020
tomschr added a commit that referenced this pull request Oct 19, 2020
* #291/#292 Disallow negative numbers in VersionInfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error, flaw or fault to produce incorrect or unexpected results Release_2.x.y Only for the major release 2 Release_3.x.y Only for the major release 3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

semver.VersionInfo allows negative numbers
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.