Skip to content

[RFC] Should we migrate do Poetry? #3251

Closed
@bitterteriyaki

Description

@bitterteriyaki

Hello, everyone.

I am trying to contribute to this project again, but I am having a hard time because I can't event install the dependencies properly. I tried to use Python 3.12.3 but this projects uses aim package, which is deprecated and removed on Python 3.12. The redis-py documentation tells that this library needs Python 3.7 or higher, so I tried to install Python 3.7.17, but I can't install the dependencies again because the library click needs Python 3.8 or later. Now I am installing Python 3.11 and praying that it works (update: it worked 🙏).

The point is: it is becoming difficult to manage compatibility between versions, and I think that we can bring Poetry to solve this problem. FYI, Poetry is a dependencies manager for Python, better than pip IMO. We can separate dev dependencies from regular dependencies much easier there, and manage different dependencies versions.

I want to bring this conversation. What do you guys think? If there is any impediment to the implementation of this feature, I will be able to listen and give my opinion on it.

Positive points

  • It automatically manages venvs
  • Better dependency management
  • More intuitive segregation of regular dependencies from dev dependencies
  • We can eliminate all library configuration (e.g. isort.cfg) files and leave everything in pyproject.toml, so the project will look cleaner
  • Lockfiles and hash checking, which can improve security

Negative points

  • Everyone will need to install Poetry to work with this library
  • Everyone will need to learn new commands, which can delay the development
  • Configure everything from scratch can take some time

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceMaintenance (CI, Releases, etc)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions