tis-waptpython-pip icon

waptpython pip

Silent install package for waptpython pip

26.1.1-22
Development
Development

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a second VirusTotal scan is performed to verify that the status has not changed.
If the package passes this last check, it is promoted to PROD and published on the store.

  • package: tis-waptpython-pip
  • name: waptpython pip
  • version: 26.1.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.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          : PREPROD
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      : ddedf6c7-3226-4647-8b51-1bd1179fe2da
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            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-05-04T20:42:41.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         : HrOMwACY6MC32qhPmJKJVIoAsH3Oo6fvNi3Q8FhNA+uUu8M2RfaefsMocStfu7tS0s6x4OVOAcAkRlSiEvy5hx9zIA5ZwE9iv6AdE35a2RH8tClm3/giKC/7JuSDV4p4P3RWNty1bDGdkW+g+xetZe1plKdlfVtidGw3P6q2gxOSy2Vlh3YngyWag5kIWlXGeHWicYJnxA3Z2NhkMi1G5jTWfycGGw3YOp1rU3W5K7j75+vdvL17OTeD2M+vIUSRkvKjLbKzaOm71K8bBEXg0tVK9rte+Jg6XixEgOIjHFrmRdlIu2NuFtln5SN35P7MwvCTh+JTcwe5oeDr3qM+gQ==

# -*- 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

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
ae7e587a147336493f57aabbb9811c4d5d341a1ebc2e0616c3dfdbda090b06c7 : WAPT/control
3307da49dca7842503f3369c908cd625f2b16276a8690e4dd37c08a057580c44 : WAPT/icon.png
eda7d9f65cb9c85c5644e325eff0d18bdd5aece49a28de2789316a8edba00f8c : luti.json
99cb1c2899893b075ff56e4ed0af55669a955b49ad7fb8d8603ecdaf4ed653fb : pip-26.1.1-py3-none-any.whl
4bbb1177813349f742a3bc9fb889bf8602ff4424c2d79efcf28db1da579a81eb : setup.py
d899c3ce517b2c99f7e1d5e01550f88d0ba89817f68ac2c23a2521bb01d05090 : update_package.py