-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add support for mechanized deployments as implemented in importlib_metadata. - [merged] #155
Comments
In GitLab by @jaraco on Sep 11, 2018, 21:12 added 1 commit
|
In GitLab by @codecov on Sep 11, 2018, 21:18 Codecov Report
@@ Coverage Diff @@
## master #67 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 1 1
Lines 179 179
Branches 25 25
=====================================
Hits 179 179 Continue to review full report at Codecov.
|
In GitLab by @jaraco on Oct 31, 2018, 14:46 unmarked as a Work In Progress |
In GitLab by @jaraco on Oct 31, 2018, 14:48 I've decided it's important to get the mechanized releases out, especially to ensure that wheels are published with each release. I can separate the concern about version bumping, and follow up here if importlib adopts SCM-based versioning. I suggest incorporating these changes before the next release. |
In GitLab by @warsaw on Nov 1, 2018, 14:08 @jaraco Does this mean that each commit will create a new release? Or do I need to do something explicit to do the release? I definitely don't want the former. Given that |
In GitLab by @jaraco on Nov 1, 2018, 15:03 Each tagged commit will produce a release (and only tags that match the regex in the .gitlab.yml). So basically, instead of a release process:
You get this workflow:
There are several benefits to this approach:
Yes, perhaps, but having a process that relies entirely on tox instead of tox+bash seems superior to me. If you wish to keep the Whatever we decide, I'd like to see tagged commits being automatically released and importlib_* to be harmonized to that process. |
In GitLab by @warsaw on Nov 1, 2018, 18:09 Thanks for the detailed description @jaraco - I agree that is much better. A couple of comments/questions remain:
I have no opinion on using The tag pattern restriction wasn't obvious from looking at the Should we capture the steps needed to do a release in a |
In GitLab by @jaraco on Nov 1, 2018, 20:35
I was thinking the same thing. I can do that.
I don't remember if we set it on the project or the group. If we set it on the group, then we won't need to set it again for this project. I'll check the project history. Confirmed - passwords are already configured for python-devs. But it does require that tags be configured to be protected. That is now done and can be seen in this page.
Yes. It's my credentials that are currently configured, so you have two options - add me as a maintainer on importlib_resources (pypi) or update the credentials with those of someone who has maintainer access on both. That should be it. |
In GitLab by @warsaw on Nov 1, 2018, 20:44 I've updated the ownership records on PyPI for this project to match importlib_metadata, where @warsaw, @jaraco, and @brettcannon are all owners. I would like to continue to cut |
In GitLab by @warsaw on Nov 1, 2018, 20:49 @jaraco Man, I really don't like exposing my (or really, any person's) PyPI credentials in those variables. It looks like there's no other way to do it. What do you and @brettcannon think about creating a shared account on PyPI and using it to do mechanized uploads? |
In GitLab by @warsaw on Nov 1, 2018, 20:51 FWIW, we'd need a unique contact address and username. I can request one on |
In GitLab by @jaraco on Nov 1, 2018, 21:17 Looks like warehouse is tantalizingly close to having support for access tokens. It may be worth waiting to see how that change pans out and if it will address our use case. In fact, I'll update that ticket to ask. |
In GitLab by @warsaw on Nov 1, 2018, 21:48 Oh nice. I'll subscribe to that issue. We're in no hurry (importlib_resources being pretty stable at this point), so I agree we can wait a bit and see how it goes. |
In GitLab by @jaraco on Nov 3, 2018, 11:38 In the meantime, my password is already exposed, so there's no reason to delay acceptance of this MR. |
In GitLab by @warsaw on Nov 5, 2018, 16:27 approved this merge request |
In GitLab by @warsaw on Nov 5, 2018, 16:27 merged |
In GitLab by @jaraco on Sep 11, 2018, 21:09
Merges feature/mechanized-releases -> master
Based on the work in python-devs/importlib_metadata#8, follow the same pattern here.
I'm marking this a WIP while I work out issues and consider python-devs/importlib_metadata!9.
The text was updated successfully, but these errors were encountered: