tis-waptpython-pip icon

waptpython pip

Paquet d’installation silencieuse pour waptpython pip

25.3-22
Development
Development

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

package           : tis-waptpython-pip
version           : 25.3-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      : 4beb1421-4703-482a-bb37-e7653955e112
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    : 2025-12-27T14:08:29.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         : I+mq6Z7eZaKM1Ud3De8zYfxZZbseDv25ZSvSqFsZ/vrUfAAKY4u9AJTlIsQDV74darA4svFkj4+HQ7j0GtHSKS550beDxIHYuUNWINpXwZwhUXo1U/XMRgCQhHeYrGuFvVDt9s14+Pq07TfNvkaDkfx1fyNxHLx4YjE0VN8pxXfDpIOHQ2WPdityH5tfoe6c0R22/u1t8FD+RDPHhK0pJ6MVu4rTiTNI6NOJq9fhUmkl98zK3DXTfUTqz28DOvgMuwfLlfXs8ofVJ1N8gZiThGP3MAii05sH1t778vy/YtnkKQsVlXw2U+B19YSZCMoDk7ANsDNCNQDbj6x5ydPMkw==

# -*- 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
1ceab1e59afacf018281e370f79445c6e6c8fcd43b2a073a6e9e7bf059dd85a3 : WAPT/control
3307da49dca7842503f3369c908cd625f2b16276a8690e4dd37c08a057580c44 : WAPT/icon.png
3285a26877bed6b3f2f81adfc427c89c787203e08b2a61c3486b259eef8727e3 : luti.json
9655943313a94722b7774661c21049070f6bbb0a1516bf02f7c8d5d9201514cd : pip-25.3-py3-none-any.whl
4bbb1177813349f742a3bc9fb889bf8602ff4424c2d79efcf28db1da579a81eb : setup.py
d899c3ce517b2c99f7e1d5e01550f88d0ba89817f68ac2c23a2521bb01d05090 : update_package.py