From 9ce07eb6d9018f38a31c25a3d6e73f42abbadaa5 Mon Sep 17 00:00:00 2001 From: Joaquin Matres <4514346+joamatab@users.noreply.github.com> Date: Thu, 24 Aug 2023 14:32:51 -0700 Subject: [PATCH 1/3] fix server_jupyter --- .gitignore | 2 ++ Makefile | 5 +++++ src/kweb/default.py | 2 +- src/kweb/server_jupyter.py | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1d5ab3c..8909bf7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ __pycache__/ extra/ *.py[cod] *$py.class +src/kweb/gds_files/ + # C extensions *.so diff --git a/Makefile b/Makefile index 93a80dc..7630e69 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,11 @@ test: cov: pytest --cov=kweb +run: + export KWEB_FILESLOCATION=/tmp/gdsfactory + cd src/kweb + uvicorn --reload default:app + mypy: mypy . --ignore-missing-imports diff --git a/src/kweb/default.py b/src/kweb/default.py index 5e79793..0b5f8eb 100644 --- a/src/kweb/default.py +++ b/src/kweb/default.py @@ -1,3 +1,3 @@ -from .browser import get_app +from kweb.browser import get_app app = get_app() diff --git a/src/kweb/server_jupyter.py b/src/kweb/server_jupyter.py index fd45637..ca12d82 100755 --- a/src/kweb/server_jupyter.py +++ b/src/kweb/server_jupyter.py @@ -5,7 +5,7 @@ # import requests import uvicorn -from kweb.main import app +from kweb.default import app global jupyter_server jupyter_server = None From 80718193bd6ca74205f25aaccf53227842ef5a4a Mon Sep 17 00:00:00 2001 From: Joaquin Matres <4514346+joamatab@users.noreply.github.com> Date: Thu, 31 Aug 2023 07:36:40 -0700 Subject: [PATCH 2/3] delete makefile --- .gitignore | 2 -- Makefile | 44 -------------------------------------------- 2 files changed, 46 deletions(-) delete mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 8909bf7..1d5ab3c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,6 @@ __pycache__/ extra/ *.py[cod] *$py.class -src/kweb/gds_files/ - # C extensions *.so diff --git a/Makefile b/Makefile deleted file mode 100644 index 7630e69..0000000 --- a/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -install: - pip install -e .[dev] - pre-commit install - -test: - pytest -s - -cov: - pytest --cov=kweb - -run: - export KWEB_FILESLOCATION=/tmp/gdsfactory - cd src/kweb - uvicorn --reload default:app - -mypy: - mypy . --ignore-missing-imports - -flake8: - flake8 --select RST - -pylint: - pylint src/kweb - -ruff: - ruff --fix src/kweb/*.py - -doc8: - doc8 docs/ - -update-pre: - pre-commit autoupdate --bleeding-edge - -git-rm-merged: - git branch -D `git branch --merged | grep -v \* | xargs` - -release: - git push - git push origin --tags - -build: - rm -rf dist - pip install build - python -m build From bfb715c256f6da9f4cf1cfa0e92844564658d13d Mon Sep 17 00:00:00 2001 From: Sebastian Goeldi Date: Thu, 31 Aug 2023 16:42:03 +0200 Subject: [PATCH 3/3] remove docs github workflow --- .github/workflows/test_code.yml | 48 ++++++++++++++++----------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test_code.yml b/.github/workflows/test_code.yml index 82f367a..04f8eb1 100644 --- a/.github/workflows/test_code.yml +++ b/.github/workflows/test_code.yml @@ -54,28 +54,28 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: false - test_docs: - needs: [pre-commit] - runs-on: ${{ matrix.os }} - strategy: - max-parallel: 12 - matrix: - python-version: ['3.10'] - os: [ubuntu-latest] + # test_docs: + # needs: [pre-commit] + # runs-on: ${{ matrix.os }} + # strategy: + # max-parallel: 12 + # matrix: + # python-version: ['3.10'] + # os: [ubuntu-latest] - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.11' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - sudo apt install pandoc - make install - pip install -e .[docs] - - name: Test documentation - run: | - cd docs - make html + # steps: + # - uses: actions/checkout@v3 + # - name: Set up Python + # uses: actions/setup-python@v4 + # with: + # python-version: '3.11' + # - name: Install dependencies + # run: | + # python -m pip install --upgrade pip + # sudo apt install pandoc + # make install + # pip install -e .[docs] + # - name: Test documentation + # run: | + # cd docs + # make html