tis-komodo-edit

12.0.1-1
Komodo Edit is a free and open source text editor for dynamic programming languages
30 downloads
Download

  Description 

  • package : tis-komodo-edit
  • version : 12.0.1-1
  • architecture : all
  • categories : Development
  • maintainer : WAPT Team,Jimmy PELÉ
  • description : Komodo Edit is a free and open source text editor for dynamic programming languages
  • locale :
  • target_os : windows
  • min_os_version : 6.1
  • max_os_version :
  • min_wapt_version : 1.5
  • sources :
  • installed_size : 348905472
  • impacted_process :
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : ActiveState
  • licence : Mozilla Public License 1.1
  • signature_date : 2020-10-13T18:25:41.153050
  • Homepage : https://www.activestate.com/products/komodo-ide/

  Setup.py 

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

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'Komodo-Edit-%s.msi'


def install():
    # Specific app values
    package_version = control.version.split('-')[0]

    # Getting the used storage on programfiles before installation (place it on the top)
    get_disk_free_space_before = get_disk_free_space(programfiles)

    # Installing the package
    install_msi_if_needed(bin_name_string % package_version
        ,min_version=package_version)

	# Return used storage of the program. (place it on the bottom)
    get_disk_free_space_after = get_disk_free_space(programfiles)
    free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
    print("Storage used: " + str(free_space_after_diff))


def update_package():
    print('Download/Update package content from upstream binary sources')
    import requests

    # Update transition from BeautifulSoup 3 to 4
    try:
        import bs4 as BeautifulSoup
    except:
        import BeautifulSoup

    # Getting proxy informations from WAPT settings
    proxy = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}		

    # Specific app values
    app_name = control.name
    url = 'https://www.activestate.com/products/komodo-ide/downloads/edit/'

    # Getting latest version from official website
    page = requests.get(url).text
    bs = BeautifulSoup.BeautifulSoup(page)
    #bs = BeautifulSoup.BeautifulSoup(page,features="html.parser") # For bs4 only
    bs_raw_string = bs.find('a',{'class':'direct'})
    url_dl = (bs_raw_string['href']).split('?dl=')[-1]
    
    version = url_dl.split('/')[-2]
    latest_bin = bin_name_string % version

    print('Latest ' + app_name + ' version is: ' + version)
    print('Download url is: ' + url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: ' + latest_bin)
        wget(url_dl,latest_bin,proxies=proxy)
            
		# Change version of the package
        from waptpackage import PackageEntry
        print('Writing ' + version + '-0 in WAPT\\control')
        pe = PackageEntry()
        pe.load_control_from_wapt(os.getcwd())

        pe.version = version + '-0'
        pe.save_control_to_wapt(os.getcwd())
        print('Update package done. You can now build-upload your package')
    else:
        print('This package is already up-to-date') 

    # Deleting outdated binaries
    for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi'):
        if bin_in_dir != latest_bin :
            print('Outdated binary: ' + bin_in_dir + ' Deleted')
            remove_file(bin_in_dir)


										

  Changelog 


https://docs.activestate.com/komodo/12/get/relnotes/
  manifest.sha256 
[[".vscode/launch.json","6a047e9bf1cdb2c0743c1c59a1d9fae8635a3151ed063b1a033496a75139fc79"],[".vscode/settings.json","7a50879cdebb2f179b6a22fc497c263a99aba65a8694f0f791985ca67d7dc012"],["Jenkinsfile","d3442f953e2bc03096f7f43c54aa30f16c06f844e42861efa28181377944d00d"],["Komodo-Edit-12.0.1.msi","8d677839b7c3651f43df2c1e12ec5f2a6422e4e86b9617dab74563d470988d54"],["README.md","bb690b8a94b05aade8b101273680403b254c520a06b1074588e2c4247893a1af"],["setup.py","4f967a9cace3e639f63370b3db98b3c8a7f26707c17539113896784d59158ed3"],["WAPT/changelog.txt","b9a013fb19530d61a8b4aff0e5e0ece7348bc300eb2ada346f3279e6bbecc398"],["WAPT/icon.png","f55044248c90d7e5824b934601ad5382ccfd26cda4a45ab9cd67bffe0fd2b9d6"],["WAPT/wapt.psproj","ab0613273a032435c397ab4b183a7a81bced95880acca8c89655b0daa6bf2f13"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","b9ef761f7141648e23e908b8bfa1d8a293cab27339a40a098dbe5da1f2afd600"]]