/srv/irclogs.ubuntu.com/2015/03/12/#launchpad-dev.txt

wgrantcjwatson: O08:27
wgrantBah08:27
wgrantcjwatson: https://code.launchpad.net/~wgrant/turnip/no-buildout/+merge/25269208:27
wgrantI've dropped buildout and hopefully made the non-buildout packaging a bit easier to use.08:27
wgrantsetup_requires is approximately the worst thing in the world (it'll make setuptools talk to PyPI behind pip's back, even if you've disabled PyPI in pip), and the only way to work around that seems to be a ~/.pydistutils.cfg snippet.08:28
wgrant(we have a couple of our OpenStacky deps in LP patched to remove their setup_requires=['pbr'] for that reason)08:29
wgrantI swore not to get distracted by juju today.08:32
wgrantAnd instead got distracted by Python packaging.08:32
wgrantAnd didn't get anything actually finished.08:32
blrwgrant: hah, I'm not sure which of the two is more painful :)09:04
cjwatsonwgrant: Have you tested that this works properly when doing "make deploy" in the charm from vivid?  I'd been somewhat careful about not adding pygit2 to requirements.txt to avoid problems there.09:11
blrcjwatson: should be ok, libgit2-21 is in vivid?09:15
cjwatsonWell, consider if vivid upgrades to a newer version; my point isn't so much what vivid happens to have today, it's being independent of the deployment system09:19
cjwatsonIf w has libgit2-27, I don't want to end up in a dilemma about what version of pygit2 we can use because some of us are on vivid and some on w, say09:20
blrcjwatson: perhaps we should just be following trunk09:20
cjwatsonThat isn't my point09:20
blris there a workflow for automating packaging from github?09:20
cjwatsonMy point is to make sure that things work regardless of what libgit2, or none, is on the system you're deploying from09:21
cjwatsonThe strategy I had in place was to install python-pygit2 from the LP PPA in the unit, and virtualenv --system-site-packages to make use of it, so that we can control that precisely without having to deal with pip09:22
cjwatsonI want to check that adding it to requirements.txt doesn't disturb that09:22
cjwatson(It may not, because wgrant also added version bounds that I don't think I tried)09:22
blralways a little reluctant to use --system-site-packages, but that does sound sensible.09:23
cjwatsonI think it's less of a problem with immutable or mostly immutable units09:24
cjwatsonThen again I come from a distro background, so ...09:24
blrno, I think that's fair.09:25
cjwatsonAnyhow, if wgrant has finished up then I'll try the charm in a bit09:26
blrjust as buildout was starting to grow on me... :)09:27
blrassuming there isn't anything too braindead in commit/log api branch, I'll spend tomorrow on deployment/mojo09:28
blrright, bedtime. night cjwatson09:31
cjwatsonNight!09:32
wgrantcjwatson: Yeah, the charm was the bit I wasn't completely sure about.09:36
wgrantI suspect that if we want to use requirements.txt with a Debian pygit2 we may end up in trouble, unless we match the dep versions exactly (which can be seen in my diff).09:36
wgrantI'm not sure which is more ugly.09:37
wgrantsystem-site-packages, or being tied to a particular libgit209:37
wgrantThough in practice we're tied to a particular libgit2 anyway, since both it and pygit2 break API every release...09:37
cjwatsonRight, well, the basic problem is that we can't install libgit2 from pip, so that's got to come from the system, and thus we have to go to special care to match it anyway09:39
cjwatsonLet's see09:40
cjwatsonwgrant: Nope09:42
cjwatsonwgrant: http://paste.ubuntu.com/10584585/09:42
cjwatsonI deliberately don't have libgit2-dev installed here to make sure we don't have hidden dependencies on it09:42
cjwatsonwgrant: Try pulling cffi, pycparser, pygit2 back out of requirements.txt?09:43
cjwatsonI see https://twistedmatrix.com/trac/ticket/7795 is making progress, too ...09:46
* cjwatson tries that09:48
cjwatsonwgrant: http://paste.ubuntu.com/10584612/ makes the charm work again.09:51
cjwatsonwgrant: Perhaps a compromise would be moving that to pygit2-requirements.txt, so that you can still use pip for that for local development if you want to deal with the libgit2 issues?09:52
cjwatsonblr: I think you could drop ['commit_time'] from format_commit in your commit-api branch.  It exactly duplicates ['committer']['time'], and even though pygit2 has both there's no reason for us to.10:04
wgrantcjwatson: Sorry, distracted by real life. Let me see.10:05
wgrantSplitting those out into a separate requirements file might be sensible, indeed.10:06
wgrantcjwatson: The charm didn't whine about anything else?10:06
wgrantI'll test it properly before I merge, but need to set up a less tainted Juju VM.10:06
wgrantcjwatson: You're not unhappy with a --system-site-packages virtualenv for dev locally?10:07
cjwatsonwgrant: No other whines.  I'm fine with that kind of virtualenv for dev locally; the way I do it is to use a trusty lxc container that has the LP PPA enabled.10:28
cjwatsonwgrant: Does https://code.launchpad.net/~cjwatson/launchpad/db-git-more/+merge/252672 look vaguely plausible?10:32
cjwatsonOr did you want to see the matching code branch first?10:32
wgrantcjwatson: I wouldn't mind seeing the code.10:32
cjwatsonRight, let me finish off the remaining possible tests today.10:33
cjwatsonOh, URL scheme for exported refs, that was the other thing I had to work out.10:34
cjwatsonI think I'll just drop the exports and deal with that in a later branch.10:35
wgrantcjwatson: Yeah, variable-length paths ftl.10:36
wgrantcjwatson: Oh wow, just notced the Twisted ticket open in my browser. That is good news.11:11
wgrantHuh12:48
wgrantThe turnip charm doesn't actually explicitly install git12:49
wgrantIt was always there anyway when deploying from utopic and vivid to trusty, but not trusty to trusty...12:49
=== mgz is now known as mgz_
cjwatsonwgrant: We'll have to work out some kind of URL scheme for refs, otherwise we can't usefully show summaries of branches.16:31
cjwatsonwgrant: Strawman: filter to refs/heads/ only, and URL-encode the rest.16:33
cjwatson(We may need to show tags at some point, but that should be separate anyway.)16:33
blrcjwatson: thanks colin, yes commit_time is redundant, you're right.19:45
blrcjwatson: was there anything else that obviously needed addressing?21:17
cjwatsonblr: I didn't quite get as far as actually running anything against it today, so I was just going on inspection.  Didn't see anything else.21:18
blrcjwatson: ok, thanks.21:19
cjwatsonHopefully tomorrow, since I'm about to need to fill in the committer information in order to be able to progress with UI.21:19
cjwatsonBut my git-ref-scanner branch was big enough, and I wanted to start with something that only required today's lp:turnip...21:20
wgrantcjwatson: Well, traversing refs properly in a Zopey world isn't actually a problem.22:04
wgrantcjwatson: You can just have a traverser that consumes segments until it matches or can't match a ref. You don't even need a marker to indicate that traversal should stop, because a ref cannot be a prefix of another, as they're represented (ignoring packed-refs) as a directory tree.22:31
wgrantblr: Is your commit-api branch ready for review?22:32
cjwatsonwgrant: oh, I thought you were vetoing variable-segment-length paths on principle23:00
wgrantcjwatson: Oh, no, that would be ugly and there's no need.23:01
wgrantIf we were using stupid regex-based path matches we'd be in trouble, but luckily Zope is sane in respects like this.23:01
cjwatsongithub seems to strip off refs/heads/23:01
wgrantcjwatson: I probed around to work out their rules at some point, let me see if I can find that piece of paper.23:01
cjwatsonbut they do permit multiple segments after that23:02
wgrantYou can specify the full path, but they try stripping off refs/heads and refs/tags in that order.23:02
wgrantWhich makes sense.23:02
blrwgrant: it is yep23:23
wgrantblr: Hm, I see that pygit2 decodes the message for us. Do you know how it does that?23:46
wgrantIt's probably fine, but best to check.23:46
blrwgrant: didn't see anything explicit in the documentation, will have to look at the source.23:48
wgrantblr: libgit2 uses the encoding field in the commit message, but I wonder what it does on invalid UTF-8/23:48
blrwgrant: perhaps need another latin-1 test for the commit body?23:49
wgrantblr: Indeed. Git commit messages are text, and they have an encoding field, so latin-1 can be coped with. But we should ensure we don't crash on cases where the message doesn't decode, as that's technically possible.23:49
wgrantHm23:50
wgrantI'm making a whole lot of suggestions here that make a lot of sense if 0.22 changed the API..23:50
wgrantHm, no, these properties seem to exist in 0.2123:51
blrtangential, but looking at the changelog, it might make sense to upgrade to 0.22 before working on clone.23:54
wgrantIndeed, it makes sense to track upstream as close as reasonably possible.23:56

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!