GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — quick and dirty parser for version number in legacy-defaults by sawyerbfuller · Pull Request #435 · python-control/python-control Conversation
Contributor
follows issue #432
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Coverage increased (+0.03%) to 84.246% when pulling 94c57dd on sawyerbfuller:generalize-legacy-defaults into d3142ff on python-control:master. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| first_digit = int(version[0]) | ||
| second_digit = int(version[2]) | ||
| if second_digit < 8: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Will break with >=0.10.0
Maybe use setuptool's packaging.version.parse?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I found I could make a quick change that addresses this concern - does what I came up with look ok? alternatively, are you sure a dependency on the module you proposed ok to have? (is it always included in python?)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It is an edge case. setuptools should not really be needed after install, or if you get the package from something else. The other option mentioned in that SO question is undocumented but standard lib distutils.version. python-control already uses that within the test suite.
Although your quick solution works, too. I would be fine with it. (Not to imply that I have any authority. I am only here to contribute unwarranted suggestions. 😉)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Interpretation of argument for use_legacy_defaults is not clear
There was an error while loading. Please reload this page.