Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 33 additions & 31 deletions .github/workflows/reusable-cookie.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,47 +46,49 @@ jobs:
run: uv tool install nox

- name: Test pybind11
run: nox -s 'tests(pybind11, novcs)' -s 'tests(pybind11, vcs)'
run: nox -s 'tests(pybind11, novcs)' -s 'tests(pybind11, vcs, sphinx)'

- name: Test scikit-build
run: nox -s 'tests(skbuild, novcs)' -s 'tests(skbuild, vcs)'
run: nox -s 'tests(skbuild, novcs)' -s 'tests(skbuild, vcs, sphinx)'

- name: Test poetry
run: nox -s 'tests(poetry, novcs)' -s 'tests(poetry, vcs)'
run: nox -s 'tests(poetry, novcs)' -s 'tests(poetry, vcs, sphinx)'

- name: Test flit
run: nox -s 'tests(flit, novcs)' -s 'tests(flit, vcs)'
run: nox -s 'tests(flit, novcs)' -s 'tests(flit, vcs, mkdocs)'

- name: Test uv
run: nox -s 'tests(uv, novcs)'
run: nox -s 'tests(uv, novcs, sphinx)'

- name: Test pdm
run: nox -s 'tests(pdm, novcs)' -s 'tests(pdm, vcs)'
run: nox -s 'tests(pdm, novcs)' -s 'tests(pdm, vcs, sphinx)'

- name: Test maturin
run: nox -s 'tests(maturin, novcs)'
run: nox -s 'tests(maturin, novcs, sphinx)'

- name: Test hatch
run: nox -s 'tests(hatch, novcs)' -s 'tests(hatch, vcs)'
run: nox -s 'tests(hatch, novcs, sphinx)' -s 'tests(hatch, vcs, sphinx)'

- name: Test setuptools PEP 621
run: nox -s 'tests(setuptools, novcs)' -s 'tests(setuptools, vcs)'
run:
nox -s 'tests(setuptools, novcs, sphinx)' -s 'tests(setuptools, vcs,
sphinx)'

- name: Native poetry tooling
if: matrix.python-version != 'pypy-3.11'
run: |
nox -s 'native(poetry, novcs)'
nox -s 'native(poetry, vcs)'
nox -s 'native(poetry, novcs, sphinx)'
nox -s 'native(poetry, vcs, sphinx)'

- name: Native pdm tooling
run: nox -s 'native(pdm, novcs)' -s 'native(pdm, vcs)'
run: nox -s 'native(pdm, novcs, sphinx)' -s 'native(pdm, vcs, sphinx)'

- name: Activate MSVC for Meson
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1

- name: Test meson-python
run: nox -s 'tests(mesonpy, novcs)'
run: nox -s 'tests(mesonpy, novcs, sphinx)'

- name: Compare copier template generation
run: nox -s compare_copier
Expand Down Expand Up @@ -114,52 +116,52 @@ jobs:

- name: Test pybind11
run: |
nox -s 'nox(pybind11, vcs)'
nox -s 'nox(pybind11, vcs)' -- docs
nox -s 'nox(pybind11, vcs, sphinx)'
nox -s 'nox(pybind11, vcs, sphinx)' -- docs

- name: Test scikit-build
run: |
nox -s 'nox(skbuild, vcs)'
nox -s 'nox(skbuild, vcs)' -- docs
nox -s 'nox(skbuild, vcs, sphinx)'
nox -s 'nox(skbuild, vcs, mkdocs)' -- docs

- name: Test poetry
run: |
nox -s 'nox(poetry, novcs)'
nox -s 'nox(poetry, novcs)' -- docs
nox -s 'nox(poetry, novcs, sphinx)'
nox -s 'nox(poetry, novcs, mkdocs)' -- docs

- name: Test flit
run: |
nox -s 'nox(flit, novcs)'
nox -s 'nox(flit, novcs)' -- docs
nox -s 'nox(flit, novcs, mkdocs)'
nox -s 'nox(flit, novcs, mkdocs)' -- docs

- name: Test pdm
run: |
nox -s 'nox(pdm, vcs)'
nox -s 'nox(pdm, vcs)' -- docs
nox -s 'nox(pdm, vcs, sphinx)'
nox -s 'nox(pdm, vcs, sphinx)' -- docs

- name: Test maturin
run: |
nox -s 'nox(maturin, novcs)'
nox -s 'nox(maturin, novcs)' -- docs
nox -s 'nox(maturin, novcs, sphinx)'
nox -s 'nox(maturin, novcs, sphinx)' -- docs

- name: Test hatch
run: |
nox -s 'nox(hatch, vcs)'
nox -s 'nox(hatch, vcs)' -- docs
nox -s 'nox(hatch, vcs, mkdocs)'
nox -s 'nox(hatch, vcs, mkdocs)' -- docs

- name: Test setuptools PEP 621
run: |
nox -s 'nox(setuptools, vcs)'
nox -s 'nox(setuptools, vcs)' -- docs
nox -s 'nox(setuptools, vcs, sphinx)'
nox -s 'nox(setuptools, vcs, sphinx)' -- docs

- name: Activate MSVC for Meson
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1

- name: Test meson-python
run: |
nox -s 'nox(mesonpy, novcs)'
nox -s 'nox(mesonpy, novcs)' -- docs
nox -s 'nox(mesonpy, novcs, sphinx)'
nox -s 'nox(mesonpy, novcs, sphinx)' -- docs

dist:
name: Distribution build
Expand Down
6 changes: 6 additions & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"mesonpy",
"maturin"
],
"docs": ["sphinx", "mkdocs"],
"vcs": true,
"__year": "{% now 'utc', '%Y' %}",
"__project_slug": "{{ cookiecutter.project_name | lower | replace('-', '_') | replace('.', '_') }}",
Expand Down Expand Up @@ -45,6 +46,11 @@
"mesonpy": "Meson-python - Compiled C++ (also good)",
"maturin": "Maturin - Compiled Rust (recommended)"
},
"docs": {
"__prompt__": "Choose your documentation tool",
"sphinx": "Sphinx",
"mkdocs": "MkDocs"
},
"vcs": "Use version control for versioning"
}
}
8 changes: 8 additions & 0 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ backend:
"Maturin - Compiled Rust (recommended)": maturin
# [[[end]]]

# [[[cog print(cc.docs.yaml()) ]]]
docs:
help: Choose your documentation tool
choices:
"Sphinx": sphinx
"MkDocs": mkdocs
# [[[end]]]

# [[[cog print(cc.vcs.yaml()) ]]]
vcs:
type: bool
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ scientists and research software engineers. The repository contains:
## Contributing to the documentation

To build locally, install rbenv (remember to run `rbenv init` after installing,
and `rbenv install 3.1.2`). Then:
and `rbenv install 3.4.1`). Then:

```bash
bundle install
Expand Down
Loading
Loading