tis-datawarrior

5.5.0-2
DataWarrior is an open-source data visualization and analysis program with embedded chemical intelligence. It runs on all major operating systems. Installers and the source code can be downloaded from this site.
31 downloads
Download
tis-datawarrior icon

  Description 

  • package : tis-datawarrior
  • version : 5.5.0-2
  • architecture : all
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Pierre Cosson
  • description : DataWarrior is an open-source data visualization and analysis program with embedded chemical intelligence. It runs on all major operating systems. Installers and the source code can be downloaded from this site.
  • locale : all
  • target_os : darwin
  • min_wapt_version : 2.0
  • sources : https://openmolecules.org/datawarrior/download.html
  • installed_size : 310000000
  • impacted_process : DataWarrior
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2021-12-20T14:04:07.821510

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
import bs4 as BeautifulSoup

# Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = 'datawarrior'

def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob('*%s*.dmg' % bin_contains)[0]

    # Installing the package
    print("Installing: %s" % bin_name)
    install_dmg(bin_name)

def uninstall():
    app_name='DataWarrior.app'
    print("Installing: %s" % app_name)
    shutil.rmtree('/Applications/%s' %app_name)
    
def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    bin_name_sub = bin_contains + '-%s.msi'
    url = 'https://openmolecules.org/datawarrior/download.html'


    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, 'a', 'class', proxies=proxies):
        if bin_contains in bs_search['href'] and '.dmg' in bs_search['href']:
            internet_version = bs_search['href'].split('/')[-1].replace('datawarrior','').replace('.dmg','')
            version=''
            for character in internet_version:
                version = version + character + '.'
            version=version[:-1]
            latest_bin = 'datawarrior-%s.dmg' %version
            url_dl = 'https://openmolecules.org/' + bs_search['href']
            break

    print("Latest %s version is: %s" % (app_name, version))
    print("Download url is: %s" % url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_dl,latest_bin, proxies=proxies)

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    control.version = '%s-%s' % (Version(version), control.version.split('-', 1)[-1])
    #control.set_software_version(Version(version))
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating or not update-package-sources
    return result




										

  Changelog 



No changelog.txt.
									
  manifest.sha256