Django-CRM icon indicating copy to clipboard operation
Django-CRM copied to clipboard

1st poetry

Open GigiusB opened this issue 2 years ago • 2 comments

I believe poetry (https://python-poetry.org/) is a much better solution at managing python dependencies as it prevents conflicts in sub-dependencies.

Rather than pip install -r requirements.txt you will need poetry install in order to set up the project.

I have renamed the setup.py to setup.py.obsolete as with poetry the pyproject.toml contains the relevant information and the setup.py is built automatically when the distro package is built: poetry build -f sdist

I tend also to use direnv and pyenv for which I have added and .envrc.example and .env.example (to be renamed without the .example and configured with the environment) and the .python-version to specify the python version(s) that we want to use for development.

I also introduced django-environ which I believe to be a more django friendly alternative to python-dotenv and trying to apply 12 factor best practices where environment variables define all that is needed for the configuration rather than having different settings file.

GigiusB avatar Feb 24 '22 08:02 GigiusB

Hi @GigiusB This is awesome . I am new to poetry and pyenv. I will take few more days to understand and release along with the setup video that I am planning.

ashwin31 avatar Mar 09 '22 04:03 ashwin31

+1. has there been any update?

codecakes avatar Mar 09 '24 07:03 codecakes