Skip to content

v0.1.0

Choose a tag to compare

@leouieda leouieda released this 06 Jan 16:14
· 30 commits to main since this release

Release date: 2022/01/06

🎊 πŸ₯‚ First release of Dependente, a tool for inspecting Python package dependencies πŸ₯‚ 🎊

This is a small command-line program for extracting dependencies from Python project files (pyproject.toml and setup.cfg) and converting them into requirements.txt-type files for use with pip and conda.

The main reason to do so is to control and customize the testing environment on continuous integration (CI) while avoiding repeating the list of dependencies in multiple places. That's what we use it for.

As an example of current functionality, this how you'd parse the install (run-time) dependencies from setup.cfg and pin them to their oldest supported version (useful for testing on CI):

$ dependente --oldest > requirements-oldest.txt
πŸš€ Extracting dependencies: install
πŸ”Ž Parsing setup.cfg
   - 3 dependencies found
πŸ•°  Pinning dependencies to their oldest versions
πŸ–¨  Printing 3 dependencies to the standard output stream
πŸ₯³ Done! πŸ₯³

$ cat requirements-oldest.txt
# Install (run-time) dependencies from setup.cfg
click==8.0.0
rich==9.6.0
tomli==1.1.0