Skip to content

Commit

Permalink
Update to Airflow==1.10.6
Browse files Browse the repository at this point in the history
Don't overwrite shebang from app. Use /usr/bin/env python3
when creating the app
  • Loading branch information
heylel-b-sh committed Nov 12, 2019
1 parent f6e8f6f commit 5994527
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cwl_airflow/app/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def configure_macos_app(self):


def init(self):
self.update_shebang(os.path.join(self.contents_dir, "Resources/app_packages/bin"))
self.update_shebang(os.path.join(self.contents_dir, "Resources/app/bin"))
# self.update_shebang(os.path.join(self.contents_dir, "Resources/app_packages/bin"))
# self.update_shebang(os.path.join(self.contents_dir, "Resources/app/bin"))
self.init_airflow_db()
self.update_airflow_config()
self.copy_dags()
Expand Down
4 changes: 4 additions & 0 deletions dev/pack_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ python setup.py macos
deactivate
cd macOS
cp ../dev/macos/* ./cwl-airflow.app/Contents/MacOS/

find ./cwl-airflow.app/Contents/Resources/app/bin -type f -maxdepth 1 -exec sed -i '' -e '1s/.*/#!\/usr\/bin\/env python3/' {} \;
find ./cwl-airflow.app/Contents/Resources/app_packages/bin -type f -maxdepth 1 -exec sed -i '' -e '1s/.*/#!\/usr\/bin\/env python3/' {} \;

chmod -R u+w ./cwl-airflow.app
tar -zcvf cwl-airflow.macos.tar.gz cwl-airflow.app
rm -rf cwl-airflow.app
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_version():
'schema-salad==4.5.20190815125611',
'jsonmerge',
'ruamel.yaml == 0.15.97',
'apache-airflow == 1.10.5',
'apache-airflow == 1.10.6',
'pyjwt',
'connexion==2.3.0'
],
Expand Down

0 comments on commit 5994527

Please sign in to comment.