Skip to content

Commit

Permalink
Update to drawio 21.1.4 (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed Apr 9, 2023
1 parent 606fd70 commit 3765c72
Show file tree
Hide file tree
Showing 189 changed files with 3,415 additions and 7,799 deletions.
41 changes: 22 additions & 19 deletions .binder/environment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# a heavy demo environment for interactive testing

# Copyright 2022 ipydrawio contributors
# Copyright 2023 ipydrawio contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -21,7 +21,7 @@ channels:
- nodefaults

dependencies:
- python >=3.7
- python >=3.8
# demo toys
- graphviz2drawio
- jupyter-lsp-python-lsp-server
Expand All @@ -31,6 +31,7 @@ dependencies:
- matplotlib-base
- nbgitpuller
- networkx
- pandas
- pygraphviz
- python-graphviz
- qrcode-artistic
Expand All @@ -44,27 +45,28 @@ dependencies:
- jupyterlab_widgets
- jupyterlab-tour
- jupyterlab-webrtc-docprovider
- wxyz_datagrid
- wxyz_json_schema_form
- wxyz_lab
- wxyz_svg
- jupyterlite-pyodide-kernel ==0.0.6
- jupyterlite-javascript-kernel
### FEDERATED EXTENSIONS ###
############################################################################
### ipydrawio-docs-deps ###

- autodoc-traits
- docutils >=0.18.1
- jupyter-server-mathjax
- jupyterlab-myst
- jupyterlite-core ==0.1.0
- jupyterlite-core-with-libarchive
- jupyterlite-pyodide-kernel ==0.0.6
- myst-nb
- pkginfo
- pydata-sphinx-theme >=0.10.1,<0.11.0
- pydata-sphinx-theme >=0.13.3,<0.14.0
- pytest-check-links
- python-libarchive-c
- sphinx >=5,<6
- sphinx-copybutton
- sphinx-design
- sphinx-jsonschema
- sphinxext-rediraffe
- ssort
- pip:
- jupyterlite ==0.1.0b14

### ipydrawio-docs-deps ###

Expand All @@ -75,33 +77,34 @@ dependencies:

# core
- doit
- nodejs >=16,<17
- nodejs >=18,<19
- python # this gets patched in ci
# run
- ipywidgets >=7.6,<9
- jupyterlab >=3.5.0,<4.0.0a0
- jupyterlab >=3.6.3,<4.0.0a0
- jupyterlab_widgets >=1
- lxml
- pillow
- pypdf2
- pypdf >=3.5
- requests_cache
# building
- flit >=3.7.1
- pip
- twine >=3.7.1
- wheel
# linting
- black
- flake8
- isort >=5
- pyflakes
- black-jupyter
- nbqa
- pyyaml
- robotframework-lint
- robotframework-tidy
- robotframework-robocop
- ruff
- ssort
# unit testing
- pytest
- pytest-console-scripts
- pytest-html
- pytest-jupyter-server
- pytest-tornasync
- pytest-xdist
# acceptance testing
Expand Down
3 changes: 1 addition & 2 deletions .binder/jupyter_config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"LabApp": {
"collaborative": true,
"ServerApp": {
"tornado_settings": {
"page_config_data": {
"buildAvailable": false,
Expand Down
2 changes: 1 addition & 1 deletion .binder/postBuild
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

# Copyright 2022 ipydrawio contributors
# Copyright 2023 ipydrawio contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
1 change: 0 additions & 1 deletion .github/.condarc
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ remote_read_timeout_secs: 600.0
show_channel_urls: True
show_sources: True
unsatisfiable_hints_check_depth: 0
use_only_tar_bz2: True
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ refreshing the window and then reproducing the bug to reduce the noise in the lo
</details>

<!--
# Copyright 2022 ipydrawio contributors
# Copyright 2023 ipydrawio contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ https://jupyterlab.readthedocs.io/en/latest/getting_started/issue.html
<!--Describe how this documentation can be kept up-to-date: testing, link checking, etc. -->

<!--
# Copyright 2022 ipydrawio contributors
# Copyright 2023 ipydrawio contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ https://jupyterlab.readthedocs.io/en/latest/getting_started/issue.html
<!-- Share any kind of design ideas (e.g. ASCII art, links, screenshots) that might help us understand -->

<!--
# Copyright 2022 ipydrawio contributors
# Copyright 2023 ipydrawio contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ labels: maintenance
https://discourse.jupyter.org/t/ipydrawio-diagrams-in-jupyterlab-with-pages-layers-widgets-pdf-export

<!--
# Copyright 2022 ipydrawio contributors
# Copyright 2023 ipydrawio contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion .github/environment-conda-build-win.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# a sufficient environment for building conda packages

# Copyright 2022 ipydrawio contributors
# Copyright 2023 ipydrawio contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion .github/environment-conda-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# a sufficient environment for building conda packages

# Copyright 2022 ipydrawio contributors
# Copyright 2023 ipydrawio contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
6 changes: 2 additions & 4 deletions .github/environment-py37.yml → .github/environment-py38.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# extra/pinned packages for python 3.7
# extra/pinned packages for python 3.8

# Copyright 2022 ipydrawio contributors
# Copyright 2023 ipydrawio contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -21,7 +21,5 @@ channels:
- nodefaults

dependencies:
# for flake8, sigh
- importlib-metadata <4.3
# for legacy ipywidgets
- ipywidgets <8
19 changes: 10 additions & 9 deletions .github/environment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# a sufficient environment for acceptance testing

# Copyright 2022 ipydrawio contributors
# Copyright 2023 ipydrawio contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -25,33 +25,34 @@ dependencies:

# core
- doit
- nodejs >=16,<17
- nodejs >=18,<19
- python # this gets patched in ci
# run
- ipywidgets >=7.6,<9
- jupyterlab >=3.5.0,<4.0.0a0
- jupyterlab >=3.6.3,<4.0.0a0
- jupyterlab_widgets >=1
- lxml
- pillow
- pypdf2
- pypdf >=3.5
- requests_cache
# building
- flit >=3.7.1
- pip
- twine >=3.7.1
- wheel
# linting
- black
- flake8
- isort >=5
- pyflakes
- black-jupyter
- nbqa
- pyyaml
- robotframework-lint
- robotframework-tidy
- robotframework-robocop
- ruff
- ssort
# unit testing
- pytest
- pytest-console-scripts
- pytest-html
- pytest-jupyter-server
- pytest-tornasync
- pytest-xdist
# acceptance testing
Expand Down
22 changes: 2 additions & 20 deletions .github/pip-build.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# basically ipydrawio[all,test] and ipydrawio-export... plus robot, pyyaml
black
doit
flake8
ipywidgets >=7.6,<9
isort >=5
jsonpointer
jupyterlab ==3.*
jupyterlab_widgets >=1
lxml
pillow
flit
pip
pyflakes
pypdf2
pytest
pyyaml
requests
requests-cache
robotframework
robotframework-lint
setuptools
ssort
wheel
jupyterlab >=3.6,<4.0.0a0
49 changes: 49 additions & 0 deletions .github/workflows/badges.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# make badges

# Copyright 2023 ipydrawio contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

on:
pull_request_target:
types: [opened]

permissions:
pull-requests: write

jobs:
binder:
runs-on: ubuntu-latest
steps:
- name: Add Binder/Lite PR comment
uses: actions/github-script@v6
env:
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
PR_HEAD_USERREPO: ${{ github.event.pull_request.head.repo.full_name }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const PR_NUMBER = context.issue.number
const { PR_HEAD_REF, PR_HEAD_USERREPO } = process.env;
const RTD = `https://ipydrawio--${PR_NUMBER}.org.readthedocs.build/en/${PR_NUMBER}/_static/lab/index.html?path=Diagram%20Widget.ipynb`;
const BH = `https://mybinder.org/v2/gh/${PR_HEAD_USERREPO}/${PR_HEAD_REF}?urlpath=lab/tree/docs/Diagram%20Widget.ipynb`;
const LITE = `https://jupyterlite.rtfd.io/en/latest/_static/badge.svg`;
const BND = `https://mybinder.org/badge_logo.svg`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Try this PR on [![](${LITE})](${RTD}) :arrow_left: ReadTheDocs or Binder :arrow_right: [![](${BND})](${BH})`,
});

0 comments on commit 3765c72

Please sign in to comment.