-
Notifications
You must be signed in to change notification settings - Fork 11
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
CI: automate version increment in setup.py #2
Comments
same solution will apply to bblfsh/sonar-checks#1 |
@bzz I would like to take this up and for the same, I have a question. Correct me If I'm wrong here but would it be right to update the |
What I'm wondering now is: if we update the python code after the tag is made, the tagged code will always contain an outdated version number. Maybe it would be easier to automate a check for Travis, to avoid releasing a version with a version that does not match the tag. A related issue: we have a Maybe we could follow how it's done in that project.
|
@carlosms makes sense. Most probably, if we are talking about a generic solution applicable to all Python projects, we want it to cover 2 cases:
@danishprakash I belive for the second case, a helper script replacing the version can just rely on TravisCI conventions (as releases are always done by CI automation) and read |
But if the version is set by Travis after the tag is set, what does
None would match the values of an install form pypi. Are we ok with that? |
@carlosms I'm not very well-versed with CI but wouldn't that be redundant? I'm sure we can work up a more effective solution.
As already stated by @carlosms, this would have to have an outdated value in which case we are back to square one. We'll have to manually set the version while creating a tag and although we can programmatically set the version in setup.py file, that's a given. I can think of this. What if we have a separate file named
I'm not sure if this is the right approach or not but this should work. |
@danishprakash thank you for your valuable input on this discussion. We have been talking internally about this need for a better release process, and we will try to come up with a generic solution to apply on all This means that it would not make sense for you to work on this issue, since it would have to be replaced in the short-term. But thanks again for offering your help and joining the conversation. |
@carlosms totally understand that. It was really informative reading all of the responses here though. I'll keep an eye on this as well as your python guidelines for the approach you guys take. Thanks. |
My two cents. I used to use this. Given that the creation of the git tag is manual, we could replace that operation by using As an example we can simply configure
and we want to release a new version (both git tag and python version) we just need to run Another good thing of |
Right now, before the release one have to manually updated&commit a new version number for python library in
setup.py→ setup.pyIt would be nice to get it from the git tag instead.
The text was updated successfully, but these errors were encountered: