Skip to content

Getting version number of installed library - #208

Merged
dwalton76 merged 2 commits into
ev3dev:developfrom
dwalton76:develop
Sep 22, 2016
Merged

dwalton76 merged 2 commits into
ev3dev:developfrom
dwalton76:develop

Conversation

@dwalton76

Copy link
Copy Markdown
Collaborator

For issue #200

Comment thread ev3dev/core.py Outdated
OUTPUT_AUTO = ''

# Keep the __version__ in sync with the package version in debian/changelog
__version___ = '0.7.0'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the triple underscore intentional?

Surely there is a way to do this automatically, e.g. with setuptools?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

triple underscore...good eye that is a typo, will fix.

There is probably a way to do this automatically but we aren't doing releases at a frantic pace so for now I think this is fine. We can automate it down the road.

@dwalton76
dwalton76 merged commit f11d7d7 into ev3dev:develop Sep 22, 2016
@WasabiFan

WasabiFan commented Sep 22, 2016 •

Copy link
Copy Markdown
Member

Nice! I should add a note about this in the README. Never mind, I think the README is already fine without asking people to check their version.

P.S. I'd recommend using the "squash and merge" option when merging PRs to squash all the commits into a single one. It's nice in cases like this where there's an extra commit just to fix a typo.

@dwalton76

Copy link
Copy Markdown
Collaborator Author

Ah did not notice that github had a "squash and merge" option....slick.

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.

3 participants