Skip to content

Commit c653c34

Browse files
committed
use pyproject.toml
1 parent e0e87a0 commit c653c34

19 files changed

+103
-116
lines changed

.github/workflows/Docs.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ on:
88
branches:
99
- main
1010
paths:
11-
- 'doc/**'
11+
- 'docs/**'
1212
- 'multi_mst/*.py'
1313
- '.github/workflows/Docs.yml'
1414
workflow_dispatch:
1515

1616
jobs:
1717
pages:
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-24.04
1919
environment:
2020
name: github-pages
2121
url: ${{ steps.deployment.outputs.page_url }}
@@ -27,30 +27,20 @@ jobs:
2727
with:
2828
fetch-depth: 0
2929

30-
- uses: actions/setup-python@v5
31-
name: Install python
32-
with:
33-
python-version: "3.10"
34-
cache: 'pip'
35-
3630
- name: Install dependencies
3731
run: |
38-
python -m pip install --upgrade pip
3932
sudo apt-get install -y pandoc
40-
pip install -e .
4133
4234
- name: Prepare Examples
4335
run: |
4436
cd notebooks
4537
for FILE in *.ipynb; do
46-
cp $FILE ../doc
38+
cp $FILE ../docs
4739
done
4840
cd ..
4941
5042
- id: deployment
5143
uses: sphinx-notes/pages@v3
5244
with:
5345
cache: True
54-
checkout: False
55-
documentation_path: ./doc
56-
requirements_path: ./doc/requirements.txt
46+
checkout: False

.github/workflows/Publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
publish_pypi:
1414
name: Publish to PyPi
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-24.04
1616
permissions:
1717
# IMPORTANT: this permission is mandatory for trusted publishing
1818
id-token: write

.github/workflows/Tests.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
branches:
99
- main
1010
paths-ignore:
11-
- 'doc/**'
11+
- 'docs/**'
1212
- 'notebooks/**'
1313
- 'README.md'
1414
- '.gitignore'
@@ -18,7 +18,7 @@ on:
1818
branches:
1919
- main
2020
paths-ignore:
21-
- 'doc/**'
21+
- 'docs/**'
2222
- 'notebooks/**'
2323
- 'README.md'
2424
- '.gitignore'
@@ -29,7 +29,7 @@ on:
2929
jobs:
3030
build_dists:
3131
name: Build dists
32-
runs-on: ubuntu-20.04
32+
runs-on: ubuntu-24.04
3333
outputs:
3434
WHEEL_NAME: ${{ steps.dists.outputs.WHEEL_NAME }}
3535
steps:
@@ -46,7 +46,6 @@ jobs:
4646
- name: Install dependencies
4747
run: |
4848
python -m pip install --upgrade pip
49-
pip install -r requirements.txt
5049
pip install twine flake8 build
5150
5251
- name: Lint with flake8

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ MANIFEST
2626
.pytest_cache/
2727

2828
# Sphinx documentation
29-
doc/_build/
29+
docs/_build/
3030

3131
# Jupyter Notebook
3232
.ipynb_checkpoints

MANIFEST.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ include pyproject.toml
33
include LICENSE
44
include MANIFEST.in
55
include requirements.txt
6-
recursive-include doc *
7-
recursive-exclude doc/_build *
6+
recursive-exclude docs *
87
recursive-exclude notebooks *

doc/requirements.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)