Skip to content

Commit

Permalink
add conda constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech committed Sep 18, 2023
1 parent d6fa9ad commit d8b9b5d
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 5 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -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 .
21 changes: 21 additions & 0 deletions construct.yaml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 10 additions & 5 deletions jhub_apps/main.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit d8b9b5d

Please sign in to comment.