[00:01:42] <controversial> Having some trouble figuring out Jinja2 :P
[00:04:24] <controversial> So I'm trying to fix #1347
[00:04:41] <controversial> Here: https://github.com/pypa/warehouse/blob/master/warehouse/templates/packaging/detail.html#L98 an `is_vaild_uri` function is used
[00:05:02] <controversial> I'm trying to use this within a `map` filter to separate out all the URLs that aren't valid URIs
[00:05:09] <controversial> But I can't seem to do it
[00:05:29] <controversial> I tried: `{% if release.urls.items()|map(is_valid_uri)|list|length > 0 %}`
[00:05:48] <controversial> But it doesn't let me use this kind of function from within a `map`
[00:15:43] <controversial> additionally, why is the `*` at https://github.com/pypa/warehouse/blob/master/warehouse/filters.py#L44 not invalid syntax?
[00:16:19] <controversial> pyflakes seems to think it is
[00:19:49] <controversial> Never mind, guess it's not. I didn't think you could use it without a name
[02:35:53] <controversial> Does anyone have any idea why this build fails? It appears to work correctly on my machine. Is there another place I should register new filters? https://travis-ci.org/pypa/warehouse/builds/141936643
[13:07:42] <controversial> apollo13: Would you be able to help me figure out why the build for this is failing: https://github.com/pypa/warehouse/pull/1352
[13:08:20] <controversial> It says it couldn't find the filter `contains_valid_uri`, even though I explicitly defined and registered it. Everything works fine when I test it.
[13:08:47] <controversial> I've registered it everywhere filters are mentioned in config.py, but is there another place it needs to go?
[13:10:11] <apollo13> yeah, you need to register it in the test too
[13:27:10] <controversial> ugh I have to write tests too D:
[13:27:34] <apollo13> of course, what did you think :D
[13:41:26] <controversial> apollo13: Idk, I'm just lazy. I try for 100% test coverage most of the time, though
[13:41:42] <controversial> Meaning all my repos are either 100% covered or not covered at all :)
[13:48:23] <controversial> apollo13: All checks pass :D
[13:49:08] <apollo13> mhm, while the test works, I would change it
[13:49:40] <apollo13> the goal of the function is to determine that at least one url works, so I'd have two invalid ones and then one valid and one invalid one
[14:06:42] <controversial> apollo13: Could you check it out now?
[14:08:40] <apollo13> did https://github.com/pypa/warehouse/pull/1352/files#diff-ff99cb2dacf4a025805334880095b350R221 go over the line limit or what was the reason for splitting it? aside from that looks good to me
[14:09:23] <apollo13> and not sure if the doc string https://github.com/controversial/warehouse/blob/fcbad4fe588b3e3afee7d39e7750d271d85e3620/warehouse/filters.py#L144 is okay, what does pep8 suggest on how to write them?
[14:09:53] <controversial> I was reading PEP 257, and it's kind of ambiguous
[14:10:26] <controversial> It has a special case forĀ "one-line docstrings" https://www.python.org/dev/peps/pep-0257/#one-line-docstrings
[14:11:05] <controversial> But reading on later in the file, it seems like "one line docstrings" could refer either to simple single-sentence things or docstrings that literally occupy one line
[14:11:54] <controversial> It recommends putting the closing quotes on a new line if you've got a multi-line docstring, but if I move the closing quotes then my docstring _does_ fit on one line
[14:11:58] <controversial> apollo13: What do you think?
[14:12:36] <controversial> Never mind, I'm going to move the closing quotes to a new line
[16:47:41] <berker> dstufft: shouldn't https://github.com/pypa/warehouse/blob/master/warehouse/views.py#L206 be ``return HTTPNotFound()`` as stated at https://warehouse.readthedocs.io/development/patterns/#returning-vs-raising-http-exceptions
[17:09:35] <dstufft> berker: yea, must have snuck in somewhere :)
[17:39:04] <controversial> dstufft: Can you check out my PRs? Would you like me to rebase with the latest changes or will you?
[17:42:01] <dstufft> controversial: as long as it merges cleanly you don't need to rebase
[19:01:09] <berker> dstufft: should I make statuspage.url configurable by an env variable?
[19:01:46] <dstufft> berker: yea, that's the normal way of handling it, see like https://github.com/pypa/warehouse/blob/master/warehouse/config.py#L145
[19:02:19] <dstufft> maybe_set(settings, "statuspuage.url", "STATUSPAGE_URL") or so will set the value of the env var STATUSPAGE_URL to the setting "statuspage.url"
[19:12:20] <berker> dstufft: so I was on the right path (just stole from elasticsearch.url), thanks :)