Skip to content

Commit 21faee5

Browse files
authored
Merge branch 'main' into no-jupyter-execution
2 parents aa033a2 + 0106bd2 commit 21faee5

File tree

18 files changed

+739
-619
lines changed

18 files changed

+739
-619
lines changed

.devcontainer/devcontainer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "Python 3",
3+
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
4+
"features": {
5+
"ghcr.io/devcontainers-contrib/features/hatch:2": {},
6+
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {}
7+
},
8+
"postCreateCommand": "pre-commit install"
9+
}

.github/workflows/prerelease.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
steps:
4040
- uses: actions/checkout@v4
4141
- uses: actions/setup-python@v5
42+
with:
43+
python-version: "3.10"
4244
- name: Install dependencies
4345
run: pip install hatch
4446

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
steps:
4848
- uses: actions/checkout@v4
4949
- uses: actions/setup-python@v5
50+
with:
51+
python-version: "3.10"
5052
- name: Install hatch
5153
run: pip install hatch
5254
- name: Build docs

.gitignore

Lines changed: 154 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,160 @@
1-
.venv
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
23
*.py[cod]
4+
*$py.class
35

4-
# Packages
5-
*.egg
6-
*.egg-info
7-
dist
8-
build
9-
eggs
10-
parts
11-
bin
12-
var
13-
sdist
14-
develop-eggs
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
1525
.installed.cfg
16-
lib
17-
lib64
18-
__pycache__
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# poetry
98+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102+
#poetry.lock
103+
104+
# pdm
105+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106+
#pdm.lock
107+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108+
# in version control.
109+
# https://pdm.fming.dev/#use-with-ide
110+
.pdm.toml
111+
112+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113+
__pypackages__/
114+
115+
# Celery stuff
116+
celerybeat-schedule
117+
celerybeat.pid
118+
119+
# SageMath parsed files
120+
*.sage.py
121+
122+
# Environments
123+
.env
124+
.venv
125+
env/
126+
venv/
127+
ENV/
128+
env.bak/
129+
venv.bak/
130+
131+
# Spyder project settings
132+
.spyderproject
133+
.spyproject
134+
135+
# Rope project settings
136+
.ropeproject
137+
138+
# mkdocs documentation
139+
/site
140+
141+
# mypy
142+
.mypy_cache/
143+
.dmypy.json
144+
dmypy.json
145+
146+
# Pyre type checker
147+
.pyre/
19148

20-
# Jupyter notebook checkpoints
21-
.ipynb_checkpoints/
149+
# pytype static type analyzer
150+
.pytype/
22151

23-
# OS X
24-
.DS_Store
152+
# Cython debug symbols
153+
cython_debug/
25154

26-
# git
27-
*.orig
155+
# PyCharm
156+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158+
# and can be added to the global gitignore or merged into this file. For a more nuclear
159+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160+
#.idea/

.pre-commit-config.yaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,6 @@ repos:
3636
- id: prettier
3737
types_or: [yaml, html, json]
3838

39-
- repo: https://github.com/adamchainz/blacken-docs
40-
rev: "1.16.0"
41-
hooks:
42-
- id: blacken-docs
43-
additional_dependencies: [black==23.7.0]
44-
exclude: |
45-
(?x)^(
46-
doc/source/index.rst|
47-
tests/test_execute.py
48-
)$(|)
49-
5039
- repo: https://github.com/codespell-project/codespell
5140
rev: "v2.2.6"
5241
hooks:
@@ -68,9 +57,3 @@ repos:
6857
args: ["--fix", "--show-fixes"]
6958
- id: ruff-format
7059
types_or: [python, jupyter]
71-
72-
- repo: https://github.com/scientific-python/cookie
73-
rev: "2023.10.27"
74-
hooks:
75-
- id: sp-repo-review
76-
additional_dependencies: ["repo-review[cli]"]

.readthedocs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
12
version: 2
23
build:
34
os: ubuntu-22.04
45
tools:
5-
python: "3.8"
6+
python: "3.10"
67
sphinx:
7-
configuration: doc/source/conf.py
8+
configuration: docs/conf.py
89
python:
910
install:
10-
# install itself with pip install .
1111
- method: pip
1212
path: .
1313
extra_requirements:

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Jupyter Sphinx Extensions
22

3+
[![BSD licence](https://img.shields.io/badge/License-BSD3-yellow.svg?logo=opensourceinitiative&logoColor=white)](LICENSE)
4+
[![black](https://img.shields.io/badge/code%20style-black-000000)](https://github.com/psf/black)
5+
[![prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?logo=prettier&logoColor=white)](https://github.com/prettier/prettier)
6+
[![pre-commit](https://img.shields.io/badge/pre--commit-active-yellow?logo=pre-commit&logoColor=white)](https://pre-commit.com/)
7+
[![pypi version](https://img.shields.io/pypi/v/jupyter-sphinx?color=blue&logo=pypi&logoColor=white)](https://pypi.org/project/jupyter-sphinx/)
8+
[![conda-forge version badge](https://img.shields.io/conda/vn/conda-forge/jupyter-sphinx?logo=anaconda&logoColor=white&color=blue)](https://anaconda.org/conda-forge/jupyter-sphinx)
9+
[![tests](https://img.shields.io/github/actions/workflow/status/jupyter/jupyter-sphinx/tests.yml?logo=github&logoColor=white)](https://github.com/jupyter/jupyter-sphinx/actions/workflows/tests.yml)
10+
[![docs](https://img.shields.io/readthedocs/jupyter-sphinx?logo=readthedocs&logoColor=white)](https://jupyter-sphinx.readthedocs.io/)
11+
312
`jupyter-sphinx` enables running code embedded in Sphinx documentation and
413
embedding output of that code into the resulting document. It has support
514
for rich output such as images and even Jupyter interactive widgets.

RELEASE.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ To cut a new Jupyter Sphinx release, follow these steps:
88
- Ensure that all tests are passing on master.
99

1010
- In [`_version.py`](https://github.com/jupyter/jupyter-sphinx/blob/main/jupyter_sphinx/_version.py),
11-
change the "release type" section to "final" e.g.:
11+
update the version number:
1212

1313
```python
14-
version_info = (0, 2, 3, "final")
14+
__version__ = "0.2.3"
1515
```
1616

1717
- Make a release commit and push to main
@@ -24,19 +24,11 @@ To cut a new Jupyter Sphinx release, follow these steps:
2424

2525
- [Create a new github release](https://github.com/jupyter/jupyter-sphinx/releases/new).
2626
The target should be **main**, the tag and the title should be the version number,
27-
e.g. `0.2.3`.
27+
e.g. `v0.2.3`.
2828

2929
- Creating the release in GitHub will push a tag commit to the repository, which will
3030
trigger [a GitHub action](https://github.com/jupyter/jupyter-sphinx/blob/main/.github/workflows/artifacts.yml)
3131
to build `jupyter-sphinx` and push the new version to PyPI.
3232
[Confirm that the version has been bumped](https://pypi.org/project/jupyter-sphinx/).
3333

34-
- In [`_version.py`](https://github.com/jupyter/jupyter-sphinx/blob/main/jupyter_sphinx/_version.py),
35-
bump the minor version and change the "release type" section to "alpha". **make sure to
36-
include a number after the release type**, e.g.:
37-
38-
```python
39-
version_info = (0, 2, 4, "alpha", 1)
40-
```
41-
4234
- That's it!

doc/Makefile

Lines changed: 0 additions & 26 deletions
This file was deleted.

doc/source/conf.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)