Note
This script manages Python project dependencies using Poetry.
It ensures that your project dependencies are always up to date with the latest versions.
- Automated Dependency Updates: Easily update all dependencies to their latest versions.
- Lockfile Management: Handles the removal and updating of the
poetry.lock
file. - Support for Command Line Arguments: Customize the paths for your
pyproject.toml
andpoetry.lock
files.
To use the script, you may provide two optional command line arguments:
-p
or--pyproject
: Path to thepyproject.toml
file (default:"pyproject.toml"
)-l
or--lockfile
: Path to thepoetry.lock
file (default:"poetry.lock"
)
python updater.py --pyproject my_project/pyproject.toml --lockfile my_project/poetry.lock
Tip
Ensure you have the necessary permissions to modify the files in the specified directory.
Important
This script requires Python 3.6 or higher.
Dependencies:
toml
loguru
Install them using pip:
pip install -r requirements.txt
Caution
This project is licensed under the terms of the GNU General Public License v3.0. Make sure your use case complies with the license.