tis-waptpython-pip icon

waptpython pip

Silent install package for waptpython pip

26.0-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.0-22
  • categories: Development
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • locale: all
  • target_os: all
  • architecture: all
  • signature_date:
  • size: 1.80 Mo
  • installed_size: 6.26 Mo
  • homepage : https://pip.pypa.io/

package           : tis-waptpython-pip
version           : 26.0-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      : 93bb8cd4-1f8c-478a-823a-37423d7d6359
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-01-31T02:33:36.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         : V72hFC6yMud6teY4t5QfjdKxl2jlEaJMbRaC7mx2t8a+DV1UN0jzxZM56V+FiEjK+3O0ROl8Ac7ITEupx1tVJ1tkVWg92x9DQB3djr3ntFEwPeGx3jtHXap8/fDOs/eSvYuq6Hnu9UwWIQ/c9wGb2fgbgiQjVhBupfxk6AHrlS+89LwCtExT0VsRoe6fQi8DhdeomxEeTzPXqZafF4o1qR9Z9dkDEgyG4CWHOX1L+iZmQm0jHH/95aSHyVTL76DamfHaBVfjE1gNXcSSOMA+Qs78NPfOgXSh0qQqAX4X0fJwizmbCPW9ZIuIJL+5gQ7XH3+c2gfpBts22oMSeW9byw==

# -*- 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
ac990a2086c41749b9ef428110934ce6aa6cbd782d554a6209be9dba3d7aad3a : WAPT/control
3307da49dca7842503f3369c908cd625f2b16276a8690e4dd37c08a057580c44 : WAPT/icon.png
c09bd72438bc5373c0ee9bc6afff133d6d27b0e5b96870abcc82d230e890218b : luti.json
98436feffb9e31bc9339cf369fd55d3331b1580b6a6f1173bacacddcf9c34754 : pip-26.0-py3-none-any.whl
4bbb1177813349f742a3bc9fb889bf8602ff4424c2d79efcf28db1da579a81eb : setup.py
d899c3ce517b2c99f7e1d5e01550f88d0ba89817f68ac2c23a2521bb01d05090 : update_package.py