No description
Find a file
2021-12-14 11:14:02 +01:00
jenkins edited Jenkinsfile with dockzr 2021-12-14 11:14:02 +01:00
sources Amend/fix output for 'add2values' when function is not used correctly 2017-12-06 14:57:56 +11:00
.gitattributes Initial commit 2017-11-27 17:44:35 +11:00
.gitignore Add Python source files 2017-11-28 17:30:45 +11:00
README.md Amend final paragraph, since there is no 'scripts' directory. 2017-12-15 12:04:15 +11:00

simple-python-pyinstaller-app

This repository is for the Build a Python app with PyInstaller tutorial in the Jenkins User Documentation.

The repository contains a simple Python application which is a command line tool "add2vals" that outputs the addition of two values. If at least one of the values is a string, "add2vals" treats both values as a string and instead concatenates the values. The "add2" function in the "calc" library (which "add2vals" imports) is accompanied by a set of unit tests. These are tested with pytest to check that this function works as expected and the results are saved to a JUnit XML report.

The delivery of the "add2vals" tool through PyInstaller converts this tool into a standalone executable file for Linux, which you can download through Jenkins and execute at the command line on Linux machines without Python.

The jenkins directory contains an example of the Jenkinsfile (i.e. Pipeline) you'll be creating yourself during the tutorial.