Closed jayvdb closed 5 years ago
Thanks for the input, DCP indeed lacks django 2+ support.
I'm kinda stuck for now since my big test project for DCP is python2-only, and hence can't run django2+.
But I'll have a look asap at upgrading DCP support for Django 2+ even only with minimal testing.
I've updated DCP, along with my big test project, to support up to Django2.2.1
Works very nicely. My .spec is much nicer now, and ready to submit to openSUSE django collection.
Note there isnt a CHANGELOG entry for 0.5.
Also setup.py is missing tests_require
and test_suite
and other niceties. It would be nice if the license=<url>
was license=MIT
as most tools want that field to contain a SPDX short label. I can submit a PR to tidy this bit up, if you would prefer that.
I'd be quite interested by a PR on setup.py niceties indeed, thanks, I have little experience in python packaging :) Then I'll release a 5.1 with your PR and my updates to the changelog.
Sounds like a good plan.
Any chance you can fix https://github.com/pakal/django-compat-patcher/issues/3 ?
If so, I'll add green CI also.
Ok, I'm looking at it asap.
I've fixed tests, updated changelog, normalized fixer names, and made tox go through "setup.py test".
Could you please review the new setup.py, since making it work with pytest was not straighforward at all ?
CI should work with latest 0.6
0.6 is good enough for my openSUSE packaging, however there are a few minor additions needed for Travis CI and better packaging in the future. PR on the way..
Thanks for the PR, I'll have an additional look asap at how the patcher behaves when django-contrib-comments isn't installed, since it's now an "extra". (leaving ticket open as a reminder)
A good idea. A way to test this is to have a 'nocomments' factor in tox which doesn't install django-contrib-comments. I expect the tests in the current test project will fail, but fail in a sort-of sensible manner. A second test project which doesnt use comments would be needed to properly test how the patcher behaves without django-contrib-comments installed.
Alright, I've updated tox and fixer tests to check that it well returns a meaningful error when importing a missing "module alias" liek django.contrib.comments ; it works fine.
Thansk a lot for your contributions !
I am experiencing this failure on Django 2.2, but I believe it first occurs in Django 2.1
I have built this for openSUSE , but only enabled Python 2/Django 1.11 as the Python 3 builds need both Django 2.1 and 2.2 support.
https://build.opensuse.org/package/show/home:jayvdb:django/python-django-compat-patcher
See also upstream issue at https://github.com/arteria/django-compat/issues/66