- package: tis-yarn
- name: yarn
- version: 1.22.22-2
- categories: Utilities
- maintainer: WAPT Team,Tranquil IT,Amel FRADJ
- licence: opensource_free,wapt_public
- target_os: windows
- impacted_process: Yarn
- architecture: all
- signature_date:
- size: 1.68 Mo
- homepage : https://yarnpkg.com/
package : tis-yarn
version : 1.22.22-2
architecture : all
section : base
priority : optional
name : yarn
categories : Utilities
maintainer : WAPT Team,Tranquil IT,Amel FRADJ
description : Yarn is a package manager for the npm and bower registries with a few specific focuses
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version : 2.3
sources :
installed_size :
impacted_process : Yarn
description_fr : Yarn est un gestionnaire de paquets pour les registres npm et bower avec quelques objectifs spécifiques
description_pl :
description_de : Yarn is een package manager voor npm en bower records met een aantal specifieke focussen
description_es : Yarn es un administrador de paquetes para registros npm y bower con algunos enfoques específicos
description_pt : Yarn é um gerenciador de pacotes para os registros npm e bower com alguns focos específicos
description_it : Yarn è un gestore di pacchetti per i dischi npm e bower con alcuni focus specifici
description_nl :
description_ru : Yarn - это менеджер пакетов для реестров npm и bower с несколькими специфическими целями
audit_schedule :
editor :
keywords :
licence : opensource_free,wapt_public
homepage : https://yarnpkg.com/
package_uuid : c62f3516-61b1-4906-a022-c7e7e6703554
valid_from :
valid_until :
forced_install_on :
changelog : Adds compatibility with WebAuthn on the npm registry
min_os_version :
max_os_version :
icon_sha256sum : 23be8b5540803d4f2507a084538ad3e3a8e20afd36a0cdfb99300a0555214428
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2024-12-10T15:12:37.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 : oDcjkhhq6Mt7CkxlEKMGwRBN5dHp6qZTB/qXU5TZU4Asvm4YTYjHyeMzbM67F+A5cIIvv2xEBXrE3dJAkd9LfdBLYVH46HuiD1ZEXLyJDkcoqsURq2s4n6Iryd1CUyXg48h0tbtHFIa0H5E+bj8g1AHlSZ5nZHiylIn4Bu4yUy8UaoPxdLYTGZxyOfkknXTUxSUtUVpOpaddy7/s75T4EzXwMd/FGl9Ba97dXU/15x5lQNUw9fwVIUYdej0qw8cjXWTOuCgrRpi1kJRRTVN0f8SeGWK9av5gCO4j5pHQ+VnMrEVZ1nPudARogbd2H5wkry+LLwyBG18YUXZHMroEZw==
# -*- coding: utf-8 -*-
from setuphelpers import *
r"""
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
def install():
# Declaring local variables
last_package_version = control.get_software_version()
bin_name = 'yarn-%s.msi' % last_package_version #exemple
bin_name = 'yarn-' + last_package_version + '.msi'
bin_name = 'yarn-{}.msi'.format(last_package_version)
bin_name = f'yarn-{last_package_version}.msi'
install_msi_if_needed (bin_name,name="Yarn",min_version=last_package_version)
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import glob
def update_package():
# Declaration of local variables
package_updated = False
proxies = get_proxies_from_wapt_console()
if not proxies:
proxies = get_proxies()
app_name = control.name
api_url = "https://api.github.com/repos/yarnpkg/yarn/releases/latest"
releases_dict = wgets(api_url, proxies=proxies, as_json=True)
for asset in releases_dict["assets"]:
if asset["browser_download_url"].endswith(".msi"):
download_url = asset["browser_download_url"]
latest_bin = asset["name"]
latest_bin_extension = latest_bin.rsplit('.', 1)[-1]
version = releases_dict["tag_name"].split('v')[-1]
break
# Downloading latest binaries
print(f"Latest {app_name} version is: {version}")
print(f"Download URL is: {download_url}")
if not isfile(latest_bin):
print(f"Downloading: {latest_bin}")
wget(download_url, latest_bin, proxies=proxies)
else:
print(f"Binary is present: {latest_bin}")
# 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)})")
for f in glob.glob(f'*.{latest_bin_extension}'):
if f != latest_bin:
remove_file(f)
control.set_software_version(version)
control.save_control_to_wapt()
return package_updated
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
600f9074ed213354fdd9f9d32712d1c4ce7e93846e3c5336b76ce2a28e3ca629 : WAPT/control
23be8b5540803d4f2507a084538ad3e3a8e20afd36a0cdfb99300a0555214428 : WAPT/icon.png
0cee0cb63fc13e54a9e7687a4bd3d907b92cb067c5d5208fc91c7698b2bcfc0f : luti.json
b64109a949ea48b72f53c545c68b177389640c7e2e46808af3c15669c3bce645 : setup.py
f6d73369c90b0da67ced5d3b2f2ba052609a504a02382634068232361abf8c99 : update_package.py
ebc1f46891b8d507efad2dd18eec2c4e617457f93e13bc701483cb047a053fa1 : yarn-1.22.22.msi