formulae icon indicating copy to clipboard operation
formulae copied to clipboard

use poetry

Open teucer opened this issue 2 years ago • 7 comments

I think it would be helpful to use poetry for dependency management and package building process.

teucer avatar Mar 08 '22 09:03 teucer

I've seen Poetry in other projects, but I'm not very aware of its advantages over what we already have. What would be different/better with Poetry? (asking from an ignorant perspective, I'm not familiar with it)

tomicapretto avatar Mar 08 '22 15:03 tomicapretto

This link explains the use.

In a nutshell: poetry helps to specify, install, and resolve external packages. It also supports to deploy to pypi. No need to have setup or requirements files.

teucer avatar Mar 08 '22 16:03 teucer

Please let me know if this is something that you would like to do: I can send a PR...

teucer avatar Mar 09 '22 14:03 teucer

I prefer to keep the project as it is in terms of tools for dependency management, package building, etc.

I understand Poetry is helpful. But in our case everything we need is already working so I don't think it is a good time to change it. It implies some work and I don't see the benefits now.

tomicapretto avatar Mar 09 '22 16:03 tomicapretto

Point taken. I still think poetry would open the door for an easier setup for development purposes, hence more contributors. It is as easy as "poetry install".

teucer avatar Mar 10 '22 22:03 teucer

I understand. Maybe once I use poetry in another project and understand the benefits we can revisit this issue here.

tomicapretto avatar Mar 11 '22 11:03 tomicapretto

Even though I'm a poetry fan, the setup is pretty straight forward.

pyenv local 3.9
python -m venv .venv
source .venv/bin/activate
python -m pip install -e .

wd60622 avatar Jun 22 '23 05:06 wd60622