jazzband / django-embed-video

Django app for easy embedding YouTube and Vimeo videos and music from SoundCloud.
http://django-embed-video.rtfd.org
MIT License
383 stars 135 forks source link

Clean up deprecated Python and Django code #103

Closed aleksihakli closed 5 years ago

aleksihakli commented 5 years ago

As Python 2.7 deprecation is coming up and the package supports old Python and Django versions, cleaning up old code allows cleaner dependencies, faster development, and better security.

This PR updates the test support matrix for Python 3.7, Python 3.8 and PyPy. It also removes old deprecated compatibility shims supporting e.g. old Django versions that are EOL.

The old testfixtures and mock libraries have also been deprecated in favour or unittest.mock and Python core modules, which allows for a more lightweight test setup.

Travis has been updated to use tox-travis for neater test support and tox file was added to run the tests easily against multiple Python and Django versions in a local environment.

Fixes #102

aleksihakli commented 5 years ago

Upstreaming as no one has object to deprecation.