tis-pyzo

4.11.0-1
Pyzo est une distribution qui simplifie l’utilisation de Python. Elle est particulièrement adaptée à l’apprentissage et recommandée pour les débutants.
1281 downloads
Download

  Description 

  • package : tis-pyzo
  • version : 4.11.0-1
  • architecture : x64
  • categories :
  • maintainer : Simon Fonteneau
  • description : Pyzo est une distribution qui simplifie l’utilisation de Python. Elle est particulièrement adaptée à l’apprentissage et recommandée pour les débutants.
  • locale :
  • target_os :
  • min_os_version : 6
  • max_os_version :
  • min_wapt_version :
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-10-19T10:07:56.901841

  Setup.py 

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

uninstallkey = []

def install():
    print('installing pyzo')
    versionpaquet = control['version'].split('-',1)[0]

    def verspyzo(key):
        return key['name'].replace('pyzo version ','')

    install_exe_if_needed(glob.glob('*.exe')[0],'/VERYSILENT /SUPPRESSMSGBOXES /NORESTART',key='pyzo_is1',min_version=versionpaquet,get_version=verspyzo)
    remove_desktop_shortcut('pyzo')



def update_package():

    proxies = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxies = {'http':proxywapt,'https':proxywapt}

    binaryfile,urlfile  = [(str(p['name']),str(p['browser_download_url'])) for p in json.loads(wgets('https://api.github.com/repos/pyzo/pyzo/releases/latest',proxies=proxies))['assets'] if 'exe' in p['name'] if not 'windows10' in p['name']][0]
    lastversion = binaryfile.split('-')[1]

    for exe in glob.glob('*.exe'):
        if exe != binaryfile:
            remove_file(exe)

    if not isfile(binaryfile):
        wget(urlfile,binaryfile,proxies=proxies)

    os.chdir(os.path.dirname(__file__))
    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    print('Last Version %s' % lastversion)
    pe.version = lastversion + '-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_package()






										

  Changelog 


No changelog
  manifest.sha256 
[["pyzo-4.11.0-win64.exe","1ee3e032b80db613edb0c3c1e6d19d4a7f6827d8980633d4ef9420c5f3acd7e0"],["setup.py","2dab131ea2c8ec7d66bde613a9a91005d2aadcd40fa8f9256169994551f4e2ff"],["WAPT/icon.png","b9ab953e90307c153f80c0250a31c3bdf5cda9a6e89a6e8a91c83ae44f09b7a0"],["WAPT/wapt.psproj","4b493e7ccdc13099222b1bfa24901e86e8060cfb39378820895a7f0f5bf6f689"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","df9544079659930f201f510e1dada15f37e26bdbd0faef6509b838d4df212e79"]]