PMXBOT Log file Viewer

Help | Karma | Search:

#pypa-dev logs for Saturday the 8th of June, 2019

(Back to #pypa-dev overview) (Back to channel listing) (Animate logs)
[03:11:51] <sumanah> pradyunsg: hey - about 11 hrs till our sprint starts
[03:50:46] <pradyunsg> sumanah: Thanks for the ping!
[04:31:26] <sumanah> Thanks pradyunsg!
[05:42:56] <seongsoocho> Hi !!!
[14:16:45] <sumanah> Hi bhrutledge and hi trishankdatadog!
[14:16:51] <trishankdatadog> hi @sumanah
[14:16:51] <sumanah> !logs
[14:16:51] <pmxbot> http://kafka.dcpython.org/channel/pypa-dev
[14:17:10] <sumanah> Hi seongsoocho!
[14:18:28] <sumanah> trishankdatadog: so while you are concentrating on Python packaging/distribution stuff today there are a few issues I would particularly like you to give your opinion on
[14:18:28] <sumanah> https://github.com/pypa/warehouse/issues/5867
[14:18:35] <sumanah> 2FA: "trust this device for 30 days" option
[14:18:46] <sumanah> https://github.com/pypa/warehouse/issues/5864 Audit log: what should Maintainers of projects see?
[14:19:04] <sumanah> Tell us what project Owners should see that Maintainers shouldn’t see in the audit log (so: if you maintain a PyPI package with other people, how do you use the owner/maintainer distinction?)
[14:19:34] <sumanah> and https://github.com/pypa/warehouse/issues/5825 2FA Ask for password not username when disabling 2FA -- what do you think?
[14:19:51] <sumanah> Thanks trishankdatadog!
[14:20:12] <sumanah> seongsoocho: what do you think you'll be working on today?
[14:20:25] <sumanah> jaraco: *wave* I think bhrutledge may have a question for you about some Twine keyring stuff
[14:20:49] <sumanah> trishankdatadog: so you asked: is it correct that right now 2FA is just for website login, not package upload?
[14:20:54] <sumanah> my understanding is: yes, RIGHT NOW. But!
[14:21:10] <sumanah> https://github.com/pypa/warehouse/issues/994 we will in the very near future be adding support for scoped API keys
[14:21:39] <sumanah> which will -- woodruffw am I right? -- make it so that 2FA could be a part of the security story for the package upload process
[14:27:58] <sumanah> Hi pradyunsg
[14:31:03] <trishankdatadog> hey pradyunsg
[14:35:10] <trishankdatadog> sumanah, on https://github.com/pypa/warehouse/issues/5867: this is a great idea, i don't see any issue from a security point of view, many companies do it (including
[14:35:40] <trishankdatadog> Amazon), so the major security issues will really be on the server-side, on how we handle sessions in Warehouse, but that's it
[14:35:50] <sumanah> trishankdatadog: cool - would you mind saying that on the GitHub issue? Thanks!
[14:36:14] <sumanah> remind me bhrutledge -- are you interested in mypy?
[14:36:51] <bhrutledge> sumanah: yes, though I haven't used it yet
[14:37:08] <sumanah> bhrutledge: https://blog.zulip.org/2016/10/13/static-types-in-python-oh-mypy/ is a guide to adding the optional static typechecking to your application .... it would be great to get it into Twine, IMO
[14:37:23] <sumanah> and there are some open PRs to help towards that goal
[14:39:51] <trishankdatadog> hey mkagesawa
[14:39:57] <mkagesawa> hello everyone
[14:40:14] <sumanah> Hi mkagesawa
[14:41:04] <sumanah> jaraco: could you review https://github.com/pypa/twine/pull/460 ?
[14:43:54] <sumanah> mkagesawa: you saw pradyunsg's email about "Pointers for pip issue triage"?
[14:45:51] <sumanah> trishankdatadog: https://github.com/pypa/warehouse/issues/5863 is the issue re the audit log .... maybe you could comment, based on your experience, about what the set of "sensitive" events is?
[14:46:22] <trishankdatadog> sumanah: yes, let me take a look at what all the events being logged are
[14:46:44] <sumanah> cool
[14:47:09] <sumanah> trishankdatadog: https://test.pypi.org/
[14:47:41] <sumanah> trishankdatadog: https://pyfound.blogspot.com/2018/12/upcoming-pypi-improvements-for-2019.html and https://pyfound.blogspot.com/2019/03/commencing-security-accessibility-and.html might be interesting for you
[14:48:08] <sumanah> trishankdatadog: I figure that creating a test PyPI account https://packaging.python.org/guides/using-testpypi/ and using it to upload test package(s) will help you see what the current experience is like
[14:48:26] <sumanah> trishankdatadog: in case you need the reference for how we currently advise you do that: https://packaging.python.org/tutorials/packaging-projects/
[14:48:46] <sumanah> !logs
[14:48:46] <pmxbot> http://kafka.dcpython.org/channel/pypa-dev
[14:51:56] <seongsoocho> sumanah: Hi. I can work today. (Maybe after 12 hours later) My timezone is UTC+9.
[14:54:28] <sumanah> trishankdatadog wanted to know: what is actually logged? what kinds of actions are possible, for a user or package (project) in Warehouse?
[14:54:35] <trishankdatadog> sumanah: yes
[14:54:44] <trishankdatadog> i can dig into the source code and find out
[14:55:10] <sumanah> dstufft: ^ if you have an overview ready to hand, that would be cool
[14:55:53] <pradyunsg> Hi sumanah! o/
[14:56:06] <pradyunsg> Hi trishankdatadog! o/
[14:56:30] <sumanah> trishankdatadog: the associated GitHub issues that https://github.com/pypa/warehouse/issues/5863 links to may be a good place to start
[14:57:00] <trishankdatadog> sumanah: you got it
[14:57:25] <sumanah> for instance: a new package (a new release within a project) is uploaded; a user disables or enables a 2FA method; User A removes User B from an owner/maintainer role within a project....
[14:58:08] <sumanah> woodruffw: if you already have a resource somewhere listing the kinds of sensitive actions we will probably want to cover in " Audit trail: implement auditable event logging for sensitive actions" #5863 speak up here or on the issue?
[14:59:17] <sumanah> pradyunsg: mkagesawa is sitting next to me and is working on an issue -- Masaki, which issue are you looking at right now?
[14:59:34] <mkagesawa> https://github.com/pypa/pip/issues/6323
[14:59:37] <mkagesawa> this one
[15:00:12] <bhrutledge> sumanah: I'm reading the Zulip blog and existing issues/PRs re: mypy
[15:00:19] <sumanah> cool!
[15:00:32] <sumanah> Thanks mkagesawa -- please feel free to ask questions here if you're stuck in trying to reproduce or understand that issue, and pradyunsg can help
[15:03:43] <pradyunsg> Awesome mkagesawa! Please do ask any questions that you may have. I'm around for at least 3 more hours.
[15:08:34] <mkagesawa> so for this issue why is it trying to connect to localhost?
[15:08:41] <mkagesawa> i'm not sure how to reproduce the error
[15:09:47] <sumanah> pradyunsg: ^
[15:11:08] <woodruffw> sumanah: yup! i'll add to that issue. i'll also be at the sprint soon, got a bit of a late start today
[15:12:42] <sumanah> cool! woodruffw I totally understand. :)
[15:12:57] <bhrutledge> jaraco: It looks like this PR can be closed: https://github.com/pypa/twine/pull/357 (per di_codes)
[15:12:59] <sumanah> it's optional anyway -- any of your time we get today is gravy as far as I am concerned :)
[15:15:11] <sumanah> mkagesawa: you said you're having trouble reproducing the issue .... what have you tried?
[15:15:16] <pradyunsg> mkagesawa: Yep. I think that's a good question to ask OP. ISTM that they might have something specific to their machine that's causing this. (hosts file, networking/firewall issues etc)
[15:15:57] <jaraco> bhrutledge: done
[15:16:38] <sumanah> Thanks jaraco! Also I think bhrutledge may have a question for you about some Twine keyring stuff
[15:16:40] <pradyunsg> mkagesawa: And, do mention what you did try to reproduce the issue in the same comment.
[15:17:17] <sumanah> mkagesawa: "ask OP" means "ask the original poster"
[15:17:20] <mkagesawa> pradyunsg: gotcha
[15:17:32] <sumanah> (the person who submitted the issue)
[15:18:06] <sumanah> also, mkagesawa, if you are trying to triage an issue and the user used an old version of pip, there's a possibility that it's been fixed between now and the most recent version!
[15:18:41] <bhrutledge> Thanks jaraco. sumanah is referring to https://github.com/pypa/twine/issues/465. I wondered if it might be related to https://github.com/pypa/twine/issues/362. However, I've set those aside to look into mypy.
[15:19:04] <mkagesawa> sumanah: so I should also recommend them in the reply to try using the newest version and see if issue persists?
[15:19:37] <sumanah> mkagesawa: I'm inclined to say that -- pradyunsg could you advise? also pradyunsg when you label an issue "triage" what does that mean?
[15:19:44] <jaraco> I’m on mobile now. Later this afternoon I’ll look at those others in depth.
[15:20:24] <sumanah> mkagesawa: https://www.mediawiki.org/wiki/Bug_management/How_to_triage let's take a look at this together
[15:21:58] <bhrutledge> jaraco: Thanks. On the mypy note, it looks like https://github.com/pypa/twine/pull/359 builds on the PR you just closed. I wonder if that should also be closed, maybe with a reference in https://github.com/pypa/twine/issues/231?
[15:22:03] <pradyunsg> sumanah: currently, issues that either hasn't been looked at by the maintainers (a bot auto labels new issues) or needs a maintainer to take a look (manually tagged). Initially it was a more curated list but I gave up on that. :)
[15:25:10] <pradyunsg> The bunch that was sent over is fairly representative of the most common issue types and one of them can be worked on, if time permits.
[15:25:56] <pradyunsg> mkagesawa: yep. And also to post clear instructions with a minimal example of how to reproduce
[15:29:22] <pradyunsg> mkagesawa: the "What and Why" link in the MediaWiki link sumanah posted is definitely relevant!
[15:29:37] <mkagesawa> pradyunsg: thanks! i'm taking a look
[15:30:57] <pradyunsg> sumanah: do you reckon it's a good idea to add similar text to pip's development docs?
[15:31:39] <sumanah> pradyunsg: yes, but, if I had to prioritize, finishing the architectural overview ought to come first
[15:33:45] <pradyunsg> Definitely. I'm was thinking of filing an issue for this documentation update, so that I minimize the number of things in the back of my head!
[15:37:10] <sumanah> pradyunsg: sounds good!
[15:37:16] <sumanah> go ahead :)
[15:38:00] <sumanah> pradyunsg: if you're doing that, also link to https://www.mediawiki.org/wiki/Bug_management/How_to_triage#Other_triaging_documentation_sources which has links to other triaging guides, so we can steal from the best :-)
[15:38:40] <pradyunsg> Haha! Will do. Thanks!
[15:47:26] <sumanah> btw trishankdatadog, mkagesawa - https://discuss.python.org/t/pypi-security-work-multifactor-auth-progress-help-needed/1042/23 is the current progress report on what woodruffw and the rest of the team just did to improve PyPI security
[15:51:34] <sumanah> !logs
[15:51:34] <pmxbot> http://kafka.dcpython.org/channel/pypa-dev
[15:51:42] <sumanah> [in case you need that bhrutledge]
[15:52:58] <sumanah> Hi mkagesawa!
[15:53:10] <mkagesawa> i’m back
[15:53:14] <sumanah> !logs
[15:53:14] <pmxbot> http://kafka.dcpython.org/channel/pypa-dev
[15:53:25] <sumanah> mkagesawa: ^ in case you want to see the last few minutes of logs :)
[15:54:34] <sumanah> trishankdatadog: whatever you find in your archaeology, re: what we currently log, would you briefly summarize that in a comment on the issue? :-)
[15:55:38] <trishankdatadog> sumanah: sure
[15:58:32] <bhrutledge> !logs
[15:58:32] <pmxbot> http://kafka.dcpython.org/channel/pypa-dev
[16:02:24] <sumanah> trishankdatadog: https://wiki.python.org/psf/PackagingWG/2019-06-07-Warehouse
[16:11:35] <sumanah> mkagesawa: https://github.com/pypa/warehouse/issues/5247 is about TUF and Warehouse
[16:23:17] <sumanah> in case anyone is curious: Trishank is helping Will do a SQL thing, Trishank is working to understand what actions we currently log and what we might want to log, Brian is working on mypy support in Twine, and Masaki is figuring out how to phrase a question to a pip bug reporter
[16:24:34] <mkagesawa> Hello liqinzhe,
[16:24:35] <mkagesawa> Seems like your machine is accessing localhost and is not trying to download the package from the internet.
[16:24:36] <mkagesawa> I was not able to reproduce the error, but I suggest you to try the following and let me know if the error persists.
[16:24:38] <mkagesawa> - Check your firewall and networking settings and make sure your computer can access pypi
[16:24:39] <mkagesawa> - Install the newest version of pip with `sudo pip install --upgrade pip`
[16:24:40] <mkagesawa> After you made sure of the above, try running
[16:24:41] <mkagesawa> `sudo pip install virtualenvwrapper`
[16:24:55] <sumanah> mkagesawa: for the future, check out https://hastebin.com/
[16:26:41] <bhrutledge> https://dpaste.de/
[16:26:55] <mkagesawa> https://dpaste.de/r4pJ
[16:27:29] <mkagesawa> https://dpaste.de/BdTz
[16:33:53] <woodruffw> hey dstufft: do you know if there's a human-friendly string generator anywhere in the warehouse codebase? looking to generate default labels for webauthn keys; i can add a small util module or dependency if it doesn't already exist
[16:34:30] <sumanah> mkagesawa: https://dpaste.de/riOF is my suggested edit.
[16:34:57] <sumanah> trishankdatadog: https://warehouse.readthedocs.io/application/#usage-assumptions-and-concepts on a conceptual level
[16:35:57] <sumanah> trishankdatadog: and https://pypi.org/help/#collaborator-roles
[16:36:02] <sumanah> Maintainer: Can upload releases for a package. Cannot add collaborators. Cannot delete files, releases, or the project.
[16:36:02] <sumanah> Owner: Can upload releases. Can add other collaborators. Can delete files, releases, or the entire project.
[16:37:51] <sumanah> di_codes: ^ woodruffw's question, in case you have an answer
[16:38:09] <sumanah> EWDurbin: ^
[16:45:16] <bhrutledge> jaraco: I'm starting with https://github.com/pypa/twine/pull/344/, to get a sense of the work so far, and how I might build on it.
[16:45:38] <bhrutledge> ^ "work so far" == "mypy work so far"
[16:46:57] <trishankdatadog> sumanah: https://docs.google.com/document/d/1IODiWITI3joSJji785bWTCvpfZz05jSwGYlzdrgqqmE/edit?usp=sharing
[16:49:35] <EWDurbin> sumanah: is that highlight urgent?
[16:50:04] <sumanah> EWDurbin: no it is not. enjoy your Saturday, sorry
[17:45:13] <bhrutledge> !logs
[17:45:13] <pmxbot> http://kafka.dcpython.org/channel/pypa-dev
[17:48:02] <mkagesawa> !logs
[17:48:02] <pmxbot> http://kafka.dcpython.org/channel/pypa-dev
[17:52:54] <sumanah> I am doing some issue maintenance/filing so we can more clearly make and watch progress on localizing Warehouse
[18:06:27] <mkagesawa> https://github.com/pypa/pip/issues/6378
[18:11:03] <trishankdatadog> sumana: https://github.com/pypa/warehouse/issues/5863#issuecomment-500147155
[18:18:20] <mkagesawa> !log
[18:19:56] <sumanah> trishankdatadog: https://github.com/pypa/warehouse/pull/5872 and https://github.com/pypa/warehouse/pull/5975
[18:20:03] <sumanah> re:
[18:20:03] <sumanah> error `make initdb` if xz isn't installed
[18:20:30] <sumanah> and in case you want to help finish this up trishankdatadog https://github.com/pypa/warehouse/pull/4961
[18:26:56] <mkagesawa> https://dpaste.de/sjWQ
[18:27:00] <mkagesawa> sumanah:
[18:28:55] <sumanah> looking now mkagesawa
[18:29:33] <sumanah> mkagesawa: my suggestion: link to the deprecation plans for 2.7 and for CentOS 6
[18:30:38] <sumanah> mkagesawa: and I'll edit the last sentence to make it a little more explicit about why we're asking this
[18:31:02] <mkagesawa> sumanah: https://dpaste.de/evHn just added
[18:34:08] <sumanah> mkagesawa: here's an update: https://dpaste.de/n3qJ
[18:58:40] <trishankdatadog> https://github.com/pypa/warehouse/pull/5980
[19:04:59] <sumanah> Hi ofek! how are you today?
[19:05:54] <ofek> sumanah, getting over a cold but not bad :) you?
[19:06:05] <sumanah> ofek: I'm all right, thanks!
[19:06:06] <sumanah> !logs
[19:06:06] <pmxbot> http://kafka.dcpython.org/channel/pypa-dev
[19:06:25] <sumanah> ofek: so a few of us are sitting around a table in NYC settled into various Warehouse & Twine tasks
[19:07:01] <sumanah> ofek: if you already have ideas/plans for things you'd like to work on with us right now, I'd love to hear them -- otherwise I have some questions/thoughts
[19:07:13] <sumanah> ofek: (and I hope your recovery is swift)
[19:08:12] <ofek> sumanah: I'll gladly hear those questions/thoughts! and thanks
[19:10:01] <sumanah> ofek: because of your interests in security, I would appreciate your opinion on some of our Warehouse security questions, such as https://github.com/pypa/warehouse/issues/4164 "Handle security implications of PEP 561 type hinting packages"
[19:11:29] <sumanah> (I recognize that's only 1 of your interests)
[19:12:43] <woodruffw> trishankdatadog: https://blog.trailofbits.com/2018/08/01/bluetooth-invalid-curve-points/
[19:13:52] <sumanah> ofek: I'd also appreciate your opinion on https://github.com/pypa/warehouse/issues/5864 "Audit log: what should Maintainers of projects see?"
[19:15:56] <sumanah> ofek: if you'd like to do something less talk-y and more bug-fixing or feature-building, depending on how much time you would like to spend, I of course know of a few things that we could use help with -- are you here today for more like 30-60 min or longer?
[19:17:00] <trishankdatadog> i can vouch that ofek is one of the most pythonic and proficient hackers i know
[19:17:16] <ofek> sumanah: ~1 hour. I'm looking at #4164 now
[19:28:36] <sumanah> and ofek if you feel like adding a small feature, https://github.com/pypa/twine/issues/459 (proposed by bhrutledge) would be welcome! ("Show Warehouse URL after `upload`")
[19:29:32] <bhrutledge> sumanah and ofek: I had some initial thoughts on that, and I'm not sure it's as small a rock as I initially thought.
[19:30:51] <ofek> sumanah: I don't see any security implications of #4164, however, it is definitely annoying to not be in control of said package by default. that actually happened to me https://github.com/planetarium/coincurve-stubs
[19:32:04] <ofek> I appreciate that org helping out, but now I've no control :)
[19:33:27] <ofek> also, is namespacing an active goal?
[19:33:45] <ofek> that would be amazing
[19:35:22] <sumanah> ofek: lemme refresh my memory
[19:36:23] <trishankdatadog> https://github.com/pypa/warehouse/pull/5981
[19:37:08] <trishankdatadog> ofek, did they steal your source code?
[19:37:11] <sumanah> ofek: maybe you could comment on the thread https://discuss.python.org/t/namespace-support-in-pypi/1609/33 in case you want to +1 or -1 any of the points there?
[19:38:43] <ofek> trishankdatadog: nope, just provided a type hinting package for one of my more popular projects
[19:44:23] <trishankdatadog> ofek, i found a nice thing we can work on
[19:44:50] <trishankdatadog> a common developer_experience label is that some of the Makefile tasks don't use Python-based containers, but use virtualenv on your machine
[19:44:57] <trishankdatadog> and assume fixed Python versions
[19:45:34] <trishankdatadog> so take a look at the reformat, lint, and so on
[19:45:44] <trishankdatadog> basically, any task that assumes $BINDIR
[19:46:34] <trishankdatadog> it's a small pain, but basically one-time conversion to container tasks
[19:53:01] <ofek> trishankdatadog: good idea
[19:54:28] <ofek> I wonder if switching from make to pyinvoke would be accepted, for us Windows ppl ;)
[19:55:00] <trishankdatadog> yeah that Makefile is extremely difficult to read
[19:55:05] <trishankdatadog> i don't think anyone would mind, actually
[19:55:13] <trishankdatadog> it makes it more Pythonic and readable and hackable
[19:57:37] <trishankdatadog> let me try to make a quick Dockerfile for those $BINDIR tasks
[19:59:06] <sumanah> [back in a bit]
[20:06:31] <ofek> trishankdatadog: awesome job! https://github.com/pypa/warehouse/issues/5863#issuecomment-500147155
[20:07:59] <ofek> definitely helps
[20:10:16] <trishankdatadog> thanks ofek :bow:
[20:11:44] <ofek> bhrutledge: hey there! what are some of your concerns about your twine FR?
[20:14:26] <bhrutledge> ofek: I could be wrong, but as I've learned the codebase, it seems `twine upload` doesn't really have a concept of a "release" composed of multiple files; it just uploads dist files, and PyPI creates the release.
[20:23:07] <sumanah> ofek: hey - I think I was wrong to suggest that particular Twine issue for you, partly because it's something Brian has already started some prework/design on -- I now agree with Trishank re the Makefile issues in Warehouse being a great avenue for you instead
[20:23:40] <sumanah> you are of course free to work on what you like :-) but yeah we really are lacking for people to tackle that developer experience stuff https://github.com/pypa/warehouse/issues?q=is%3Aopen+is%3Aissue+label%3A%22developer+experience%22
[20:27:11] <ofek> will do then, thanks!
[20:30:33] <jaraco> Okay. I think I’ve caught up on the requests above - let me know if there’s still anything that could use my attention.
[20:36:44] <sumanah> Thank you jaraco! Looking now
[20:39:00] <sumanah> jaraco: I see https://github.com/pypa/twine/pull/437 -- making twine Python 3 only -- is waiting till you and Thea are ready to release Twine 2.0?
[20:39:46] <sumanah> or rather that's what Ian said, but it sounds like now that kind of decision is up to you + Thea
[20:40:47] <sumanah> jaraco: so that would probably be good to clarify, if you're up for it
[20:40:56] <sumanah> jaraco: there's 1 more thing I can see in Twine: if I ask goodtune to rebase https://github.com/pypa/twine/pull/350 against master (" Add two new optional configuration locations to consider.") would you be inclined to review it?
[20:58:33] <jaraco> Thanks sumanah. I’ve added comments in both PRs. I’ve given a high-level review and presented some concerns on 350. If those concerns are assuaged, then I’d be happy to do a more in-depth review of a refreshed PR.
[21:02:11] <sumanah> Much thanks on both of those jaraco!
[21:03:35] <sumanah> We're wrapping up our NYC sprint -- Trishank created some PRs, Masaki responded to a few pip issues that needed triaging, William got Trishank up to speed on some MFA stuff and got further on WebAuthn, Brian made progress on mypy in Twine, and I did some issue responses, made a Warehouse docs PR, and created some more granular Warehouse issues for the upcoming i18 work
[21:05:02] <bhrutledge> Thanks jaraco and sumanah!
[21:06:40] <sumanah> See y'all!
[21:10:25] <tos9> sumanah: eenteresting, where was this sprint?
[21:10:50] <tos9> oh, she's gone, never mind.
[21:47:03] <toad_polo> tos9: Was in NYC at a coworking space.
[21:47:49] <toad_polo> Near Times Square