diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 00000000..00e986ad --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,30 @@ +name: Package + +on: + push: +jobs: + test: + runs-on: ubuntu-latest + defaults: + run: + shell: bash -el {0} + strategy: + fail-fast: false + matrix: + python-version: ["3.10"] + steps: + - uses: actions/checkout@v3 + + - name: Setup Python + uses: mamba-org/setup-micromamba@v1.4.3 + with: + python-version: ${{ matrix.python-version }} + environment-file: environment-dev.yml + create-args: >- + python=${{ matrix.python-version }} + + - name: Install conda constructor + run: conda install constructor + + - name: Package Japps + run: constructor . diff --git a/construct.yaml b/construct.yaml new file mode 100644 index 00000000..0349246d --- /dev/null +++ b/construct.yaml @@ -0,0 +1,21 @@ +name: JHub +version: "0.1" +channels: + - conda-forge +specs: + - python 3.10.* + - flask + - jupyterhub + - jupyter + - plotlydash-tornado-cmd + - bokeh-root-cmd + - jhsingle-native-proxy + - pytest + - black + - panel + - bokeh + - voila + - dash + - streamlit + - traitlets +license_file: LICENSE diff --git a/jhub_apps/main.py b/jhub_apps/main.py index 4f61462d..c2e35b6f 100644 --- a/jhub_apps/main.py +++ b/jhub_apps/main.py @@ -1,6 +1,11 @@ -def app(): - print("Hello world") - import time +from jhub_apps.__about__ import __version__ + +import argparse - time.sleep(500) - return 1 + +def app(): + parser = argparse.ArgumentParser( + prog='JHub Apps', + description='JupyterHub App Launcher') + parser.add_argument('--version', action='version', version=__version__) + parser.parse_args()