-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
reponses requires coverage < 4.0.0 but many systems ships coverage >= 4.0.0 #95
Comments
Personally I strongly disagree with packaging Python libraries with distros. The dependency hell that I've seen requests go through, along with the obvious fact that it simply doesnt work due to Python not supporting multiple lib versions, makes me very much against the pattern. With that said, if you want to put the effort into ensuring it works with both coverage 3.x as well as 4.x, I'm not against bumping the requirements here. |
Regardless your opinions about distribution packaging (I'd love to know how you think a distribution should write any of its core code in python if it can't package any libraries...), 'pinning' dependencies to outdated versions in this way is hardly a viable long-term strategy. It's not as if upstream coverage is supporting multiple major release series, they're not cutting 3.x releases or supporting them any more. |
edit again - sorry for the bouncing, turns out I had an issue with an old pytest-flakes conflicting with new pytest. With python 3.5.1, pytest 2.8.5, coverage 4.1b1, flakes 1.0.0, pytest-cov 2.2.0 and pytest-flakes 1.0.1, the py3 coverage test appears to work fine:
It also works fine if I skip It may still not work with py3.2 or some other ancient py3 version, but does that really merit forcibly preventing the use of an up-to-date coverage in |
@AdamWill we dont need to support 3.2 -- if you want to submit a PR with the change we can get it in. I'd prefer to keep it still version locked, but coverage.py has historically been good so im ok with saying <5.0 |
OK, thanks, I'll submit a PR and we'll see how the travis run goes. |
Coverage testing seems to work fine at least with 4.1b1 and Python 3.5 (tested on Fedora Rawhide), and this kind of pinning is not viable in the long term and causes problems for downstream distributors who include the newer coverage.
So the coverage dep was pinned to < 4.0.0 because of an issue between coverage and Python 3.2 (py3.2 doesn't accept the u'' syntax). This is fairly well-known, it seems, and the standard response is simply to drop Python 3.2 testing: geopython/OWSLib#291 menegazzo/travispy#20 ipython dropped Python 3.2 support for the same reason: https://stackoverflow.com/questions/28724785 so I think this is a sensible choice here too. It's not workable to pin coverage to an old and unsupported release indefinitely, and causes problems for downstreams which include coverage 4.x.
stop pinning coverage requirement to < 4.0.0 (#95)
I am following a procedure that will bring responses inside official Fedora repositories.
responses needs coverage < 4.0.0 but Fedora 23 ships coverage 4.0.3, so during RPM package creation, when the system runs checks/tests I obtain errors
Is there anything we can do?
The text was updated successfully, but these errors were encountered: