Skip to content

Commit 03a6ef3

Browse files
committed
2 parents dc3c4f7 + 68f63db commit 03a6ef3

File tree

832 files changed

+429033
-2574
lines changed

Some content is hidden

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

832 files changed

+429033
-2574
lines changed

.circleci/config.yml

Lines changed: 14 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,30 @@
1-
version: 2
1+
version: 2.1
22
jobs:
3-
py3test:
3+
test:
44
working_directory: ~/atomate
55
docker:
6-
- image: materialsvirtuallab/circle-ci-pmg-py3:3.7.3
7-
- image: circleci/mongo:3.4.15
6+
- image: continuumio/miniconda3
7+
- image: circleci/mongo
88
steps:
99
- checkout
1010
- restore_cache:
11-
key: deps1-{{ .Branch }}-{{ checksum "requirements.txt" }}
11+
key: deps-{{ checksum "requirements-ci.txt" }}-{{ checksum "setup.py" }}
1212
- run:
13+
name: Install dependencies
1314
command: |
1415
export PATH=$HOME/miniconda3/bin:$PATH
15-
conda create --quiet --yes --name test_env python=3.7
16+
conda create --name test_env python=3.8
1617
source activate test_env
17-
conda install --quiet --yes numpy scipy matplotlib sympy pandas
18-
conda install --quiet --yes -c conda-forge openbabel
19-
# conda install --quiet --yes -c clinicalgraphics vtk
20-
conda install --quiet --yes -c conda-forge python-igraph
21-
conda update --quiet --all
22-
wget https://vampire.york.ac.uk/resources/release-5/vampire-5.0-linux.tar.gz
23-
tar -zxvf vampire-5.0-linux.tar.gz
24-
export PATH=/root/atomate/linux/:$PATH
25-
pip install --quiet -r requirements.txt -r requirements-ci.txt
26-
# Add executables and path.
27-
for EXEPATH in `pwd`/cmd_line/*/Linux_64bit; do export PATH=$PATH:$EXEPATH; done
28-
pip install --quiet -e .
29-
pytest --ignore=atomate/qchem/test_files --cov=atomate --cov-report html:coverage_reports atomate
30-
no_output_timeout: 3600
31-
- store_artifacts:
32-
path: coverage_reports/
33-
destination: tr1
34-
- store_test_results:
35-
path: coverage_reports/
36-
py3devtest:
37-
working_directory: ~/atomate
38-
docker:
39-
- image: materialsvirtuallab/circle-ci-pmg-py3:3.7.3
40-
- image: circleci/mongo:3.4.15
41-
steps:
42-
- checkout
43-
- restore_cache:
44-
key: deps1-{{ .Branch }}-{{ checksum "requirements.txt" }}
18+
conda install -c conda-forge openbabel pymatgen
19+
pip install -r requirements-ci.txt
20+
pip install .
21+
no_output_timeout: 1h
4522
- run:
23+
name: pytest
4624
command: |
47-
export PATH=$HOME/miniconda3/bin:$PATH
48-
conda create --quiet --yes --name test_env python=3.7
4925
source activate test_env
50-
conda install --quiet --yes numpy scipy matplotlib sympy pandas
51-
conda install --quiet --yes -c conda-forge openbabel
52-
# conda install --quiet --yes -c clinicalgraphics vtk
53-
conda install --quiet --yes -c conda-forge python-igraph
54-
conda update --quiet --all
55-
wget https://vampire.york.ac.uk/resources/release-5/vampire-5.0-linux.tar.gz
56-
tar -zxvf vampire-5.0-linux.tar.gz
57-
export PATH=/root/atomate/linux/:$PATH
58-
pip install --quiet -r requirements.txt -r requirements-ci.txt
59-
pip install git+https://github.com/materialsproject/pymatgen.git --upgrade
60-
pip install git+https://github.com/materialsproject/custodian.git --upgrade
61-
pip install git+https://github.com/materialsproject/fireworks.git --upgrade
62-
# Add executables and path.
63-
for EXEPATH in `pwd`/cmd_line/*/Linux_64bit; do export PATH=$PATH:$EXEPATH; done
64-
pip install --quiet -e .
6526
pytest --ignore=atomate/qchem/test_files --cov=atomate --cov-report html:coverage_reports atomate
66-
no_output_timeout: 3600
27+
no_output_timeout: 1h
6728
- store_artifacts:
6829
path: coverage_reports/
6930
destination: tr1
@@ -74,11 +35,4 @@ workflows:
7435
version: 2
7536
build_and_test:
7637
jobs:
77-
- py3test
78-
- py3devtest:
79-
filters: # don't run dev tests on main branch
80-
branches:
81-
ignore:
82-
main
83-
84-
38+
- test

.circleci/images/py3/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ FROM python:3.6.4
33
RUN apt-get update && apt-get install -y gfortran python-openbabel python-vtk python3-tk
44
RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
55
RUN bash Miniconda3-latest-Linux-x86_64.sh -b
6-
RUN export PATH=$HOME/miniconda3/bin:$PATH
6+
RUN export PATH=$HOME/miniconda3/bin:$PATH

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Summary
22

3-
<Short few sentences, and summary of the major changes in bullet
3+
<Short few sentences, and summary of the major changes in bullet
44
points>
55

66
* Feature 1
@@ -10,7 +10,7 @@ points>
1010

1111
## TODO (if any)
1212

13-
<If this is a work-in-progress, write something about what else needs
13+
<If this is a work-in-progress, write something about what else needs
1414
to be done>
1515

16-
* Feature 1 supports a, but not b.
16+
* Feature 1 supports a, but not b.

.github/workflows/test.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
if: github.repository_owner == 'hackingmaterials' # don't run on forks
12+
runs-on: ubuntu-latest
13+
services:
14+
mongodb:
15+
image: mongo
16+
ports:
17+
- 27017:27017
18+
19+
steps:
20+
- name: Checkout repo
21+
uses: actions/checkout@v2
22+
23+
- name: Setup Python
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: 3.8
27+
28+
- name: Install OpenBabel
29+
run: |
30+
# underlying C++ lib needed for Python openbabel wrapper installed by `pip install .`
31+
sudo apt-get install libopenbabel-dev
32+
# https://github.com/openbabel/openbabel/issues/2408#issuecomment-1014466193
33+
sudo ln -s /usr/include/openbabel3 /usr/local/include/openbabel3
34+
35+
- name: Cache pip
36+
uses: actions/cache@v2
37+
with:
38+
path: ~/.cache/pip
39+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-ci.txt', 'setup.py') }}
40+
restore-keys: |
41+
${{ runner.os }}-pip-
42+
43+
- name: Install dependencies
44+
run: |
45+
pip install -r requirements-ci.txt
46+
pip install .[complete]
47+
48+
- name: pytest
49+
run: |
50+
pytest --ignore=atomate/qchem/test_files --cov=atomate --cov-report html:coverage_reports atomate

.pre-commit-config.yaml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,37 @@
1+
exclude: ^(docs/|.*test_files/|.*tests/)
2+
13
repos:
24
- repo: https://github.com/myint/autoflake
35
rev: v1.4
46
hooks:
5-
- id: autoflake
6-
args: [--in-place, --remove-all-unused-imports, --remove-unused-variable, --ignore-init-module-imports]
7+
- id: autoflake
8+
args: [--in-place, --remove-all-unused-imports, --remove-unused-variable, --ignore-init-module-imports]
9+
710
- repo: https://github.com/psf/black
8-
rev: 21.4b2
11+
rev: 22.1.0
912
hooks:
10-
- id: black
11-
- repo: https://gitlab.com/pycqa/flake8
12-
rev: 3.8.4
13+
- id: black
14+
15+
- repo: https://github.com/pycqa/flake8
16+
rev: 4.0.1
1317
hooks:
1418
- id: flake8
1519
args: [--max-line-length=125]
20+
1621
- repo: https://github.com/pre-commit/pre-commit-hooks
17-
rev: v3.4.0
22+
rev: v4.1.0
1823
hooks:
1924
- id: check-yaml
2025
- id: end-of-file-fixer
2126
- id: trailing-whitespace
27+
28+
- repo: https://github.com/asottile/pyupgrade
29+
rev: v2.31.0
30+
hooks:
31+
- id: pyupgrade
32+
args: [--py38-plus]
33+
34+
- repo: https://github.com/PyCQA/isort
35+
rev: 5.10.1
36+
hooks:
37+
- id: isort

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
(see changelog in the docs)
1+
(see changelog in the docs)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ for such Enhancements, then you hereby grant the following license:
4343
a non-exclusive, royalty-free perpetual license to install, use,
4444
modify, prepare derivative works, incorporate into other computer
4545
software, distribute, and sublicense such enhancements or derivative
46-
works thereof, in binary and source code form.
46+
works thereof, in binary and source code form.

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# <img alt="atomate" src="docs_rst/_static/atomate_logo_small.png" width="250">
1+
# <img alt="atomate" src="https://raw.githubusercontent.com/hackingmaterials/atomate/main/docs_rst/_static/atomate_logo_small.png" width="250">
2+
3+
[![Tests](https://github.com/hackingmaterials/atomate/actions/workflows/test.yml/badge.svg)](https://github.com/hackingmaterials/atomate/actions/workflows/test.yml)
4+
[![PyPI Downloads](https://img.shields.io/pypi/dm/atomate?label=PyPI%20Downloads)](https://pypi.org/project/atomate)
5+
[![PyPI](https://img.shields.io/pypi/v/atomate?label=PyPI%20Release)](https://pypi.org/project/atomate)
6+
[![Requires Python 3.8+](https://img.shields.io/badge/Python-3.8+-blue.svg?label=Requires%20Python)](https://python.org/downloads)
27

38
atomate is a software for computational materials science that contains pre-built workflows to compute and analyze the properties of materials.
49

@@ -8,7 +13,7 @@ atomate is a software for computational materials science that contains pre-buil
813

914
If you find atomate useful, please encourage its development by citing the following paper in your research output:
1015

11-
```
16+
```txt
1217
Mathew, K., Montoya, J. H., Faghaninia, A., Dwarakanath, S., Aykol,
1318
M., Tang, H., Chu, I., Smidt, T., Bocklund, B., Horton, M., Dagdelen,
1419
J., Wood, B., Liu, Z.-K., Neaton, J., Ong, S. P., Persson, K., Jain,

atomate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.1"
1+
__version__ = "1.0.3"

atomate/common/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__author__ = 'Anubhav Jain <[email protected]>'
1+
__author__ = "Anubhav Jain <[email protected]>"

0 commit comments

Comments
 (0)