Skip to content

Commit

Permalink
Update versions for 0.2.0 release (#74)
Browse files Browse the repository at this point in the history
* bump a bunch of versions

* update some docs

* update more versions, links, style
  • Loading branch information
bollwyvl authored Oct 27, 2023
1 parent 143526c commit 93c654a
Show file tree
Hide file tree
Showing 13 changed files with 1,115 additions and 1,107 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build:
os: ubuntu-22.04
tools:
python: '3.11'
nodejs: '18'
nodejs: '20'
apt_packages:
- libarchive-dev

Expand Down
15 changes: 8 additions & 7 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ nodeLinker: node-modules
npmRegistryServer: https://registry.npmjs.org/
installStatePath: ./build/.cache/yarn/install-state.gz
cacheFolder: ./build/.cache/yarn/cache
# these messages provide no actionable information, and make non-TTY output
# almost unreadable, masking real dependency-related information
# see: https://yarnpkg.com/advanced/error-codes
logFilters:
- code: YN0006
- code: YN0006 # SOFT_LINK_BUILD
level: discard
- code: YN0002
- code: YN0007 # MUST_BUILD
level: discard
- code: YN0007
- code: YN0008 # MUST_REBUILD
level: discard
- code: YN0013
- code: YN0013 # FETCH_NOT_CACHED
level: discard
- code: YN0019
level: discard
- code: YN0008
- code: YN0019 # UNUSED_CACHE_ENTRY
level: discard
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The final, user-facing products of `jupyterlite-pyodide-kernel` are:

- the [distribution](#distributions) on `pyp.org` and `npmjs.org`
- the [distribution](#distributions) on `pypi.org` and `npmjs.org`
- the [documentation](#documentation) on ReadTheDocs

Preparing for a [release], however, requires a number of intermediate steps.
Expand All @@ -18,7 +18,7 @@ and watch what it does to files on disk and in the terminal log.

- `git`
- `python >=3.8`
- `nodejs >=18,<19`
- `nodejs >=20,<21`

### Setup

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@

### Compatibility

| status | `jupyterlite-pyodide-kernel` | `jupyterlite-core` | `jupyterlab` | `notebook` | `retrolab` |
| :---------------------------: | :--------------------------: | :----------------: | :----------: | :--------: | ---------- |
| [alpha](#prerelease-versions) | `0.2.*` | `0.2.*` | `4.0.*` | `7.0.*` | - |
| stable | `0.1.*` | `0.1.*` | `3.5.*` | - | `0.3.*` |
| status | `jupyterlite-pyodide-kernel` | `jupyterlite-core` | `jupyterlab` | `notebook` | `retrolab` |
| :----: | :--------------------------: | :----------------: | :----------: | :----------: | :----------: |
| stable | `0.2.*` | `>=0.2,<0.3` | `>=4.0.7,<5` | `>=7.0.5,<8` | - |
| stable | `0.1.*` | `>=0.1,<0.2` | `>=3.5,<3.6` | - | `>=0.3,<0.4` |

Installing the matching version of JupyterLab with your package manager can help ensure
matching labextension assets and kernel dependencies, even though this kernel does not
Expand Down Expand Up @@ -89,7 +89,7 @@ documentation site:
To remove the extension, run:

```bash
pip uninstall jupyterlite-pyodide-kernel # or howver you installed it
pip uninstall jupyterlite-pyodide-kernel # or however you installed it
```

## Prerelease Versions
Expand Down
3 changes: 3 additions & 0 deletions docs/_static/variables.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.table {
--bs-table-bg: transparent;
}
27 changes: 13 additions & 14 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,20 @@

# theme
html_theme = "pydata_sphinx_theme"
html_logo = "../packages/pyodide-kernel-extension/style/img/pyodide.svg"
html_favicon = html_logo
html_theme_options = {
"github_url": P["urls"]["Source"],
"use_edit_page_button": True,
"icon_links": [
{
"name": "PyPI",
"url": P["urls"]["PyPI"],
"icon": "fa-solid fa-box",
},
{"name": "PyPI", "url": P["urls"]["PyPI"], "icon": "fa-solid fa-box"}
],
"logo": {
"text": P["name"]
},
"navigation_with_keys": False,
"pygment_light_style": "github-light",
"pygment_dark_style": "github-dark"
"pygment_dark_style": "github-dark",
"use_edit_page_button": True,
}

github_user, github_repo = P["urls"]["Source"].split("/")[-2:]
Expand All @@ -56,16 +58,13 @@
}
# rely on the order of these to patch json, labextensions correctly
html_static_path = [
"./_static",
# as-built assets for testing "hot" downstreams against a PR without rebuilding
"../dist",
# as-built application, extensions, contents, and patched jupyter-lite.json
"../build/docs-app",
]

# TODO: add the pyodide logo
# html_theme_options = {
# "logo": {
# "image_light": "TODO",
# "image_dark": "TODO",
# }
# }
html_css_files = [
"variables.css",
]
3 changes: 3 additions & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
```{include} ../CONTRIBUTING.md
```

```{include} ../RELEASE.md
```
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</style>

<iframe
src="./_static/retro/notebooks/index.html?path=intro.ipynb"
src="./_static/notebooks/index.html?path=intro.ipynb"
style="width: 99%; border: solid 1px #999; height: 500px"
></iframe>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jupyterlite/pyodide-kernel-root",
"version": "0.2.0-alpha.4",
"version": "0.2.0",
"private": true,
"workspaces": {
"packages": [
Expand Down
12 changes: 6 additions & 6 deletions packages/pyodide-kernel-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jupyterlite/pyodide-kernel-extension",
"version": "0.2.0-alpha.2",
"version": "0.2.0",
"description": "JupyterLite - Pyodide Kernel Extension",
"homepage": "https://github.com/jupyterlite/pyodide-kernel",
"bugs": {
Expand Down Expand Up @@ -48,13 +48,13 @@
},
"dependencies": {
"@jupyterlab/coreutils": "^6.0.6",
"@jupyterlite/contents": "^0.2.0-alpha.4",
"@jupyterlite/kernel": "^0.2.0-alpha.4",
"@jupyterlite/pyodide-kernel": "^0.2.0-alpha.2",
"@jupyterlite/server": "^0.2.0-alpha.4"
"@jupyterlite/contents": "^0.2.0",
"@jupyterlite/kernel": "^0.2.0",
"@jupyterlite/pyodide-kernel": "^0.2.0",
"@jupyterlite/server": "^0.2.0"
},
"devDependencies": {
"@jupyterlab/builder": "~4.0.6",
"@jupyterlab/builder": "~4.0.7",
"rimraf": "^5.0.1",
"typescript": "~5.2.2"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/pyodide-kernel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jupyterlite/pyodide-kernel",
"version": "0.2.0-alpha.2",
"version": "0.2.0",
"description": "JupyterLite - Pyodide Kernel",
"homepage": "https://github.com/jupyterlite/pyodide-kernel",
"bugs": {
Expand Down Expand Up @@ -53,8 +53,8 @@
},
"dependencies": {
"@jupyterlab/coreutils": "^6.0.6",
"@jupyterlite/contents": "^0.2.0-alpha.4",
"@jupyterlite/kernel": "^0.2.0-alpha.4",
"@jupyterlite/contents": "^0.2.0",
"@jupyterlite/kernel": "^0.2.0",
"comlink": "^4.4.1"
},
"devDependencies": {
Expand Down
14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
requires = [
"hatchling >=1.4.0",
"jupyterlab >=4.0.5,<5.0.0a0",
"jupyterlab >=4.0.7,<5.0.0a0",
]
build-backend = "hatchling.build"

Expand All @@ -25,6 +25,8 @@ license = { file = "LICENSE" }
requires-python = ">=3.8"
classifiers = [
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
"Framework :: Jupyter :: JupyterLab :: 4",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
Expand All @@ -34,7 +36,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
]
dependencies = [
"jupyterlite-core >=0.2.0a4,<0.3.0",
"jupyterlite-core >=0.2.0,<0.3.0",
"pkginfo"
]

Expand All @@ -56,7 +58,7 @@ jupyterlite-pyodide-kernel-pyodide = "jupyterlite_pyodide_kernel.addons.pyodide:
dev = [
"build",
"hatch",
"jupyterlab >=4.0.5,<5.0.0a0",
"jupyterlab >=4.0.7,<5.0.0a0",
]

lint = [
Expand All @@ -72,7 +74,7 @@ test = [
]

docs = [
"ipywidgets>=8.0,<9",
"ipywidgets >=8.1.1,<9",
"jupyterlab-language-pack-fr-FR",
"jupyterlab-language-pack-zh-CN",
"myst-parser",
Expand Down Expand Up @@ -135,11 +137,11 @@ version_cmd = "python scripts/bump-version.py"

[tool.jupyter-releaser.hooks]
before-bump-version = [
"python -m pip install 'jupyterlab~=4.0.5'",
"python -m pip install 'jupyterlab~=4.0.7'",
"jlpm"
]
before-build-npm = [
"python -m pip install 'jupyterlab~=4.0.5' hatch",
"python -m pip install 'jupyterlab~=4.0.7' hatch",
"python -m pip install -e .[dev]",
"jlpm",
"jlpm build:prod",
Expand Down
Loading

0 comments on commit 93c654a

Please sign in to comment.