File tree Expand file tree Collapse file tree 5 files changed +38
-16
lines changed Expand file tree Collapse file tree 5 files changed +38
-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
+ version = " 0.1.0"
4
+ description = " Coding for Reproducible Research: Courses and Training Materials"
5
+ authors = [" CfRR Contributors" ]
6
+ repository = " https://github.com/coding-for-reproducible-research/CfRR_Courses"
7
+ homepage = " https://coding-for-reproducible-research.github.io/CfRR_Courses/home_page.html"
8
+
9
+ [tool .poetry .dependencies ]
10
+ python = " ^3.11" # or your desired Python version
11
+ numpy = " ^1.26.4"
12
+ pandas = " *"
13
+ jupyter-book = " *"
14
+ ghp-import = " *"
15
+ jupyterquiz = " *"
16
+ matplotlib = " *"
17
+ scikit-learn = " *"
18
+ pyvis = " *"
19
+
20
+ [build-system ]
21
+ requires = [" poetry-core>=1.0.0" ]
22
+ build-backend = " poetry.core.masonry.api"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments