[15:26:57] <qwebirc16912> Hey guys. Does pip supports hooks? basically I want `pip freeze > req.txt` to be run whenever I do pip install or remove some package. any suggestions?
[15:30:51] <Wooble> what, without running your test suite first?
[15:32:59] <qwebirc16912> well I want to be run after uninstall also
[15:33:08] <qwebirc16912> so, I don't really care about tests
[16:36:57] <jessamynsmith> qwebirc16912: I guess you could script it yourself
[16:40:27] <qwebirc16912> jessamynsmith: thats what I did :)
[16:43:19] <jessamynsmith> I handle this scenario differently
[16:43:46] <jessamynsmith> I have a git pre commit hook that runs all my tests, lints my code, and also verifies that requirements files are up to date with the virtualenv
[16:46:40] <doismellburning> jessamynsmith: is that not what a CI server's for? :P
[16:46:51] <jessamynsmith> I'd rather not break my builds
[16:47:01] <jessamynsmith> but yes, it is similar to what that does
[16:47:10] <doismellburning> I'm happy to break builds on non-mainline branches
[16:47:43] <jessamynsmith> different styles, I guess
[16:48:18] <jessamynsmith> doismellburning: my CI server is mostly to deploy to heroku, if all is well :p
[16:48:22] <jessamynsmith> it does verify that all is well
[16:50:32] <jessamynsmith> doismellburning: how do you work that in a team environment? only ever one person per branch, and CI builds every branch? how do you collaborate
[16:51:14] <doismellburning> jessamynsmith: we don't _enforce_ one person per branch, but that's what tends to happen
[16:51:16] <carljm> jessamynsmith: our CI builds every branch (where "our" doesn't include doismellburning - just giving another data point :-) )
[16:51:32] <jessamynsmith> carljm: is there an easy way to do that on Jenkins?
[16:51:33] <carljm> jessamynsmith: and we frequently have multiple people working on a branch
[16:51:43] <doismellburning> jessamynsmith: GHPRB and strong alcohol
[16:51:46] <jessamynsmith> (build every branch, I mean)
[16:51:46] <carljm> jessamynsmith: we use Circle CI, not Jenkins, where its automatic
[16:54:01] <carljm> jessamynsmith: in any case, we do have multiple people collaborating on a branch frequently. a long-term broken build on a branch is irritating (and we discourage it), but not a deal-breaker
[16:54:11] <doismellburning> carljm: my point is more, you don't _need_ to pay, even if there's many occasions where you'll want to
[16:55:59] <carljm> a broken build in master we take much more seriously
[16:56:07] <jessamynsmith> I dunno, I find it pretty annoying when I want to commit and I can't because someone else brokethe build
[16:56:17] <doismellburning> "broke-the-build" shame is for people using CVS/SVN
[16:56:19] <jessamynsmith> yeah, sure, I can stash and work on something else
[16:56:24] <jessamynsmith> but it's still annoying
[16:56:24] <doismellburning> where branching's hard so people don't
[16:57:01] <carljm> jessamynsmith: well if you don't have a commit hook that forces everything to pass before you commit, you don't have the "can't commit" problem :-)
[16:57:33] <carljm> if the front-end people have some failing JS tests in the branch still, I can happily commit Python if I know the Python tests are passing. etc.
[16:58:01] <carljm> or even if its failing Python tests, if I know the same ones were failing before my commit
[16:58:02] <doismellburning> carljm: see at that point, I'd get them to branch off the branch ;)
[16:58:18] <carljm> like I say, we still do try to avoid it, just don't consider it a huge problem if it happens
[16:58:20] <doismellburning> (this is why we have mostly single-author branches)
[16:58:29] <jessamynsmith> carljm: I've only ever worked at places that disallow commits to broken builds
[16:58:37] <jessamynsmith> it's not a matter of a hook, it's a matter of process
[16:58:53] <jessamynsmith> so... do you even run tests locally?
[16:58:58] <jessamynsmith> or do you just commit whatever
[17:01:57] <carljm> tolerating that would be a killer
[17:01:59] <doismellburning> just not on $random-branch
[17:02:03] <carljm> it's really a different view of the purpose of branches
[17:02:18] <carljm> and the value of frequent commits, even of experimental/unfinished code
[17:02:37] <doismellburning> http://blog.doismellburning.co.uk/2015/05/29/some-things-id-like-you-to-do-when-writing-software/#PRs.for.everything - "try things out in a safe environment"
[17:02:41] <carljm> we consider it much more problematic if a developer "goes dark" for days on end because they're trying to get everything all shaped up before committing
[17:03:12] <doismellburning> I do not want people sitting polishing something before they push it
[19:00:08] <The-Compiler> It seems virtualenv doesn't work on Windows with --python=... - is this something weird on my system or a virtualenv bug? http://paste.the-compiler.org/view/c9882277