/srv/irclogs.ubuntu.com/2015/01/05/#launchpad-dev.txt

wgrantcjwatson: Should I revert your pytz upgrade?01:31
cjwatsonwgrant: I think so, haven't heard anything from stub as yet regarding my pytz fixes07:19
stub?07:19
cjwatson13:19 <cjwatson> stub: Would it be possible to get a new pytz release with https://code.launchpad.net/~cjwatson/pytz/smarter-utcoffset/+merge/245472 or similar soonish, or should I be looking to revert my Launchpad commit that upgraded to 2014.10?07:19
stubcjwatson: Is this https://bugs.launchpad.net/pytz/+bug/1319939 ?07:21
mupBug #1319939: 2014.3 tz change in US/Central looks wrong <pytz:Opinion> <https://launchpad.net/bugs/1319939>07:21
cjwatsonHm, possibly related07:25
cjwatsonDoes that mean you think the LP test suite should just avoid exercising these cases?07:25
cjwatson(I didn't find that bug because Opinion.)07:26
wgrantAha, hi.07:28
wgrantWelcome to the team.07:28
cjwatsonThanks :-)07:29
wgrantcjwatson: It looks like only that one test is broken because of it?07:33
wgrant    >>> sending_date = datetime(07:33
wgrant    ...     2008, 5, 20, 10, 5, 47, tzinfo=pytz.timezone('Europe/Prague'))07:33
wgrantevil!07:33
wgrantEasy fix :)07:33
stubcjwatson: You should avoid those cases, because using the 'latest' timezone may break too.07:33
stubcjwatson: Or better yet, fix things to correctly construct the localized datetime instances.07:34
stubI need to steel myself to write some C code, so I can get this all sorted in Python core :-P07:34
stubUnless I can find a volunteer07:35
cjwatsonwgrant: There were two or three, I think.07:36
stubAhh... there is the MP. In my 'reviews' folder, with 16k other unread emails. I think I need to improve those filters.07:36
wgrantcjwatson: The others all look like the AxxT short name changes.07:36
cjwatsonOh, no, you're right, it was just that one.07:37
wgrant(upstream was finally convinced to prepend "A" to all the Australian timezonse)07:37
cjwatsonYeah, already have a testfix branch for that.07:37
wgrantWhich we've been wanting for well over a decade.07:37
wgrantExcellent.07:37
cjwatsonOK, I'll soup it up to fix the bugnotification test too to avoid that07:37
cjwatsonThe default timezone __repr__ just seemed sufficiently bizarre that I thought that was going to need a fix :-)07:37
wgrantHeh, yeah...07:42
wgrantnow really does seem like a better option, but perhaps that's an argument for why it shouldn't be the default.07:43
wgrantAt least this makes the bug obvious.07:43
cjwatsonwgrant: https://code.launchpad.net/~cjwatson/launchpad/testfix-pytz-2014.10/+merge/24554708:13
wgrantcjwatson: Yay08:13
wgrantThanks.08:13
cjwatsonLanding08:14
=== ev_ is now known as ev
cjwatsonwgrant: Do you have a bootstrap.py incantation handy that works in lazr.anything?11:49
cjwatsonI keep getting variants of "pkg_resources.VersionConflict: (setuptools 0.6c11 (/tmp/tmpQjsW5z/setuptools-0.6c11-py2.7.egg), Requirement.parse('setuptools>=8.0'))", and my attempts to fix this aren't making things better ...11:49
stubYour only going to get a version of setuptools that recent via pip or buildout11:52
wgrantcjwatson: Where did you obtain that bootstrap.py, and how are you invoking it?11:52
wgrantThere was also a setuptools debacle recently.11:52
wgrantWhere they unreleased a version.11:52
wgrantThough that was setuptools 10.2, so not relevant.11:53
cjwatsonwgrant: lazr.yourpkg11:56
cjwatsonand "python bootstrap.py", after symlinking in download-cache and eggs per https://dev.launchpad.net/HackingLazrLibraries11:56
cjwatson(in a precise LXC instance)11:57
cjwatsonactually, sorry, I replaced that bootstrap.py with http://downloads.buildout.org/1/bootstrap.py after previous problems ...11:58
cjwatsonstub: yeah I don't actually want a newer setuptools and haven't asked for that; have not been able to puzzle out where that requirement is coming from11:58
stubI imagine one of the buildout dependencies is modern setuptools, so it needs to be installed before buildout (in the python venv, or package or pip I guess?)11:58
cjwatsonwgrant: but lazr.restful (say) behaves this way if invoked via "python bootstrap.py" on precise11:59
cjwatsonoh, here, "python bootstrap.py --setup-source=ez_setup.py --download-base=download-cache/dist --eggs=eggs --version=1.7.1" at least bootstraps ... what a mess12:00
stubThat is a polite way of putting it12:01
cjwatson(but then bin/buildout fails)12:01
wgrantcjwatson: The incantation should be in the various makefiles of things that have been touched recently.12:01
cjwatsonI don't suppose you have an example?  The only ones I can find that have a Makefile just have python bootstrap.py or python -S bootstrap.py.12:04
cjwatsonAnd lazr.uri make fails in both precise and vivid.12:05
wgrantlazr.restful(client) should work.12:05
wgrantI think12:05
wgrantLet me see.12:05
xnoxi have been removing bootstrap support and moving towards "normal" setuptools + python setup.py test12:05
xnoxhowever there is a magical set of commands that do work with bootstrap/buildout12:06
xnox(none of them work with python3, and one needs to do bootstrap of the bootstrap utils first to make sure none of the system things (e.g. setuptools) are used)12:06
xnoxsigh, my working rebootstrap script is in ~/bin/ on my laptop and not with me atm, so I can't share it with you.12:07
cjwatsonMaybe I should just leave whatever broken bootstrap crap comes from lazr.yourpkg in place, ignore it, and just use setup.py directly.12:23
cjwatsonBut I kind of want to get versions.cfg right.12:23
xnoxyes, versions.cfg is nice. but it's a pain to use/update at the moment. As most of versions listed there are obsoleted (e.g. much newer stuff is on pypi and in precis/trusty)12:27
xnoxand it does not work in python3.12:28
xnox=/12:28
cjwatsonSure, but for something that will be imported into the main Launchpad tree I need to make sure that it's at least buildout-compatible.12:33
wgrantcjwatson: The versions.cfg in the lazr project is only relevant for development.12:36
wgrantLikewise any buildout or bootstrappery.12:37
wgrantLaunchpad's buildout and versions.cfg are used when it's imported into LP12:37
wgrantxnox's approach is probably best, at least for simple cases like this.12:38
xnoxcjwatson: wgrant: Happy New Year! =) all the awesomely best in this year ;-)12:45
wgrantxnox: Likewise! Hope you're doing well in your new role.12:46
xnoxwgrant: i think so ;-)12:48
wgrant:)12:50
cjwatsonOK, using a venv to run bootstrap.py and then using "bin/buildout buildout:install-from-cache=true buildout:download-cache=download-cache buildout:eggs-directory=eggs buildout:allow-picked-versions=false -v" appears to be working somewhat better14:23
=== beuno_ is now known as beuno
cjwatsonwgrant: Do you want to have a look over lp:lazr.sshserver before I call it 0.1?  I have an LP branch that uses it and passes the relevant tests.16:31
=== infinity_ is now known as infinity
=== timrc_ is now known as timrc
wgrantcjwatson: Were you able to reuse anything from lazr.yourpkg?22:18
cjwatsonwgrant: Saved me figuring out the skeleton from scratch, I guess, and writing the basic generic docs22:57
cjwatsonwgrant: I kept most of buildout.cfg too22:57
wgrantcjwatson: Sounds good. I'd split out poppy to make sure it's sufficiently reusable before releasing it, though.23:00
cjwatsonFair.23:01
cjwatsonI'll grab that task and do it tomorrow.23:02
wgrantThanks. The most non-trivial bit is probably the config.23:03
wgrant(txlongpoll was in a similar situation, and nowadays uses a yaml config file)23:04
cjwatsonYeah, that would make sense.  Its config isn't very complicated.23:09
wgrantIt's also currently weird because it takes the path on the commandline, but the rest of the config in lazr.config.23:10
cjwatsonwgrant: Used to; I don't think it does any more.23:11
wgrantOh, true.23:12
cjwatsonpoppy will have to end up as lazr.poppy I guess, because23:30
cjwatsonhttps://launchpad.net/poppy23:30
elmopretty please rename it entirely?23:31
elmoit's one of the old katie style names23:32
elmoalbeit less obvious than some23:32
wgrantYeah, we always rename things when they're extracted.23:32
wgrantOr moved.23:32
wgrantIf they had stupid names before.23:32
cjwatsonYeah, also fair.23:32
cjwatsonlazr.uploadserver?  Bit generic but ftporsftpuploadserver is just no23:35
wgrantIt is quite Debian-specific23:36
elmoanonymousdebianuploadserverbutcouldbeconceivablyusedforotherthings23:36
wgrantIn that it has special behaviour on .changes files, etc.23:36
cjwatsonOr maybe launchpad- since it's not really a reusable component in the lazr sense.23:36
wgrantI wouldn't call it lazr-, no.23:36
wgrantBut it also won't be using any Launchpad-specific interfaces within a couple of months.23:36
cjwatsonwgrant: changes> It does?  AFAIK its special behaviour is more about (S)FTP sessions.23:37
elmoheh, yeah, I stumbled across a bug from iwj complaining about that the other day23:37
elmo(suggesting it special case .changes instead)23:37
elmo4 digit bug or something23:37
wgrantHuh, indeed.23:37
cjwatsonWell, there's the distro detection thing23:37
wgrantThe only special handling it has is for the .distro files, which are dreadfully obsolete anyway.23:38
wgrantI thought we deleted that code years ago...23:38
wgrantOh, it used to have the .changes special case when it checked signatures.23:39
cjwatsonMeh, will think about it tomorrow.  Night.23:40
wgrantNight!23:40
wgrantI hate naming things.23:40

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