Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

quick and dirty parser for version number in legacy-defaults#435

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

sawyerbfuller
Copy link
Contributor

follows issue#432

@coveralls
Copy link

coveralls commentedJul 23, 2020
edited
Loading

Coverage Status

Coverage increased (+0.03%) to 84.246% when pulling94c57dd on sawyerbfuller:generalize-legacy-defaults intod3142ff on python-control:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 84.242% when pulling77a38fc on sawyerbfuller:generalize-legacy-defaults intod3142ff on python-control:master.

Comment on lines 171 to 173
first_digit = int(version[0])
second_digit = int(version[2])
if second_digit < 8:
Copy link
Contributor

Choose a reason for 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'spackaging.version.parse?

Copy link
ContributorAuthor

Choose a reason for 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?)

Copy link
Contributor

@bnavigatorbnavigatorJul 24, 2020
edited
Loading

Choose a reason for 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 libdistutils.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. 😉)

@bnavigatorbnavigator added this to the0.8.4 milestoneAug 17, 2020
@sawyerbfullersawyerbfuller linked an issueAug 19, 2020 that may beclosed by this pull request
@murrayrmmurrayrm merged commit7a62428 intopython-control:masterOct 17, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@bnavigatorbnavigatorbnavigator left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
0.8.4
Development

Successfully merging this pull request may close these issues.

Interpretation of argument for use_legacy_defaults is not clear
4 participants
@sawyerbfuller@coveralls@bnavigator@murrayrm

[8]ページ先頭

©2009-2025 Movatter.jp