Skip to content

Commit

Permalink
Merge pull request #6 from QEF/develop
Browse files Browse the repository at this point in the history
Release v1.0.0
  • Loading branch information
brunato committed Aug 10, 2023
2 parents 0213783 + ff17784 commit e352538
Show file tree
Hide file tree
Showing 365 changed files with 76,886 additions and 97,135 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/test-postqe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: postqe

on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install pip, setuptools and wheel
run: |
python -m pip install --upgrade pip
pip install setuptools
pip install wheel
- name: Lint with flake8
run: |
pip install flake8
flake8 src/postqe --max-line-length=120 --statistics
- name: Download Quantum ESPRESSO 7.2
run: |
curl -LJO https://github.com/QEF/q-e/archive/refs/tags/qe-7.2.zip
sha256sum q-e-qe-7.2.zip | grep 1938b5c998e1485564b54b6eb27db31b2686ca8d8cb71a50afc50fe6adef07fc
- name: Unzip Quantum ESPRESSO 7.2
run: |
unzip -q q-e-qe-7.2.zip
rm q-e-qe-7.2.zip
- name: Install lapack and fftw3 libs
run: |
sudo apt-get update -y
sudo apt install liblapack-dev libfftw3-dev
- name: Install postqe
run: |
export QE_TOPDIR=`realpath q-e-qe-7.2`
pip install .
- name: Test with unittest
run: |
python -m unittest
11 changes: 8 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@
*~
*.swp
*.egg-info
.coverage*
!.coveragerc
dist/
build/
src/postqe/pyqe.py
pqenv/
.idea/
doc/_*
postqe/__pycache__/
tests/__pycache__/
.tox/
doc/_*/
__pycache__/
localfiles/
18 changes: 13 additions & 5 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
include MANIFEST.in
include LICENSE
include MANIFEST.in
include README.rst
include postqe *.py
include postqe/ase *.py
include postqe *.so
include postqe/fortran *.f90
include setup.py
include pyproject.toml
include requirements.txt
include requirements-dev.txt
include tox.ini
include doc/*
include src/postqe/*.py
include src/postqe/fortran/*
include src/postqe/fortran/wrapfiles/*.f90
recursive-include tests *
recursive-include examples *

exclude src/postqe/pyqe.py
global-exclude *.py[cod]
52 changes: 46 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ potentials) on 1D or 2D sections, fitting the total energy with Murnaghan Equati

It is meant to be imported in your own Python code or used from the command line (see the
Tutorial part of this documentation). It is also meant for people who want to tinker with
the code and adapt it to their own needs. The package is based on numpy, scipy and matplotlib libraries.
the code and adapt it to their own needs. The package is based on numpy, scipy and
matplotlib libraries.


Current features of the package include:
Expand All @@ -27,14 +28,44 @@ Current features of the package include:
.. [#F2PY] https://docs.scipy.org/doc/numpy-dev/f2py/
Package requirements
--------------------
There are some non-Python packages required to be installed in your system before installing *postqe*:

Fortran compiler:
Maybe *gfortran* on a Gnu Linux platform for free or another commercial package, like PGI or Intel Fortran.

Lapack development libraries:
the basename of this package should be *lapack-devel* on a RHEL-based system or *liblapack-dev*
on a Debian-based system.

FFTW3 development libraries:
the basename of this package should be *fftw-devel* on a RHEL-based system or *libfftw3-dev*
on a Debian-based system.


Installation
------------

You can download all package files from GitHub and then install it with the command:
Download all package's files from GitHub (unpack the downloaded archive
or clone the repository).

You also have to download Quantum ESPRESSO v7.2 sources by your own and then unpack
the archive in another directory. Then provide the variable `QE_TOPDIR` to the install
command, setting it with the path of the directory containing the Quantum ESPRESSO sources.

If you are in a virtual environment you can install it with the command:

.. code-block:: bash
sudo python setup.py install
QE_TOPDIR=<path-to-QE-sources-base-dir> pip install .
Otherwise avoid system wide installations with root privileges but install it in user-space
with the command:

.. code-block:: bash
QE_TOPDIR=<path-to-QE-sources-base-dir> pip install . --user
Usage
Expand All @@ -54,7 +85,16 @@ Note, however, that most of these functions are less well documented and are mea
users or if you want to tinker with the code.


Status
------
Authors
-------
Mauro Palumbo
Davide Brunato
Pietro Delugas


License
-------
This software is distributed under the terms of the LGPL-2.1 license. See
the file 'LICENSE' in the root directory of the present distribution, or
https://opensource.org/licenses/LGPL-2.1 .

Development(Alpha)
Binary file removed doc/_build/doctrees/environment.pickle
Binary file not shown.
Binary file removed doc/_build/doctrees/index.doctree
Binary file not shown.
Binary file removed doc/_build/doctrees/introduction.doctree
Binary file not shown.
Binary file removed doc/_build/doctrees/postqe.doctree
Binary file not shown.
Binary file removed doc/_build/doctrees/tutorial.doctree
Binary file not shown.
4 changes: 0 additions & 4 deletions doc/_build/html/.buildinfo

This file was deleted.

25 changes: 0 additions & 25 deletions doc/_build/html/_sources/index.txt

This file was deleted.

62 changes: 0 additions & 62 deletions doc/_build/html/_sources/introduction.txt

This file was deleted.

20 changes: 0 additions & 20 deletions doc/_build/html/_sources/postqe.txt

This file was deleted.

Loading

0 comments on commit e352538

Please sign in to comment.