django-pgviews icon indicating copy to clipboard operation
django-pgviews copied to clipboard

Django 3.0 and Python 3 Support

Open MightySCollins opened this issue 5 years ago • 7 comments

We would really like to support Django 3 in out app but use django-pgviews quite alot and it uses on six which is now removed. From what I can tell the only usages are in views.py and I tried working on a PR but I do not quite understand how the six.with_metaclass function works and how to replace it.

If anyone is able to advise me I would be happy to submit a PR.

MightySCollins avatar Nov 05 '19 11:11 MightySCollins

In case django-pgviews does not want to abandon python 2 support it might be easier to just add six as dependency of django-pgviews and update the import statement.

If python 2 support is not a requirement, six.with_metaclass can simply be replaced with the python 3 way of defining a metaclass.

t4k1t avatar Jan 23 '20 16:01 t4k1t

In case django-pgviews does not want to abandon python 2 support it might be easier to just add six as dependency of django-pgviews and update the import statement.

If python 2 support is not a requirement, six.with_metaclass can simply be replaced with the python 3 way of defining a metaclass.

It seems that the project is dead ... 😔

Mogost avatar Jan 23 '20 16:01 Mogost

Which is a real shame as we use it in production quite heavily. I have been using my branch directly for a while but I feel like I need to start looking elsewhere...

MightySCollins avatar Jan 24 '20 10:01 MightySCollins

Just wait for a new version of https://github.com/SectorLabs/django-postgres-extra Currently v 2.0 is in alpha stage. You may also help @Photonios with testing and other participation in the project.

Mogost avatar Jan 24 '20 10:01 Mogost

I needed this quite badly, so I forked this repo and updated it, including tests etc. (Now Python 3.6+ only, Django 2.2+ only). Feel free to use.

The repo: https://github.com/mikicz/django-pgviews PyPI release: https://pypi.org/project/django-pgviews-redux/

mikicz avatar Mar 18 '20 11:03 mikicz

Hey all. Apologies for not replying.

I'd recommend using an alternative source for this repo now as I no longer work for the company that maintained this and, as far as I'm aware, maintaining external repos is no longer a priority for the development team.

scott-w avatar Jun 02 '20 15:06 scott-w

@mikicz @scott-w Maybe it's worth transferring this to jazzband, given they help manage quite a number of django libraries?

aragilar avatar Mar 16 '22 01:03 aragilar