Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setuptools installer, Dockerfile, and updated BuildConfig #42

Merged
merged 16 commits into from
Feb 6, 2019

Conversation

dleehr
Copy link
Member

@dleehr dleehr commented Feb 5, 2019

  • Adds setup.py with packaging information (as initial version 0.1.0). When installed, can be run as calrissian instead of python -m ...
  • Updates version.py to report the version of calrissian and cwltool
  • Adds Dockerfile to install on top of python:3.6 (includes nodejs)
  • Rewrites openshift BuildConfig to use the Dockerfile instead of a source-to-image build.
  • Updates example job to use the calrissian CLI script as command and arguments as args.

Fixes #40

@dleehr dleehr changed the title 40 packaging Setuptools installer, Dockerfile, and updated BuildConfig Feb 5, 2019
@dleehr dleehr requested a review from johnbradley February 5, 2019 20:39
Copy link
Contributor

@johnbradley johnbradley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM.

Noticed the --version command line flag just prints help.

@@ -33,16 +33,11 @@ items:
resources: {}
source:
git:
ref: master
uri: https://github.com/Duke-GCB/calrissian
ref: 40-packaging
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: You probably want to make this master before committing.


def version():
return 'Calrissian-dev'
return 'calrissian {} (cwltool {})'.format(calrissian_version(), cwltool_version())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried calrissian --version and it just printed help. I expected to see version info like cwltool does.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to #43. This happens because calrissian checks for its required args and exits with help before passing the args to cwltool's main(). --version isn't checked until inside cwltool's main(), so I need to duplicate that handling in calrissian.

@dleehr dleehr merged commit 440487b into master Feb 6, 2019
@dleehr dleehr deleted the 40-packaging branch February 6, 2019 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants