New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup.py: Removed httpretty dependency #69
Conversation
Thank you for investigating it further. Httpretty is pinned by See Travis logs:
Hopefuly we can get to the bottom of this soon. |
Did not know this, my bad 🙈 |
@tmylk after some more thinking I still believe that we should remove this. If this was here just for Even if I am wrong, and removing it would not resolve #40 I still believe that restating moto's dependencies is unnecessary and should be removed. What do you think? |
Thanks for your suggestion and investigating it further. You are welcome to remove this requirement in your private fork. |
If so, why do you then install |
Further, if Thanks for being patient with me and sorry for bothering you so much, but I really cannot see the reasons behind this. |
Do you agree that if the httpretty pin is dropped the Travis will be different from your LC_ALL=C setup? |
Yes, I agree that it will be different. However, it will only differ in Before reading the rest of my discussion, let me stress that my only intention is to help. To help me fix the issue and to help other who might encounter it. I am not trying to compromise test and stability. I wouldn't be proposing this otherwise. If you convince me that doing this is harmful I will stop and not bring it up again. Let me try to convince you one more time. Here are my reasons:
Hope that you understand my concerns. Please, let me know what you think about this. |
Hey, It is good to keep talking about it as it makes the logic clearly.
What makes you think that it 'could' work if the pin is removed? Automated tests don't run in that setting. I have no idea if it works or not. Do you suggest we run some manual tests here? |
The same @piskvorky's argument applies: If there are any requirements pertaining to tests only (e.g. moto, mock and responses), you should set them in setup.py's
Was the pull request green before it was closed? |
If we remove the
Yes, they do! Look at this PR. After I removed The reason they run just fine is that nothing whatsoever changes for Travis. The environment there will be exactly the same. Look at the current Travis log at line 130.
No. We should make with work with Travis — as a matter of fact, it already works there 😄 |
@tmylk any thoughts on this? |
Could you suggest a way to automatically test a setup that allows for LC_ALL=C? Moto currently doesn't work with it because of httpretty. |
I think we should wait for Moto to fix it's problems first, before adding the test. Currently, we cannot set Either way, I believe we should remove |
@tmylk just a reminder, could we consider removing |
@nikicc Yep, thanks for the perseverance. Let's merge. Please let me know if it works for you. You are our only test in this case. :) |
@tmylk: Thanks! I'm very happy to see it merged 😉 I build a package with |
Checking whether
httpretty
is really required? When looking at code I could not find any imports ofhttpretty
. The filetest_smart_open.py
usesmock
— an other library for mocking. This also explain, why some versions broke tests. So, I suppose, thathttpretty
is here only due to some legacy reasons and can therefore be removed.@tmylk can you double check this? I think we can remove
httpretty
from dependency list and thereby also resolve some issues.