-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
259 fix zip app so pre requisites installed (#260)
* 259 - add requirements to build * 259 - fix artifacts upload * 259 - add requirements into app * 259 - fix to arm version * 259 - add platform to pip install * 259 - update mac os build * 259 - add bash script for building zipapp * 259 - update script * 259 - update script * 259 - update script * 259 - add init file and update script * 259 - update script * 259 - fix adding of paths * 259 - update script * 259 - set script to use command line argument * 259 - update wokflow * 259 - update tests for main_handler name change * 259 - correct file name * 259 - remove matplotlib import * 259 - add lazy install of requirements to script * 259 - update build script to use temporary directory * 259 - update README to account for change * 259 - update workflow * 259 - change path of artifact * 259 - reinstate plotting function * 259 - add docstring
- Loading branch information
1 parent
eb0eca4
commit 145ed6c
Showing
6 changed files
with
66 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/sh | ||
|
||
# Fail if any part of this script fails | ||
set -e | ||
|
||
# install zipapps | ||
pip install zipapps | ||
|
||
# make dist directory | ||
mkdir -p dist | ||
|
||
# get current directory | ||
DIR=$(pwd) | ||
|
||
# make temp build directory | ||
mkdir -p /tmp/otel2puml_build | ||
|
||
# copy files to build directory | ||
cp -r tel2puml /tmp/otel2puml_build/tel2puml | ||
cp -r requirements.txt /tmp/otel2puml_build/requirements.txt | ||
|
||
|
||
# get janus | ||
git clone https://github.com/xtuml/janus.git /tmp/otel2puml_build/janus | ||
cd /tmp/otel2puml_build/janus | ||
git fetch --all --tags | ||
git checkout tags/v1.0.0 -b latest | ||
cp -r test_event_generator /tmp/otel2puml_build/test_event_generator | ||
cp requirements.txt /tmp/otel2puml_build/janus_requirements.txt | ||
|
||
|
||
|
||
# change directory to build directory | ||
cd /tmp/otel2puml_build | ||
# create zipapp | ||
python -m zipapps -c -a tel2puml,test_event_generator \ | ||
-m tel2puml.__main__:main -o $DIR/dist/tel2puml.pyz -d -r requirements.txt -r janus_requirements.txt | ||
|
||
# return to original directory | ||
cd $DIR |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters