Skip to content

Commit

Permalink
Merge pull request #2 from JuDFTteam/develop
Browse files Browse the repository at this point in the history
Release 0.3.0
  • Loading branch information
janssenhenning authored Jan 19, 2022
2 parents 7ed2e6e + e2bfa8c commit 0fae7df
Show file tree
Hide file tree
Showing 12 changed files with 198 additions and 705 deletions.
1 change: 1 addition & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements-ci.txt --quiet
pip install -e .
- name: mypy
run: |
mypy --namespace-packages --explicit-package-bases pymatgen
Expand Down
30 changes: 18 additions & 12 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements-ci.txt --quiet
pip install -e .
- name: mypy
run: |
mypy --namespace-packages --explicit-package-bases pymatgen
Expand All @@ -54,7 +55,7 @@ jobs:
max-parallel: 20
matrix:
os: [ubuntu-latest]
python-version: [3.7,3.8,3.9]
python-version: ["3.7","3.8","3.9","3.10"]

runs-on: ${{ matrix.os }}

Expand All @@ -64,15 +65,20 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Build pymatgen with compatible numpy
run: |
python -m pip install --upgrade pip
pip install --quiet -r requirements.txt -r requirements-ci.txt
pip install -e .
pip install numpy==1.21.4 wheel
pip install pymatgen==2022.0.16 --no-cache-dir --no-build-isolation
- name: Install dependencies
run: |
pip install --quiet -r requirements-ci.txt
pip install masci-tools
pip install --no-deps -e .
- name: pytest
run: |
pytest --cov=pymatgen.io.fleur --durations=30 pymatgen
publish:
name: Publish to PyPi
needs: [tests, linting] #pylint-warnings could be added at some later point
Expand All @@ -84,12 +90,12 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Build package
- name: Install flit
run: |
pip install flit~=3.5
- name: Build and Publish to PyPi
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Publish to PyPi
uses: pypa/[email protected]
flit publish
with:
user: __token__
password: ${{ secrets.PYPI_KEY }}
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ secrets.PYPI_KEY }}
13 changes: 9 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
max-parallel: 20
matrix:
os: [ubuntu-latest]
python-version: [3.7,3.8,3.9]
python-version: ["3.7","3.8","3.9","3.10"]

runs-on: ${{ matrix.os }}

Expand All @@ -19,11 +19,16 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Build pymatgen with compatible numpy
run: |
python -m pip install --upgrade pip
pip install --quiet -r requirements.txt -r requirements-ci.txt
pip install -e .
pip install numpy==1.21.4 wheel
pip install pymatgen==2022.0.16 --no-cache-dir --no-build-isolation
- name: Install dependencies
run: |
pip install --quiet -r requirements-ci.txt
pip install masci-tools
pip install --no-deps -e .
- name: pytest
run: |
pytest --cov=pymatgen.io.fleur --durations=30 pymatgen
5 changes: 0 additions & 5 deletions MANIFEST.in

This file was deleted.

2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pymatgen-io-fleur
=========================

This is a `pymatgen <https://pymatgen.org/>`_ IO addon for the LAPW code `fleur <www.flapw.de/>`_. This addon includes:
This is a `pymatgen <https://pymatgen.org/>`_ IO addon for the LAPW code `fleur <https://www.flapw.de/>`_. This addon includes:

* Reading/writing input files for the the fleur input generator (inpgen)
* Reading of xml files used by the main fleur code
Expand Down
Loading

0 comments on commit 0fae7df

Please sign in to comment.