Attention : support for WAPT 1.8.2 ended on June the 30th 2022.

There are known vulnerabilities in WAPT dependencies in WAPT 1.8.2 branch. Please upgrade to the latest supported version. CVE listing (non exhaustive) :
  • * python engine : python 2.7 (CVE-2020-10735, CVE-2015-20107, CVE-2022-0391, CVE-2021-23336, CVE-2021-3177, CVE-2020-27619, CVE-2020-26116, CVE-2019-20907, CVE-2020-8492, etc.)
  • * cryptography : openssl : CVE-2022-2068, CVE-2022-1292, CVE-2022-0778, CVE-2021-4160, CVE-2021-3712, CVE-2021-23841, CVE-2021-23840, CVE-2021-23839, CVE-2020-1971, CVE-2020-1968, CVE-2019-1551
  • * python dependencies : cryptography (CVE-2020-36242, CVE-2020-25659), eventlet (CVE-2021-21419), jinja2 (CVE-2020-28493), psutil (CVE-2019-18874), waitress (CVE-2022-31015), lxml (CVE-2021-4381, CVE-2021-28957, CVE-2020-27783, CVE-2018-19787), ujson (CVE-2022-31117, CVE-2022-31116, CVE-2021-45958), python-ldap (CVE-2021-46823)

Creating a package template from the WAPT console

New in version 1.3.12.

Hint

To create WAPT packages directly from the WAPT console, it is necessary to have installed the WAPT development environment tis-waptdev.

Creating a package template from the WAPT console

In that example, we use the 7-zip MSI setup downloaded from the 7-zip official website.

  • download the 7-zip MSI installer:

  • create a WAPT package Template from the installer;

    In the WAPT console, click on Tools ‣ Make package template from setup file

    Pyscripter - WAPT console window for creating a package template

    Pyscripter - WAPT console window for creating a package template

    Select the downloaded MSI setup file and fill in the required fields. Verify that the package name does not contains any version number.

    Informations required for creating the package

    Informations required for creating the package

  • Two solutions are available:

    • click on Make and edit …. (recommended) to launch package customization;

    • click on Build and upload to directly build and upload the package.

    Attention

    The button Build and upload directly uploads the package into the private repository without testing.

    This method works relatively well with MSI installers because their installation is more standardized.

    However, the second method that consists of first testing locally the package before uploading is the recommended method.

Customize the package before build-upload

Before uploading a package to your WAPT repository, you may choose to customize its behavior to your Organization’s needs by editing it with PyScripter.

When creating the package template, click on Make and edit …..

PyScripter - Informations required for creating the package

PyScripter - Informations required for creating the package

PyScripter - The package has been created

PyScripter - The package has been created

The PyScripter IDE allows to edit files in the WAPT package.

PyScripter - Customizing a package with Pyscripter

PyScripter - Customizing a package with Pyscripter

Presentation of Pyscripter

PyScripter project explorer

PyScripter - project explorer

PyScripter - project explorer

The PyScripter project explorer lists the different files that you might need, notably the control file and the setup.py file.

Run Configurations

PyScripter - Run commands in the PyScripter project explorer

PyScripter - Run commands in the PyScripter project explorer

The Run option in the project explorer of:program:PyScripter will allow you to launch actions on the packages that you are editing.

Editor panel

PyScripter - Editor panel

PyScripter - Editor panel

The edition panel in PyScripter allows to edit the setup.py file and the control file.

Python Console

PyScripter - Python console in PyScripter

PyScripter - Python console in PyScripter

This is the python console visible in PyScripter, it will allow you to display the python output when you execute Run commands.

You can also use it to test/ debug portions of your script setup.py.

To learn more about the composition of a wapt package, visit the documentation on the structure of a WAPT package.

To customize a package, please visit the documentation on customizing your WAPT packages.

Testing locally the installation of the WAPT package

You can then test the launch of an installation on your development station.

../../_images/run_install.png

The PyScripter Console allows you to check whether the installation went well.

Building the package and sending it to the WAPT server

  • once the package is ready, build it and send it to the WAPT server;

Option "-i build-upload" of PyScripter project

Option “-i build-upload” of PyScripter project

  • enter the password of your private key (to sign your WAPT package);

../../_images/password-key.png
  • enter the username and password to send the WAPT package to the server;

../../_images/build-upload-login.PNG
  • the package is now available and visible in the WAPT Console in the tab private deposit.

  • click on update available packages to refresh the list of available WAPT packages;