Skip to content

Commit 74b4af6

Browse files
committed
setup.py -> pyproject.toml
1 parent b743009 commit 74b4af6

File tree

8 files changed

+4388
-91
lines changed

8 files changed

+4388
-91
lines changed

.github/workflows/html-macos.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,7 @@ jobs:
2828
# https://github.com/pypa/pip/issues/11684
2929
PYTHONWARNINGS: error,default::DeprecationWarning
3030
run: |
31-
$PIP install .
32-
- name: Install docs dependencies
33-
env:
34-
# DeprecationWarning: Unimplemented abstract methods {'locate_file'}
35-
# https://github.com/pypa/pip/issues/11684
36-
PYTHONWARNINGS: error,default::DeprecationWarning
37-
run: |
38-
$PIP install -r doc/requirements.txt
31+
$PIP install --group doc .
3932
- name: Build HTML
4033
env:
4134
# There is a weird warning from jupyter_core (https://github.com/jupyter/jupyter_core/issues/398)

.github/workflows/linkcheck.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,7 @@ jobs:
2929
# https://github.com/pypa/pip/issues/11684
3030
PYTHONWARNINGS: error,default::DeprecationWarning
3131
run: |
32-
$PIP install .
33-
- name: Install docs dependencies
34-
env:
35-
# DeprecationWarning: Unimplemented abstract methods {'locate_file'}
36-
# https://github.com/pypa/pip/issues/11684
37-
PYTHONWARNINGS: error,default::DeprecationWarning
38-
run: |
39-
$PIP install -r doc/requirements.txt
32+
$PIP install --group doc .
4033
- name: Check links
4134
env:
4235
# There is a weird warning from jupyter_core (https://github.com/jupyter/jupyter_core/issues/398)

.github/workflows/version-matrix.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,7 @@ jobs:
7171
# https://github.com/pypa/pip/issues/11684
7272
PYTHONWARNINGS: error,default::DeprecationWarning
7373
run: |
74-
$PIP install .
75-
- name: Install docs dependencies
76-
env:
77-
# DeprecationWarning: Unimplemented abstract methods {'locate_file'}
78-
# https://github.com/pypa/pip/issues/11684
79-
PYTHONWARNINGS: error,default::DeprecationWarning
80-
run: |
81-
$PIP install -r doc/requirements.txt --upgrade-strategy only-if-needed
74+
$PIP install --group doc .
8275
- name: Run Sphinx (HTML)
8376
env:
8477
# There is a weird warning from jupyter_core (https://github.com/jupyter/jupyter_core/issues/398)

.readthedocs.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
build:
3-
os: ubuntu-22.04
3+
os: "ubuntu-24.04"
44
tools:
55
python: "3"
66
apt_packages:
@@ -11,12 +11,10 @@ build:
1111
jobs:
1212
post_checkout:
1313
- git fetch --unshallow || true
14-
python:
15-
install:
16-
- requirements: doc/requirements.txt
17-
- method: pip
18-
path: .
19-
- requirements: doc/fallback_theme.txt
14+
install:
15+
- pip install --group doc .
16+
# fallback theme:
17+
- pip install insipid-sphinx-theme
2018
sphinx:
2119
configuration: doc/conf.py
2220
formats: all

doc/fallback_theme.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,58 @@
11
[build-system]
2-
requires = ["setuptools >= 40.8.0"]
2+
requires = ["setuptools", "setuptools-scm"]
33
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "nbsphinx"
7+
license = "MIT"
8+
dynamic = ["version"]
9+
description = "Jupyter Notebook Tools for Sphinx"
10+
readme = "README.rst"
11+
keywords = ["Sphinx", "Jupyter", "notebook"]
12+
authors = [{ name = "Matthias Geier", email = "[email protected]" }]
13+
classifiers = [
14+
"Framework :: Sphinx",
15+
"Framework :: Sphinx :: Extension",
16+
"Framework :: Jupyter",
17+
"Intended Audience :: Education",
18+
"Intended Audience :: Science/Research",
19+
"Operating System :: OS Independent",
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 3",
22+
"Topic :: Documentation :: Sphinx",
23+
]
24+
requires-python = ">=3.8"
25+
dependencies = [
26+
"docutils>=0.18.1",
27+
"jinja2",
28+
"nbconvert>=5.3,!=5.4",
29+
"nbformat",
30+
"sphinx>=1.8,!=8.2.0,!=8.2.1",
31+
"traitlets>=5",
32+
]
33+
34+
[project.urls]
35+
Documentation = "https://nbsphinx.readthedocs.io/"
36+
Repository = "https://github.com/spatialaudio/nbsphinx/"
37+
Issues = "https://github.com/spatialaudio/nbsphinx/issues/"
38+
39+
[dependency-groups]
40+
dev = [{ include-group = "test" }, { include-group = "doc" }]
41+
test = []
42+
doc = [
43+
"ipykernel",
44+
"numpy",
45+
"matplotlib",
46+
"ipympl",
47+
"pandas",
48+
"xarray",
49+
"sphinxcontrib-bibtex>=2.1",
50+
"sphinxcontrib-svg2pdfconverter",
51+
"ipywidgets",
52+
"jupytext",
53+
"sphinx-last-updated-by-git",
54+
"sphinx-codeautolink",
55+
]
56+
57+
[tool.setuptools.dynamic]
58+
version = { attr = "nbsphinx.__version__" }

setup.py

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

0 commit comments

Comments
 (0)