tis-waptpython-pip icon

waptpython pip

Paquet d’installation silencieuse pour waptpython pip

26.1-22
Development
Development

  • package: tis-waptpython-pip
  • name: waptpython pip
  • version: 26.1-22
  • categories: Development
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • locale: all
  • target_os: all
  • architecture: all
  • signature_date:
  • size: 1.82 Mo
  • installed_size: 6.26 Mo
  • homepage : https://pip.pypa.io/

package           : tis-waptpython-pip
version           : 26.1-22
architecture      : all
section           : base
priority          : optional
name              : waptpython pip
categories        : Development
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : The PyPA recommended tool for installing Python packages.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : all
min_wapt_version  : 2.3
sources           : https://pypi.org/project/pip/#files
installed_size    : 6258273
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 2h
editor            : 
keywords          : waptpython,python,pip,pypi,package
licence           : 
homepage          : https://pip.pypa.io/
package_uuid      : df07ed28-7bb5-4a29-a3c1-e6dd6414efda
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://pip.pypa.io/en/stable/news/
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 3307da49dca7842503f3369c908cd625f2b16276a8690e4dd37c08a057580c44
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-05-01T22:02:33.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : s2Hw8n/1uR0gD+dQdSvvzk2mzyFJzd1Mc1sDZVkBrYVMcbefgBLqIVQfpsponAaODwj56We20BZ0ZvjFZkt3qVQzKEqhd9/q9Z2R8oC7fE5PHsFkQbXWaIrpXXgp1ng45nYeSY3RORpb/bs8NNwFPUGWBrvZaYEs3ADzTGWMT384yIDy1R5PK8173rDUenYgKpnB0VjDrHDWlEkehvwFk7e+XgWgl2pMbEtMHgl4oenZOlgHjoVluzf92V4UhJEgaJA4zH+/1k0dxwJi+EsEwej4htiQGw6oSauZjm0M5rkqoNtpet0zY9LblbDNsalPg823UHt+YsxMP+cp2U/rag==

# -*- coding: utf-8 -*-
from setuphelpers import *
import sysconfig


waptpython_lib_sp_dir = waptpython_lib_sp_dir = sysconfig.get_paths()["purelib"]
pip_folder = makepath(waptpython_lib_sp_dir, "pip")


def install():
    bin_name = glob.glob('*.whl')[0]
    unzip(bin_name,waptpython_lib_sp_dir)

def audit():
    if not isdir(pip_folder):
        return "ERROR"
    return "OK"

def uninstall():
    if isdir(pip_folder):
        remove_tree(pip_folder)

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    
    name_pypi = "pip"
    wanted_file = "py3-none-any.whl"
    
    api_url = f"https://pypi.org/pypi/{name_pypi}/json"

    data = wgets(api_url, proxies=proxies, as_json=True)
    version = data['info']['version']
    latest_release_binaries = data['releases'][version]

    for f in latest_release_binaries:
        if not f['yanked'] and f['url'].endswith(wanted_file):
            download_url = f['url']
            sumsha256 = f['digests']['sha256']
            break

    whl = download_url.split('/')[-1]
    
    wget(download_url, whl, sha256=sumsha256, proxies=proxies)

    for f in glob.glob('*.whl'):
        if f != whl:
            remove_file(f)

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating update-package-sources
    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
46c1ad386cf3f44f5ef594a06dc1b6d533233d26e15c479783849467fda050f9 : WAPT/control
3307da49dca7842503f3369c908cd625f2b16276a8690e4dd37c08a057580c44 : WAPT/icon.png
901429f0245ba2b164d91cbf7257465a62f50a680e78e66457fc56f8813d4c76 : luti.json
4e8486d821d814b77319acb7b9e8bf5a4ee7590a643e7cb21029f209be8573c1 : pip-26.1-py3-none-any.whl
4bbb1177813349f742a3bc9fb889bf8602ff4424c2d79efcf28db1da579a81eb : setup.py
d899c3ce517b2c99f7e1d5e01550f88d0ba89817f68ac2c23a2521bb01d05090 : update_package.py