Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-16 Thread Saager Mhatre
On Sep 16, 2013 8:46 AM, Dhananjay Nene dhananjay.n...@gmail.com wrote: let me state that while I pin requirements.txt To be just a little pedantic here- you pin version of dependencies, not the entire requirements.txt. Just saying... 'cause, even though I may have myself used the phrase in

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-16 Thread Dhananjay Nene
On Mon, Sep 16, 2013 at 4:18 PM, Saager Mhatre saager.mha...@gmail.com wrote: On Sep 16, 2013 8:46 AM, Dhananjay Nene dhananjay.n...@gmail.com wrote: let me state that while I pin requirements.txt To be just a little pedantic here- you pin version of dependencies, not the entire

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-15 Thread Vivek Puri
I was perhaps misunderstood. If you test (even with say travis) but without a pinned requirements.txt, and then create a dist and later deploy the dist onto the server using a pip install (w/o a requirements.txt) then you no longer have a repeatability in terms of transient dependencies.

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-15 Thread Kiran Jonnalagadda
On Sun, Sep 15, 2013 at 6:44 PM, Vivek Puri vpuri.soc...@gmail.com wrote: I also feel your understanding is correct. Using some form of CI like travis is good but it doesn't rule out pinning the requirements. Maybe kiran has unlimited resources I only have more experience with long term

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-15 Thread Saager Mhatre
On Sep 16, 2013 12:38 AM, Kiran Jonnalagadda j...@pobox.com wrote: We deploy multiple times a day and I don't find that the gap between a Travis test and production deployment is so long that an upstream release within those few seconds broke compatibility. Kiran Dude, can I quote you on

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-15 Thread Noufal Ibrahim
Kiran Jonnalagadda j...@pobox.com writes: [...] I only have more experience with long term maintenance of code. Pinned requirements == complacency == future breakage, when maintenance is much more expensive than it is today. We deploy multiple times a day and I don't find that the gap

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-15 Thread svaksha ॥ स्वक्ष
On Sun, Sep 15, 2013 at 8:55 PM, Saager Mhatre saager.mha...@gmail.com wrote: On Sep 16, 2013 12:38 AM, Kiran Jonnalagadda j...@pobox.com wrote: We deploy multiple times a day and I don't find that the gap between a Travis test and production deployment is so long that an upstream release

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-15 Thread Vivek Puri
I only have more experience with long term maintenance of code. I am quite positive that people who are in favour of pinning have experience in equally long term maintenance of code. Pinned requirements == complacency == future breakage, when maintenance is much more expensive than it is

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-14 Thread Vineet Naik
I too have learnt the hard way how `--upgrade` can cause conflicts due to the `pip freeze` flattening the dependency tree. What works for me though is to keep requirements.txt completely out of picture when upgrading packages ie. to upgrade manually and preferably do it one package at a time as

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-14 Thread Baishampayan Ghose
Oh! Is that a big deal? Of course we pin our requirements (in all languages) and that's how it should be done. Otherwise you can't get repeatable builds. ~BG On Thu, Sep 12, 2013 at 5:45 PM, BibhasD m...@bibhas.in wrote: Quick googling suggests pinning = specifying versions. I do it. I think

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-14 Thread Dhananjay Nene
On Sat, Sep 14, 2013 at 2:56 PM, Noufal Ibrahim nou...@nibrahim.net.inwrote: Baishampayan Ghose b.gh...@gmail.com writes: Oh! Is that a big deal? Of course we pin our requirements (in all languages) and that's how it should be done. Otherwise you can't get repeatable builds. ~BG I

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-14 Thread Noufal Ibrahim
Dhananjay Nene dhananjay.n...@gmail.com writes: [...] The difficulty with that approach (I've never actually done it) is that it requires versioning these bundles, make them available to your installation scripts and code to them (lately I've started using ansible to do this). I know. I

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-14 Thread Kiran Jonnalagadda
We almost never pin at HasGeek. If an external library breaks API, we upgrade our code ASAP (we discover breakage from Travis reports). Between the risk of breaking code and having the hot seat at any hint of bit rot, I find the latter preferable. Kiran -- Kiran Jonnalagadda

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-14 Thread Dhananjay Nene
On Sat, Sep 14, 2013 at 11:00 PM, Kiran Jonnalagadda j...@pobox.com wrote: We almost never pin at HasGeek. If an external library breaks API, we upgrade our code ASAP (we discover breakage from Travis reports). I know I sound a little too particular, and frankly that is not my intent, but

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-14 Thread Kiran Jonnalagadda
Thanks to Travis, we test every commit, before deployment. -- Kiran Jonnalagadda http://jace.zaiki.in/ http://hasgeek.com/ (Sent from my phone) On Sep 14, 2013 11:58 PM, Dhananjay Nene dhananjay.n...@gmail.com wrote: On Sat, Sep 14, 2013 at 11:00 PM, Kiran Jonnalagadda j...@pobox.com wrote:

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-14 Thread Dhananjay Nene
On Sun, Sep 15, 2013 at 3:43 AM, Kiran Jonnalagadda j...@pobox.com wrote: Thanks to Travis, we test every commit, before deployment. I was perhaps misunderstood. If you test (even with say travis) but without a pinned requirements.txt, and then create a dist and later deploy the dist onto the

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-14 Thread Sriram Narayanan
On Sep 15, 2013 4:37 AM, Dhananjay Nene dhananjay.n...@gmail.com wrote: On Sun, Sep 15, 2013 at 3:43 AM, Kiran Jonnalagadda j...@pobox.com wrote: Thanks to Travis, we test every commit, before deployment. I was perhaps misunderstood. If you test (even with say travis) but without a

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-13 Thread Saager Mhatre
On Sep 13, 2013 9:19 AM, Dhananjay Nene dhananjay.n...@gmail.com wrote: [...] Given adequate test coverage to verify negative side effects of any transitive dependency version upgrades, pinning could be skipped imo. Dhananjay +1 for automated tests to cover relevant API contracts of

[BangPypers] Do you pin your requirements.txt ?

2013-09-12 Thread Shabda Raaj
Curious how many people are doing/not doing it. (We pin our requirements.txt). -- Thanks, Shabda Agiliq.com - Building Amazing Apps agiliq.com/blog/ | github.com/agiliq US: +13152854388 | IN: +919949997612 | Skype: shabda.raaj Our Android Apps

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-12 Thread Baishampayan Ghose
What do you mean by pin? ~BG On Thu, Sep 12, 2013 at 5:37 PM, Shabda Raaj sha...@agiliq.com wrote: Curious how many people are doing/not doing it. (We pin our requirements.txt). -- Thanks, Shabda Agiliq.com - Building Amazing Apps agiliq.com/blog/ | github.com/agiliq US: +13152854388 |

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-12 Thread BibhasD
Quick googling suggests pinning = specifying versions. I do it. I think that makes more sense if you're depending on 3rd party packages. -- Bibhas On Thursday 12 September 2013 05:41 PM, Baishampayan Ghose wrote: What do you mean by pin? ~BG On Thu, Sep 12, 2013 at 5:37 PM, Shabda Raaj

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-12 Thread Vineet Naik
I always pin requirements. Here is a related article on the topic - http://nvie.com/posts/pin-your-packages/ On Thu, Sep 12, 2013 at 5:45 PM, BibhasD m...@bibhas.in wrote: Quick googling suggests pinning = specifying versions. I do it. I think that makes more sense if you're depending on 3rd

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-12 Thread Aditya Laghate
On Thu, Sep 12, 2013 at 05:50:27PM +0530, Vineet Naik wrote: I always pin requirements. Here is a related article on the topic - http://nvie.com/posts/pin-your-packages/ Interesting blog link. I did like the idea of using '==' instead of '=' ___

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-12 Thread Abdul Muneer
I also pin requirements. But when I do 'pip freeze', I remove the packages that are installed as a dependency to main libraries which were explicitly installed. Packages from pypi may specify dependency as = and it will fetch the latest. But if you had pinned those too, it can cause conflicts

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-12 Thread Saager Mhatre
On Thu, Sep 12, 2013 at 6:30 PM, Abdul Muneer abdulmun...@gmail.com wrote: I also pin requirements. But when I do 'pip freeze', I remove the packages that are installed as a dependency to main libraries which were explicitly installed. I tend to avoid using 'pip freeze' as part of my dev

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-12 Thread Dhananjay Nene
On Fri, Sep 13, 2013 at 12:38 AM, Saager Mhatre saager.mha...@gmail.com wrote: On Thu, Sep 12, 2013 at 6:30 PM, Abdul Muneer abdulmun...@gmail.com wrote: I also pin requirements. But when I do 'pip freeze', I remove the packages that are installed as a dependency to main libraries which were