Skip to content

Conversation

@pganssle
Copy link
Member

@pganssle pganssle commented Jul 6, 2019

Summary of changes

This does two things to alleviate the current (and hopefully all future) problems we're having testing Python 3.3:

  1. Upgrade to the latest supported pip on Python 3.3, version 10.0.1, which actually does seem to support python_requires
  2. Add a constraints file to all pip operations for Python 3.3 pinning all direct and transitive dependencies.

With all dependencies pinned, the 3.3 build should be more stable.

Pull Request Checklist

@pganssle pganssle added this to the Master milestone Jul 6, 2019
@pganssle pganssle force-pushed the pin_py33 branch 3 times, most recently from ab58127 to 346bde9 Compare July 6, 2019 19:37
commands = python -m pytest {posargs: "{toxinidir}/dateutil/test" --cov-config="{toxinidir}/tox.ini" --cov=dateutil}
deps = -rrequirements-dev.txt

[testenv:py33]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line creates a new py33-only testenv just so that I can use different requirements/constraints files, everything else is the same.

@gaborbernat Do you think there's a more effective way to do this? I tried using environment selectors on the requirements.txt files, but tox didn't understand it.

In addition to the DRY violation, the big downside to doing this is that apparently tox -e py won't work properly on Python 3.3, because it won't automatically select the py33 environment.

@gaborbernat
Copy link
Contributor

I can't think of a better way than dropping support for python 3.3 😁

@pganssle
Copy link
Member Author

pganssle commented Jul 6, 2019

I can't think of a better way than dropping support for python 3.3

I don't understand, you are saying that this is the best way other than dropping support for Python 3.3?

As I've said many times before, these tests are in place so that I can accurately determine when we actually add something that doesn't work in Python 3.3. So far, this has never happened, because all the things you need to support Python 2.7 also tend to give you Python 3.3 for free. Once we have a Python 3.3-specific breaking PR, we'll drop support for Python 3.3 (and 3.4, probably 3.5 as well).

@pganssle pganssle merged commit 9e96371 into dateutil:master Jul 7, 2019
@pganssle pganssle mentioned this pull request Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants