Skip to content

Commit b5bd8df

Browse files
committed
Merge branch 'develop' of github.com:abinit/abipy into develop
pull trunk develop
2 parents a9ce792 + 0f33cc9 commit b5bd8df

121 files changed

Lines changed: 11194 additions & 4161 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/gh-pages.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy documentation with GitHub Pages dependencies preinstalled
22

33
on:
44
push:
5-
branches: ["develop"]
5+
branches: ["develop", "master"]
66
workflow_dispatch: # enable manual workflow execution
77

88
# Set permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
@@ -57,24 +57,30 @@ jobs:
5757
conda install abinit -c conda-forge --yes
5858
mpirun -n 1 abinit --version
5959
mpirun -n 1 abinit --build
60+
61+
# Update submodules with data.
62+
git submodule update --remote --init
63+
git submodule update --recursive --remote
64+
6065
pip install --editable .
6166
mkdir -p $HOME/.abinit/abipy/
6267
cp abipy/data/managers/gh_manager.yml $HOME/.abinit/abipy/manager.yml
6368
cp abipy/data/managers/gh_scheduler.yml $HOME/.abinit/abipy/scheduler.yml
64-
# FIXME TEMPORARY HACK
65-
pip install git+https://github.com/gmatteo/pymatgen.git@master -U
69+
70+
# TEMPORARY HACK THAT MIGHT BE NEEDED IF THE PYMATGEN GUYS BREAK STUFF
71+
#pip install git+https://github.com/gmatteo/pymatgen.git@master -U
6672
6773
- name: Build docs with Sphinx
6874
run: |
6975
conda activate abipy
7076
cd docs
7177
source install.sh
72-
make
78+
make -j
7379
7480
- name: Upload artifact
7581
uses: actions/upload-pages-artifact@v2
7682
with:
77-
path: site/ # Important. Set to your output dir in MkDocs
83+
path: docs/_build/html/ # Important. Set to the website output dir
7884

7985
deploy:
8086
environment:

.github/workflows/test.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ name: Run the Abipy test suite.
33
on:
44
push:
55
branches: [develop, master]
6+
paths-ignore: ["**/*.md", docs/**]
67
pull_request:
78
branches: [develop]
9+
paths-ignore: ["**/*.md", docs/**]
810
workflow_dispatch:
911
workflow_call: # make this workflow reusable by release.yml
1012

@@ -14,7 +16,7 @@ permissions:
1416
jobs:
1517
test:
1618
# prevent this action from running on forks
17-
#if: github.repository == 'abinit/abipy'
19+
if: github.repository == 'abinit/abipy'
1820
defaults:
1921
run:
2022
shell: bash -l {0} # enables conda/mamba env activation by reading bash profile
@@ -24,17 +26,17 @@ jobs:
2426
matrix:
2527
config:
2628
- os: ubuntu-latest
27-
python: '3.11'
28-
config:
29+
python: "3.11"
2930
- os: ubuntu-latest
30-
python: '3.12'
31+
python: "3.12"
3132

3233
runs-on: ${{ matrix.config.os }}
34+
3335
env:
3436
PMG_MAPI_KEY: ${{ secrets.PMG_MAPI_KEY }}
3537

3638
steps:
37-
- name: Check out Abipy repo
39+
- name: Checkout Abipy repo
3840
uses: actions/checkout@v4
3941

4042
- name: Set up Miniconda
@@ -49,11 +51,20 @@ jobs:
4951
conda install abinit -c conda-forge --yes
5052
mpirun -n 1 abinit --version
5153
mpirun -n 1 abinit --build
54+
55+
# Update submodules with data.
56+
git submodule update --remote --init
57+
git submodule update --recursive --remote
58+
59+
pip install -r requirements.txt
60+
pip install -r requirements-optional.txt
61+
pip install -r requirements-panel.txt
5262
pip install --editable .
5363
mkdir -p $HOME/.abinit/abipy/
5464
cp abipy/data/managers/gh_manager.yml $HOME/.abinit/abipy/manager.yml
5565
cp abipy/data/managers/gh_scheduler.yml $HOME/.abinit/abipy/scheduler.yml
56-
# FIXME TEMPORARY HACK
66+
67+
# TEMPORARY HACK THAT MIGHT BE NEEDED IF THE PYMATGEN GUYS BREAK STUFF
5768
#pip install git+https://github.com/gmatteo/pymatgen.git@master -U
5869
5970
- name: pytest

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ abinit_vars.pickle
33
Profile.prof
44
abipy/examples/flows/flow_*
55
abipy/examples/flows/develop/flow_*
6+
__abipy_import.log
67
_debug
8+
abipy/scripts/tests/test-output/
79
#__abinb_workdir__
810
#abinb_*.ipynb
911
$*.pickle

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "abipy/data/data_v-ZSISA-QHA.git"]
2+
path = abipy/data/data_v-ZSISA-QHA.git
3+
url = https://github.com/abinit/data_v-ZSISA-QHA.git

README.rst

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ AbiPy can be used in conjunction with matplotlib_, pandas_, scipy_, seaborn_, ip
3131
thus providing a powerful and user-friendly environment for data analysis and visualization.
3232

3333
To learn more about the integration between jupyter_ and AbiPy, visit `our collection of notebooks
34-
<https://nbviewer.jupyter.org/github/abinit/abitutorials/blob/master/abitutorials/index.ipynb>`_
35-
or click the **Launch Binder** badge to start a Docker image with Abinit, AbiPy and all the other python dependencies
36-
required to run the code inside the jupyter notebooks.
37-
The notebook will be opened in your browser after building.
34+
<https://abinit.github.io/abipy_book/intro.html>`_
3835

3936
AbiPy is free to use. However, we also welcome your help to improve this library by making your own contributions.
4037
Please report any bugs and issues at AbiPy's `Github page <https://github.com/abinit/abipy>`_.
@@ -75,9 +72,9 @@ python packages through `Anaconda <https://continuum.io/downloads>`_ (or conda).
7572
See `Installing conda`_ to install conda itself.
7673
We routinely use conda_ to test new developments with multiple Python versions and multiple virtual environments.
7774

78-
Create a new conda_ environment based on python 3.11 (let's call it ``abienv``) with::
75+
Create a new conda_ environment based on python 3.12 (let's call it ``abienv``) with::
7976

80-
conda create --name abienv python=3.11
77+
conda create --name abienv python=3.12
8178

8279
and activate it with::
8380

@@ -87,9 +84,11 @@ You should see the name of the conda environment in the shell prompt.
8784

8885
Finally, install AbiPy with::
8986

90-
conda install abipy -c conda-forge
87+
conda install abipy -c conda-forge --yes
9188

92-
Please note that, at present, conda-forge does not provide executables
89+
Please note that, it is also possible to install the abinit executables in the same enviroment using
90+
91+
conda install abinit -c conda-forge --yes
9392

9493
Additional information on the steps required to install AbiPy with anaconda are available
9594
in the `anaconda howto <http://abinit.github.io/abipy/installation#anaconda-howto>`_.
@@ -113,7 +112,7 @@ For pip, use::
113112

114113
If you are using conda_ (see `Installing conda`_ to install conda itself), create a new environment (``abienv``) with::
115114

116-
conda create -n abienv python=3.11
115+
conda create -n abienv python=3.12
117116
source activate abienv
118117

119118
Add ``conda-forge``, and ``abinit`` to your channels with::

0 commit comments

Comments
 (0)