Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1st poetry #465

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

1st poetry #465

wants to merge 3 commits into from

Conversation

GigiusB
Copy link

@GigiusB GigiusB commented Feb 24, 2022

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.

@ashwin31
Copy link
Member

ashwin31 commented Mar 9, 2022

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.

@codecakes
Copy link
Contributor

+1. has there been any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants