center-randomize icon indicating copy to clipboard operation
center-randomize copied to clipboard

Adopting Poetry or Rye for Dependency Management

Open manisha841 opened this issue 10 months ago • 6 comments

Managing dependencies as the project grows is quite a task, requirements.txt lacks support for dependency version locking, which comes with other maintenance challenges. There are package managers like Rye or Poetry that manage dependencies efficiently.

manisha841 avatar Apr 22 '24 12:04 manisha841

Adding on to this, the current requirements.txt should be changed to something like test_requirements.txt. Standard Python codebases usually reserve requirements.txt (or, use the fields inside the pyproject.toml) to specify the actual requirements.

justfoolingaround avatar Apr 22 '24 12:04 justfoolingaround

Good point; poetry not only brings dep mgmt but also virtual env management, so good to implement this, feel free to add this but do make sure that that the test deps are under the test deps, feel free to update the dev guidelines which was done for the old one here @manisha841

horrormyth avatar Apr 22 '24 20:04 horrormyth

Good point; poetry not only brings dep mgmt but also virtual env management, so good to implement this, feel free to add this but do make sure that that the test deps are under the test deps, feel free to update the dev guidelines which was done for the old one here @manisha841

Sure

manisha841 avatar Apr 23 '24 00:04 manisha841

consider choosing rye here @manisha841 as it seems to solve the dependency management better than poetry and a tool of future(all tools will converge to this) considering its now owned by same group who created dent in python development ecosystem with ruff and uv 🙌

will be happy to collaborate if needed.

imkaka avatar Apr 23 '24 18:04 imkaka

@horrormyth I have opened a PR with necessary updates regarding this issue, please review and let me know, thanks!

manisha841 avatar May 05 '24 04:05 manisha841

@sumanashrestha can you have at this PR and let me know if any changes are required?

manisha841 avatar May 07 '24 15:05 manisha841