hotwire-django / turbo-django

Unmaintained // An early stage integration of Hotwire Turbo with Django
https://discuss.hotwire.dev/t/django-backend-support-for-hotwire/1570/
Other
385 stars 20 forks source link

Python packaging #2

Closed C4ptainCrunch closed 3 years ago

C4ptainCrunch commented 3 years ago

I was not proud of the hack i wrote in the previous PR so here is a proper python package.

This repo is now installable with pip. I would suggest (as in the README i changed) to install it with pip install -e .. This installs the package in editable mode so you can experiment in the /turbo directory and have your changed taken into account without having to re-install the package.

This should also solve the problem where code in /experiments/* could not import turbo as it was in a parent directory.

Edit: this also enables anybody to pip install git://github.com/hotwire-django/turbo-django.git in their own project and then import turbo.