Fonctions packagées de mise à jour pour les programmes berrosoft
Project description
Introduction
Ce programme simplifie la mise à jours de vos logiciels en pacjkageant les fonctions de gestion des mises à jour.
Installation
Install berrosoft_upgrade simply using pip
pip install berrosoft_upgrade
USAGE
from berrosoft_upgrade import bupgrade
# url = "http://web_server_containing_update_files/directory_of_software
# for example below, url should be
url = http://domain.ltd/backup/
version = 0.1 # (actual version of running software)
verbose = True # if you want to see messages
clean = True # To clean temporary dir after upgrade
if check_update(version, config=None, url, verbose=False): # return True if update is available
bupgrade.update(url="", version, verbose=False, clean=True) #
SERVER SIDE
You have to write a simple text file as the example below, named update.txt. Example is for software nammed backup:
Example 1
[general]
version = 0.2.3
[update]
download = http://domain.ltd/backup/backup.tar.gz
# mode: archive, alone
mode = archive
[setup]
setup=setup.py
version: version of updated software. This text is compared to installed version and if it is different, check_update return True. download: url of installer of new version. mode: if installer is archive (zip, tar, tar.gz), berrosoft_upgrade know how to deal with. If it is a single file, use alone keyword. setup: file to launch after download to apply upgrade of your software. Can be a file downloaded by download keyword
Example 2
[general]
version = 0.2.3
[update]
download = http://domain.ltd/backup/setup.py
# mode: archive, alone
mode = alone
[setup]
setup=setup.py
Of course, you have to upload updated software to url
Links
Copyright
This package is copyright by Manuel Berrocal.
berrosoft_upgrade is licensed under GNU General Public License, version 3. Changelog =========
0.2.9 (2022-07-23)
Different tests to understand rst error
0.2 (2022-07-23)
Add documentation
0.1 (2022-07-22)
Initial version
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for berrosoft_upgrade-0.2.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e6adeb9df82dec4800215cf4fb453ec5a9615e586c2402841c51a30a6987b47 |
|
MD5 | bd44a6000f1fbfc606ce511492e09a43 |
|
BLAKE2b-256 | 67977ffef6596219cbdd84abae5502e54d0913235d1294f92f573eaf3fb5b84a |