Skip to content

superlevure/package_updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

package_updater


This module allow any package/module/script to be updated with the latest release from github

Prerequisites

  • Python 3
  • Github repositorie (for now)

Install

pip3 install package-updater

Usage

import sys
import package_updater

updater = package_updater.Update(
    package_name="Name of the package",
    current_version="1.1.2",
    repo="https://api.github.com/repos/superlevure/SRU_com/releases/latest"
    )

if sys.argv[1] == "--update":
    updater.update()

The module will :

  • Check if a new version is avalaible
  • If so, backup the current version to a tar file
  • Download the new version
  • Extract it
  • Install it

Dependencies

About

Update any package/module/script from github

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages