-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into update/docker-container
- Loading branch information
Showing
52 changed files
with
18,921 additions
and
464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash -e | ||
|
||
# Debugging | ||
set -x | ||
|
||
# Environment | ||
export SHELL=/bin/bash | ||
|
||
# Install cp2k code. | ||
verdi code show cp2k@localhost || verdi code create core.code.installed --config /home/aiida/aiida-cp2k/.docker/cp2k-code.yml --non-interactive |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
oneshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/command/execlineb -S0 | ||
|
||
with-contenv | ||
|
||
foreground { s6-echo "Setting up CP2K code" } | ||
|
||
/etc/init/add-codes.sh |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
[flake8] | ||
# Recommend matching the black line length (default 88), | ||
# rather than using the flake8 default of 79: | ||
max-line-length = 88 | ||
extend-ignore = | ||
E501 # Line length handled by black. | ||
W503 # Line break before binary operator, preferred formatting for black. | ||
E203 # Whitespace before ':', preferred formatting for black. | ||
E501 | ||
W503 | ||
E203 | ||
exclude = | ||
docs/source/conf.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
[![Build Status](https://travis-ci.org/aiidateam/aiida-cp2k.svg?branch=develop)](https://travis-ci.org/aiidateam/aiida-cp2k) | ||
[![Coverage Status](https://coveralls.io/repos/github/aiidateam/aiida-cp2k/badge.svg?branch=develop)](https://coveralls.io/github/aiidateam/aiida-cp2k?branch=develop) | ||
[![PyPI version](https://badge.fury.io/py/aiida-cp2k.svg)](https://badge.fury.io/py/aiida-cp2k) | ||
[![Documentation Status](https://readthedocs.org/projects/aiida-cp2k/badge/?version=latest)](https://aiida-cp2k.readthedocs.io/en/latest/?badge=latest) | ||
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/aiida-cp2k.svg)](https://pypi.python.org/pypi/aiida-cp2k/) | ||
[![Test CI](https://github.com/aiidateam/aiida-cp2k/actions/workflows/ci.yml/badge.svg)](https://github.com/aiidateam/aiida-cp2k/actions) | ||
[![Coverage Status](https://coveralls.io/repos/github/aiidateam/aiida-cp2k/badge.svg?branch=main)](https://coveralls.io/github/aiidateam/aiida-cp2k?branch=main) | ||
[![Documentation](https://readthedocs.org/projects/aiida-cp2k/badge/?version=latest)](https://aiida-cp2k.readthedocs.io/en/latest/?badge=latest) | ||
|
||
# AiiDA CP2K | ||
|
||
[AiiDA](http://www.aiida.net/) plugin for [CP2K](https://www.cp2k.org/). | ||
|
||
## Installation | ||
|
@@ -21,21 +23,66 @@ pip install -e . # Also installs aiida, if missing (but not postgres/rabbitmq). | |
``` | ||
|
||
## Links | ||
|
||
* [Documentation](https://aiida-cp2k.readthedocs.io/en/latest/) for the calculation examples and features of the plugin. | ||
* [Make an issue](https://github.com/aiidateam/aiida-cp2k/issues/new) for bug reports, questions and suggestions. | ||
* [AiiDA](http://www.aiida.net/) to learn about AiiDA. | ||
* [Cp2k](https://www.cp2k.org/) to learn about CP2K. | ||
* [CP2K](https://www.cp2k.org/) to learn about CP2K. | ||
|
||
## For maintainers | ||
|
||
### Release | ||
|
||
To create a new release, clone the repository, install development dependencies with `pip install '.[dev]'`, and then execute `bumpver update --major/--minor/--patch`. | ||
This will: | ||
|
||
1. Create a tagged release with bumped version and push it to the repository. | ||
2. Trigger a GitHub actions workflow that creates a GitHub release. | ||
|
||
Additional notes: | ||
|
||
- Use the `--dry` option to preview the release change. | ||
- The release tag (e.g. a/b/rc) is determined from the last release. | ||
Use the `--tag` option to override the release tag. | ||
|
||
### Testing | ||
|
||
To run the tests, you need to have Docker installed in your system. | ||
Once this is done, you can build the Docker image with the following command: | ||
|
||
```bash | ||
docker build -t aiida_cp2k_test . | ||
``` | ||
Then, you can launch the container: | ||
|
||
```bash | ||
DOKERID=`docker run -it aiida_cp2k_test` | ||
``` | ||
This will remeber the container ID in the variable `DOKERID`. | ||
You can then run the tests with the following command: | ||
|
||
```bash | ||
docker exec --tty --user aiida $DOCKERID /bin/bash -l -c 'cd /home/aiida/aiida-cp2k/ && pytest' | ||
``` | ||
|
||
To enter the container for manual testing do: | ||
|
||
```bash | ||
docker exec -it --user aiida $DOCKERID bash | ||
``` | ||
|
||
|
||
## License | ||
MIT | ||
|
||
MIT | ||
|
||
## Contact | ||
|
||
[email protected] | ||
|
||
|
||
## Acknowledgements | ||
|
||
This work is supported by: | ||
* the [MARVEL National Centre for Competency in Research](http://nccr-marvel.ch) funded by the [Swiss National Science Foundation](http://www.snf.ch/en); | ||
* the [MaX European Centre of Excellence](http://www.max-centre.eu/) funded by the Horizon 2020 EINFRA-5 program, Grant No. 676598; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.