- package: tis-pymecavideo
- name: PyMecavideo
- version: 7.2.1.1-2
- categories: Media
- maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Simon Fonteneau
- target_os: windows
- impacted_process: pymecavideo
- architecture: all
- signature_date:
- size: 94.97 Mo
package : tis-pymecavideo
version : 7.2.1.1-2
architecture : all
section : base
priority : optional
name : PyMecavideo
categories : Media
maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Simon Fonteneau
description : Pymecavidéo est un logiciel de pointage de vidéo permettant l'analyse mécanique des mouvements.
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version : 1.7
sources : https://download.tuxfamily.org/oppl/windows/
installed_size :
impacted_process : pymecavideo
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : 828acbb2-1b73-4327-bd73-191af24873dc
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : ca6afc629a51b361e7f444643efe8354d4542dc55c290a515edd7d58bfe47ce9
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : HVdi041zFXEPJaveSwqj5Wb+Mi6oPeltNgs4skr33feJdL1bG+RiAscTXgBXQNOGiYa8HZd+vmfGPG/MkF+9nmTTGRqC/7JfVdjYDL3RVr50i/5wegCwP7Q5AeUtO/oIkRmHA9WJaQqFJh/NJExxTLQn2wOy9KdYUuMcTnXKDuIiDKZZkBFqB+uM0HDI7MRu2y7xyydm4kdEF1h1ujkJrfGb1Ga46uFRTT4a7x1RyyCT+ouQ/GC/s8KnnBCifn6C99JJC98cpBxJjjWswOVHtBwik+Ff/o+iZ9UcisXtHx8dvaCJflGXn8EH/1sxE8SluEBVlM9sQ9Aq8DMyNvCT3w==
signature_date : 2021-12-28T14:02:32.313213
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
# -*- coding: utf-8 -*-
from setuphelpers import *
import re
# 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 = 'pymecavideo_'
def install():
# Declaring local variables
package_version = control.get_software_version()
bin_name = glob.glob('*%s*.exe' % bin_contains)[0]
used_version = get_product_props(bin_name)['ProductVersion']
# Installing the software
print("Installing: %s" % bin_name)
install_exe_if_needed(bin_name,
silentflags='/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-',
key='pymecavideo %s_is1' % used_version,
min_version=used_version,
)
def update_package():
# Declaring local variables
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
sub_bin_name = 'pymecavideo_%s_setup.exe'
url = 'http://download.tuxfamily.org/oppl/windows/'
# Getting latest version information from official sources
version = re.findall('pymecavideo_(.*)_setup.exe"', ensure_unicode(wgets(url, proxies=proxies)))[-1]
latest_bin = sub_bin_name % version
download_url = url + latest_bin
print("Latest %s version is: %s" % (app_name, version))
print("Download URL is: %s" % download_url)
# Downloading latest binaries
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(download_url, latest_bin, proxies=proxies)
# Checking version from file
version_from_file = get_product_props(latest_bin)['FileVersion']
if Version(version) != Version(version_from_file) and version_from_file != '':
print("Changing version to the version number of the binary (from: %s to: %s)" % (version, version_from_file))
os.rename(latest_bin, sub_bin_name % version_from_file)
version = version_from_file
else:
print("Binary file version correspond to online version")
# 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)
control.save_control_to_wapt()
# Deleting outdated binaries
remove_outdated_binaries(version)
# Validating update-package-sources
return result
7168c3760865450e8277dd282668d9fe9dd26b1a767e2f8b69768c4dd29d2081 : setup.py
d85103b5649678b422abb5b5486c624597f3174faad5825524f0014a6705072f : pymecavideo_7.2.1.1_setup.exe
ca6afc629a51b361e7f444643efe8354d4542dc55c290a515edd7d58bfe47ce9 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
2bc36c1231edb230f51c79c6571ac76d498e87bd1369ef4e7340a9803b0537dd : luti.json
61b3e913c1f28419ed6ecc4d35e0d287e38f3759ef8a50465c8262cf0c871b12 : WAPT/control