Skip to content

allow travis to push releases on PyPi #12

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

Merged
merged 1 commit into from
Jan 18, 2020
Merged

allow travis to push releases on PyPi #12

merged 1 commit into from
Jan 18, 2020

Conversation

ziirish
Copy link
Contributor

@ziirish ziirish commented Jan 14, 2020

addresses #6

Added a token in travis-ci to allow to push releases on PyPi.

I'll need to push a tag in order to test everything is working as expected.

@ziirish
Copy link
Contributor Author

ziirish commented Jan 14, 2020

Note: travis shows some warnings regarding the current configuration format.
We will have to fix some things at some point: see here

Copy link
Contributor

@SteadBytes SteadBytes left a comment

Choose a reason for hiding this comment

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

I think it's worth documenting this release process. What do you think about adding it to CONTRIBUTING.rst?

@ziirish
Copy link
Contributor Author

ziirish commented Jan 15, 2020

Good point. I'll add a note in the CONTRIBUTING.rst file.

About testing the release process on a fork, I didn't want to setup a travis project specifically for this sole change/test.

@SteadBytes
Copy link
Contributor

Thanks @ziirish, we could set it to push to PyPi test server and then push a dev tag ?

@ziirish
Copy link
Contributor Author

ziirish commented Jan 15, 2020

I have updated the version and set it to 0.0.1.dev1 because I had to push 0.0.1.dev0 in order to be able to generate a PyPi token on the test server.

@ziirish
Copy link
Contributor Author

ziirish commented Jan 16, 2020

I just tried to add a tag in order to validate travis pushes our release on test.pypi.org, and... it's working \o/

So I rolled back the changes so the .travis-ci.yml file is setup to push on pypi.org

@SteadBytes
Copy link
Contributor

Brilliant work @ziirish 😊 My last thing before I'm happy with a merge is to check the behaviour change from the .bumprc changes. Could you explain these please? I see it's changed again since I commented on it yesterday?

@ziirish
Copy link
Contributor Author

ziirish commented Jan 16, 2020

I put tox back as the tests command. As you said, tox test against all versions of python, while inv qa only tests the current python version.

I removed the publish part so I can still use bumpr to manage the version increments (ie. update the README, CHANGELOG, about, etc.) but avoid building and pushing the dists since we delegated this task to travis.

@SteadBytes
Copy link
Contributor

SteadBytes commented Jan 16, 2020

Ah ok that makes sense thank you explaining 😊 I know it's nit-picking but would you mind adding an explanation of that to the commit description? It's not clear just form the short commit message why that change is in there. We've run into issues before with old commits not adequately explaining a change and it's held us back from making further changes due to a lack of understanding. It would be good for the community if we could avoid that on the new fork 😊

You can edit the commit message with git commit --amend and add a longer description in the lines after the short message 👍

@ziirish
Copy link
Contributor Author

ziirish commented Jan 17, 2020

What information would you like to have in the commit message?
The one about bumpr?

I didn't find that information relevant because almost no-one will be using it anyway since we automated the release process through travis.

I also think that we can find the detailed explanation here in the PR comments and the link will be attached to the merge commit so really I don't feel the need to have top rock commit messages.

We are a community/volunteer project. I'd like it to stay "accessible" to everyone who'd like to contribute. If we enforce a high contribution requirements that bring no value to the actual project we'll loose opportunities to grow.

@SteadBytes
Copy link
Contributor

SteadBytes commented Jan 17, 2020

Yes the change to bumpr, as it's an addition to the main change and the reasoning isn't clear IMO.

I absolutely agree that the project should be accessible, however I disagree that commit message quality is not desirable - commit messages are not a high bar to entry. Being accessible is allowing the community to contribute and (as the core maintainers) to assist people to do so at a reasonable level of quality - not to stop the contributions by any means.

IMO it's even more important in a community driven project to maintain a useful commit history and the knowledge of the project is, by definition, shared and distributed amongst many people.

In this particular case I admit that I am nit-picking somewhat. However, I'm doing so in order for us to start off well and set examples for the community going forward.

@SteadBytes SteadBytes closed this Jan 17, 2020
@SteadBytes SteadBytes reopened this Jan 17, 2020
This change allows Travis-CI to build and publish new releases on
PyPi.org upon tag additions.
The bumpr.rc file has been changed accordingly since we won't use it
anymore to push new releases directly, but we may still use it to
prepare new releases (ie. edit the CHANGELOG, README, etc.)
@ziirish
Copy link
Contributor Author

ziirish commented Jan 17, 2020

done

@SteadBytes
Copy link
Contributor

SteadBytes commented Jan 18, 2020

Thank you @ziirish , I appreciate it (and this PR of course). This looks great to me now and will be incredibly useful!

I think this discussion has been helpful to start getting a feeling for our expectations around ongoing development of the project. I appreciate you challenging my request for the change to the commit message as it made me explain my reasoning properly and to articulate my thoughts around accessibility. I should have said those up front along with the request - I apologise. Let's continue on Gitter as I think it'll be good to talk it through a bit more 😄

@SteadBytes SteadBytes merged commit c9f90a4 into master Jan 18, 2020
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.

2 participants