Skip to content

A Python script for automatically updating all dependencies in a Poetry-managed project to their latest versions.

License

Notifications You must be signed in to change notification settings

wyattowalsh/poetry-dependency-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Project Dependency Updater 🔄

Python Version License: GPL v3

Note

This script manages Python project dependencies using Poetry.
It ensures that your project dependencies are always up to date with the latest versions.

🚀 Features

  • 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 and poetry.lock files.

📋 Usage

To use the script, you may provide two optional command line arguments:

  • -p or --pyproject: Path to the pyproject.toml file (default: "pyproject.toml")
  • -l or --lockfile: Path to the poetry.lock file (default: "poetry.lock")

🖥️ Command Line Example

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.

🛠️ Requirements

Important

This script requires Python 3.6 or higher.

Dependencies:

  • toml
  • loguru

Install them using pip:

pip install -r requirements.txt

⚖️ License

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.

About

A Python script for automatically updating all dependencies in a Poetry-managed project to their latest versions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages