From 36dad7b22d95a2b66ae00da609d3a9a406cceb6e Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Sun, 25 Apr 2021 03:51:01 +0000 Subject: [PATCH 1/3] added sample build-cli workflow --- .github/workflows/build-cli.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/build-cli.yml diff --git a/.github/workflows/build-cli.yml b/.github/workflows/build-cli.yml new file mode 100644 index 0000000..681ab31 --- /dev/null +++ b/.github/workflows/build-cli.yml @@ -0,0 +1,17 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Superscript Unit Tests + +on: + release: + types: [published, edited] + +jobs: + generate: + name: Build Linux + runs-on: ubuntu-latest + + steps: + - name: Checkout master + uses: actions/checkout@master From 139410f7f0886025e68e09b8810470b22d41dd7b Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Sun, 25 Apr 2021 06:05:33 +0000 Subject: [PATCH 2/3] removed ThreadPoolExecutor import --- src/superscript.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/superscript.py b/src/superscript.py index b408369..e912951 100644 --- a/src/superscript.py +++ b/src/superscript.py @@ -143,7 +143,6 @@ from pathlib import Path from multiprocessing import Pool import platform import sys -from concurrent.futures import ThreadPoolExecutor import time import warnings From 73888cbc9ef9451dfa077812cdeace86393ec7db Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 27 Apr 2021 07:26:14 +0000 Subject: [PATCH 3/3] fixed pathing for build-CLI.* added temp directory to gitignore --- .gitignore | 1 + build/build-CLI.bat | 2 +- build/build-CLI.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6b1a37d..0e3db09 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ **/*.egg-info/ **/config.json **/tra_analysis/ +**/temp/* **/errorlog.txt /dist/superscript.* diff --git a/build/build-CLI.bat b/build/build-CLI.bat index 77790bb..522e5fc 100644 --- a/build/build-CLI.bat +++ b/build/build-CLI.bat @@ -1,5 +1,5 @@ set pathtospec="../src/superscript.spec" set pathtodist="../dist/" -set pathtowork="/temp/" +set pathtowork="temp/" pyinstaller --onefile --clean --distpath %pathtodist% --workpath %pathtowork% %pathtospec% \ No newline at end of file diff --git a/build/build-CLI.sh b/build/build-CLI.sh index 8d8a0b8..9837f2a 100644 --- a/build/build-CLI.sh +++ b/build/build-CLI.sh @@ -1,5 +1,5 @@ pathtospec="../src/superscript.spec" pathtodist="../dist/" -pathtowork="/temp/" +pathtowork="temp/" pyinstaller --onefile --clean --distpath ${pathtodist} --workpath ${pathtowork} ${pathtospec} \ No newline at end of file