Skip to content

Commit 793097a

Browse files
authored
Add pip check (#83)
* Add pip check * fix optional dependencies * update description * fix license * fix license file link * fix installation * add hatchling as dependency * Add httpcore
1 parent 0e7ffdb commit 793097a

File tree

3 files changed

+39
-7
lines changed

3 files changed

+39
-7
lines changed

.github/workflows/pipeline.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,23 @@ jobs:
1919
options: "--check --diff"
2020
src: ./example_workflows/quantum_espresso/qe_xml_parser/src/qe_xml_parser
2121

22+
pip_check:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Setup Mambaforge
27+
uses: conda-incubator/setup-miniconda@v3
28+
with:
29+
auto-update-conda: true
30+
python-version: "3.12"
31+
environment-file: binder/environment.yml
32+
auto-activate-base: false
33+
- name: Pip check
34+
shell: bash -l {0}
35+
run: |
36+
pip install --no-deps --no-build-isolation -e python_workflow_definition
37+
pip check
38+
2239
nfdi4ing:
2340
runs-on: ubuntu-22.04
2441
steps:
@@ -32,7 +49,7 @@ jobs:
3249
- name: Installation and setup
3350
shell: bash -l {0}
3451
run: |
35-
pip install -e python_workflow_definition
52+
pip install --no-deps --no-build-isolation -e python_workflow_definition
3653
conda install -c conda-forge jupyter papermill
3754
verdi presto --profile-name pwd
3855
sudo apt-get install -y $(cat binder/apt.txt)
@@ -67,8 +84,8 @@ jobs:
6784
- name: Installation and setup
6885
shell: bash -l {0}
6986
run: |
70-
pip install -e example_workflows/quantum_espresso/qe_xml_parser
71-
pip install -e python_workflow_definition
87+
pip install --no-deps --no-build-isolation -e example_workflows/quantum_espresso/qe_xml_parser
88+
pip install --no-deps --no-build-isolation -e python_workflow_definition
7289
conda install -c conda-forge jupyter papermill
7390
verdi presto --profile-name pwd
7491
- name: Tests
@@ -95,7 +112,7 @@ jobs:
95112
- name: Installation and setup
96113
shell: bash -l {0}
97114
run: |
98-
pip install -e python_workflow_definition
115+
pip install --no-deps --no-build-isolation -e python_workflow_definition
99116
conda install -c conda-forge jupyter papermill
100117
verdi presto --profile-name pwd
101118
- name: Tests

binder/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ channels:
22
- conda-forge
33
dependencies:
44
- python =3.12
5+
- hatchling =1.27.0
6+
- httpcore =1.0.7
57
- jobflow =0.1.19
68
- pyiron_base =0.11.11
79
- pygraphviz =1.14

python_workflow_definition/pyproject.toml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,26 @@ build-backend = "hatchling.build"
55
[project]
66
name = "python_workflow_definition"
77
version = "0.0.1"
8-
description = "Python Workflow Definition for the Ab initio Description of Iron and Steel (ADIS2023): Digitalization and Workflows workshop"
8+
description = "Python Workflow Definition - workflow interoperability for aiida, jobflow and pyiron"
99
authors = [
1010
{ name = "Jan Janssen", email = "janssen@mpie.de" },
1111
{ name = "Janine George", email = "janine.geogre@bam.de" },
1212
{ name = "Julian Geiger", email = "julian.geiger@psi.ch" },
13+
{ name = "Xing Wang", email = "xing.wang@psi.ch" },
1314
{ name = "Marnik Bercx", email = "marnik.bercx@psi.ch" },
1415
{ name = "Christina Ertural", email = "christina.ertural@bam.de" },
1516
]
16-
license = { text = "MIT" }
17-
dependencies = ["jobflow", "pyiron_base", "aiida-workgraph"]
17+
license = { file = "../LICENSE" }
18+
dependencies = [
19+
"aiida-workgraph>=0.5.1,<=0.5.2",
20+
"numpy>=1.21,<2",
21+
"jobflow>=0.1.18,<=0.1.19",
22+
"pyiron_base>=0.11.10,<=0.11.11",
23+
]
24+
25+
[project.optional-dependencies]
26+
plot = [
27+
"pygraphviz>=1.10,<=1.14",
28+
"networkx>=2.8.8,<=3.4.2",
29+
"ipython>=7.33.0,<=9.0.2",
30+
]

0 commit comments

Comments
 (0)