Skip to content

Conversation

smacker
Copy link
Contributor

@smacker smacker commented Dec 13, 2018

Use only one source of truth for the version same as any other major
library does.

As examples of such libs: urllib3, requests, chardet, SQLAlchemy.

Signed-off-by: Maxim Sukharev max@smacker.ru

@dpordomingo dpordomingo removed their request for review December 13, 2018 12:26
@@ -2,4 +2,3 @@
# DO NOT CHANGE OR ADD ANYTHING HERE
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ohhhh. thanks!
I don't think we should change anything besides generated code from proto when we run protogen.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed here: 7ba6124

@carlosms carlosms requested a review from vmarkovtsev December 13, 2018 13:45
@@ -0,0 +1 @@
__version__ = "0.2.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is more common to specify this as a tuple:

__version__ = 0, 2, 0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

LOL you are right https://www.python.org/dev/peps/pep-0396
A good example of poor design... I have to live with it

Copy link
Contributor

Choose a reason for hiding this comment

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

For reference, another example of string version can be found in the docs here: https://packaging.python.org/tutorials/packaging-projects/#creating-setup-py

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wow! The PEP is from 2011! But I have never heard of it!

Copy link
Contributor

@carlosms carlosms left a comment

Choose a reason for hiding this comment

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

@smacker
Copy link
Contributor Author

smacker commented Dec 13, 2018

🤦‍♂️ I learn something new about this repository every day.

Thanks, fixed!

Copy link
Contributor

@carlosms carlosms left a comment

Choose a reason for hiding this comment

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

👍

Use only one source of truth for the version same as any other major
library does.

Signed-off-by: Maxim Sukharev <max@smacker.ru>
Signed-off-by: Maxim Sukharev <max@smacker.ru>
Signed-off-by: Maxim Sukharev <max@smacker.ru>
@smacker smacker merged commit beda07a into src-d:master Dec 13, 2018
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