-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into #246-unified-external-file-handling
- Loading branch information
Showing
14 changed files
with
199 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: 'monthly' | ||
groups: | ||
gha-dependencies: | ||
patterns: | ||
- '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Description | ||
|
||
<!-- | ||
Insert Pull Request description here. | ||
What does this PR change? Why? | ||
--> | ||
|
||
## Checklist | ||
|
||
- [ ] PR has a descriptive title and content. | ||
- [ ] PR has one of the labels: documentation, bug, enhancement, feature, maintenance | ||
- [ ] Checks are passing. | ||
Failing lint checks can be resolved with: | ||
- `pre-commit run --all-files` | ||
- `jlpm run lint` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# The ReadTheDocs preview link is "hidden" within the GitHub "Checks" | ||
# interface. For users who don't know this, finding the preview link may be | ||
# very difficult or frustrating. This workflow makes the link more | ||
# findable by updating PR descriptions to include it. | ||
name: 'Add ReadTheDocs preview link to PR description' | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- 'opened' | ||
|
||
permissions: | ||
pull-requests: 'write' | ||
|
||
jobs: | ||
autolink-rtd-previews: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: 'readthedocs/actions/preview@v1' | ||
with: | ||
project-slug: 'jupytergis' | ||
message-template: | | ||
--- | ||
📚 Documentation preview: {docs-pr-index-url} | ||
💡 JupyterLite preview is available from the doc, by clicking on ![lite badge](https://jupyterlite.rtfd.io/en/latest/_static/badge.svg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html | ||
version: 2 | ||
|
||
build: | ||
os: "ubuntu-24.04" | ||
tools: | ||
nodejs: "20" | ||
jobs: | ||
# Install micromamba | ||
pre_create_environment: | ||
# The recommended syntax in the micromamba docs is process substitution. | ||
# RTD's default shell chokes on it, so we're doing it in multiple steps | ||
# instead. | ||
- curl -L micro.mamba.pm/install.sh > /tmp/micromamba-install.sh | ||
- chmod +x /tmp/micromamba-install.sh | ||
# For some reason, SHELL is not set. The install script requires it. | ||
- SHELL=/bin/bash /bin/bash /tmp/micromamba-install.sh | ||
|
||
# Override the create_environment step (undocumented feature) to create | ||
# multiple environments. | ||
create_environment: | ||
# Create the env for building the docs | ||
- /bin/bash --login -c "micromamba env create -n jupytergis-docs -f docs/environment-docs.yml" | ||
# Create the isolated env for building JupyterGIS | ||
- /bin/bash --login -c "micromamba create -n jupytergis-build -c conda-forge yarn=3 hatch pip python=3.10" | ||
- /bin/bash --login -c "micromamba run -n jupytergis-build pip install -r requirements-build.txt" | ||
|
||
# Override the install step to do nothing - we already created the envs | ||
install: | ||
- "echo 'Skipping! We already have the environments we need.'" | ||
|
||
# Before building the docs, build JupyterGIS in its isolated environment, | ||
# then install the wheels into the docs environment. | ||
pre_build: | ||
- /bin/bash --login -c "micromamba run -n jupytergis-build yarn install" | ||
- /bin/bash --login -c "micromamba run -n jupytergis-build yarn dev" | ||
- /bin/bash --login -c "micromamba run -n jupytergis-build jupyter labextension list 2>&1 | grep -ie 'jupytergis-core.*OK'" | ||
- /bin/bash --login -c "micromamba run -n jupytergis-build jupyter labextension list 2>&1 | grep -ie 'jupytergis-lab.*OK'" | ||
- /bin/bash --login -c "micromamba run -n jupytergis-build yarn build:packages" | ||
|
||
- |- | ||
/bin/bash --login -c "micromamba run -n jupytergis-docs \ | ||
python -m pip install \ | ||
$(ls ./python/jupytergis_core/dist/jupytergis*.whl) \ | ||
$(ls ./python/jupytergis_lab/dist/jupytergis*.whl) \ | ||
$(ls ./python/jupytergis_qgis/dist/jupytergis*.whl)" | ||
build: | ||
html: | ||
- |- | ||
/bin/bash --login -c "cd docs && micromamba run -n jupytergis-docs \ | ||
python -m sphinx -T -b html -d _build/doctrees -D language=en . \ | ||
$READTHEDOCS_OUTPUT/html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.