File tree Expand file tree Collapse file tree 5 files changed +37
-16
lines changed Expand file tree Collapse file tree 5 files changed +37
-16
lines changed Original file line number Diff line number Diff line change @@ -18,21 +18,25 @@ jobs:
18
18
with :
19
19
python-version : 3.11
20
20
21
+ - name : Install Poetry
22
+ run : |
23
+ curl -sSL https://install.python-poetry.org | python3 -
24
+
21
25
- name : Install dependencies
22
26
run : |
23
- pip install -r requirements.txt
27
+ poetry install
24
28
25
29
# (optional) Cache your executed notebooks between runs
26
30
- name : Cache executed notebooks
27
31
uses : actions/cache@v4
28
32
with :
29
33
path : _build/.jupyter_cache
30
- key : jupyter-book-cache-${{ hashFiles('requirements.txt ') }}
34
+ key : jupyter-book-cache-${{ hashFiles('pyproject.toml ') }}
31
35
32
36
# Build the book
33
37
- name : Build the book
34
38
run : |
35
- jupyter-book build .
39
+ poetry run jupyter-book build .
36
40
37
41
# Always upload logs, even if build succeeds
38
42
- name : Upload error logs
Original file line number Diff line number Diff line change @@ -25,21 +25,25 @@ jobs:
25
25
with :
26
26
python-version : 3.11
27
27
28
+ - name : Install Poetry
29
+ run : |
30
+ curl -sSL https://install.python-poetry.org | python3 -
31
+
28
32
- name : Install dependencies
29
33
run : |
30
- pip install -r requirements.txt
34
+ poetry install
31
35
32
36
# (optional) Cache your executed notebooks between runs
33
37
- name : Cache executed notebooks
34
- uses : actions/cache@v3
38
+ uses : actions/cache@v4
35
39
with :
36
40
path : _build/.jupyter_cache
37
- key : jupyter-book-cache-${{ hashFiles('requirements.txt ') }}
41
+ key : jupyter-book-cache-${{ hashFiles('pyproject.toml ') }}
38
42
39
43
# Build the book
40
44
- name : Build the book
41
45
run : |
42
- jupyter-book build .
46
+ poetry run jupyter-book build .
43
47
44
48
# Upload the book's HTML as an artifact
45
49
- name : Upload artifact
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ There are also several files within the root directory; these include:
30
30
- ** _ toc.yml** : This file organizes the structure and overall navigation of the content of the Jupyter Book that is built.
31
31
- ** CITATION.cff** : Provides citation information for the CfRR website, and the course content aggregated throughout the website.
32
32
- ** references.bib** : Used to store bibliographic references throughout all of the content on the website.
33
- - ** requirements.txt ** : A file that specifies the dependencies of the Python kernel used in the website.
33
+ - ** pyproject.yml ** : A file that specifies the dependencies of the Python kernel used in the website.
34
34
35
35
## Contributing
36
36
Original file line number Diff line number Diff line change
1
+ [tool.poetry]
2
+ name = "Coding for Reproducible Research Courses"
3
+ description = "Coding for Reproducible Research : Courses and Training Materials"
4
+ authors = ["CfRR Contributors"]
5
+ repository = "https://github.com/coding-for-reproducible-research/CfRR_Courses"
6
+ homepage = "https://coding-for-reproducible-research.github.io/CfRR_Courses/home_page.html"
7
+
8
+ [tool.poetry.dependencies]
9
+ python = "^3.8"
10
+ numpy = "1.26.4"
11
+ pandas = "^latest"
12
+ jupyter-book = "^latest"
13
+ ghp-import = "^latest"
14
+ jupyterquiz = "^latest"
15
+ matplotlib = "^latest"
16
+ scikit-learn = "^latest"
17
+ pyvis = "^latest"
18
+
19
+ [build-system]
20
+ requires = ["poetry-core>=1.0.0"]
21
+ build-backend = "poetry.core.masonry.api"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments