Skip to content

Commit

Permalink
Merge remote-tracking branch 'app4triqs_remote/3.1.x' into unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Feb 28, 2022
2 parents 2e79737 + b74b87f commit 4f7faeb
Show file tree
Hide file tree
Showing 11 changed files with 183 additions and 15 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
include:
- {os: ubuntu-20.04, cc: gcc-10, cxx: g++-10}
- {os: ubuntu-20.04, cc: clang-12, cxx: clang++-12}
- {os: ubuntu-20.04, cc: clang-13, cxx: clang++-13}
- {os: macos-11, cc: gcc-11, cxx: g++-11}
- {os: macos-11, cc: /usr/local/opt/llvm/bin/clang, cxx: /usr/local/opt/llvm/bin/clang++}

Expand All @@ -28,18 +28,18 @@ jobs:
run: >
sudo apt-get update &&
sudo apt-get install lsb-release wget software-properties-common &&
wget -O /tmp/llvm.sh https://apt.llvm.org/llvm.sh && sudo chmod +x /tmp/llvm.sh && sudo /tmp/llvm.sh 12 &&
wget -O /tmp/llvm.sh https://apt.llvm.org/llvm.sh && sudo chmod +x /tmp/llvm.sh && sudo /tmp/llvm.sh 13 &&
sudo apt-get install
clang-12
clang-13
g++-10
gfortran
hdf5-tools
libblas-dev
libboost-dev
libclang-12-dev
libc++-12-dev
libc++abi-12-dev
libomp-12-dev
libclang-13-dev
libc++-13-dev
libc++abi-13-dev
libomp-13-dev
libfftw3-dev
libgfortran5
libgmp-dev
Expand All @@ -49,7 +49,7 @@ jobs:
openmpi-bin
openmpi-common
openmpi-doc
python3-clang-12
python3-clang-13
python3-dev
python3-mako
python3-matplotlib
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ RUN chown build .
USER build
ARG BUILD_ID
ARG CMAKE_ARGS
RUN cmake $SRC/$APPNAME -DTRIQS_ROOT=${INSTALL} -DBuild_Deps=Always $CMAKE_ARGS && make -j4 || make -j1 VERBOSE=1
RUN cmake $SRC/$APPNAME -DTRIQS_ROOT=${INSTALL} $CMAKE_ARGS && make -j4 || make -j1 VERBOSE=1
USER root
RUN make install
2 changes: 1 addition & 1 deletion doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ endif()
add_custom_target(${PROJECT_NAME}_docs_sphinx ALL)
add_custom_command(
TARGET ${PROJECT_NAME}_docs_sphinx
COMMAND PYTHONPATH=${PROJECT_BINARY_DIR}/python:$ENV{PYTHONPATH} ${SPHINXBUILD_EXECUTABLE} -c . -j8 -b html ${CMAKE_CURRENT_SOURCE_DIR} html
COMMAND PYTHONPATH=${PROJECT_BINARY_DIR}/python:$ENV{PYTHONPATH} ${SPHINXBUILD_EXECUTABLE} -j auto -c . -b html ${CMAKE_CURRENT_SOURCE_DIR} html
)

# ---------------------------------
Expand Down
6 changes: 6 additions & 0 deletions doc/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# Changelog

## Version 3.1.0

hubbardI version 3.1.0 is a compatibility
release for TRIQS version 3.1.0


## Version 3.0.0

hubbardI version 3.0.0 is a compatibility
Expand Down
29 changes: 29 additions & 0 deletions doc/_templates/autosummary_class_template.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{{ fullname | escape | underline }}

.. currentmodule:: {{ module }}

.. autoclass:: {{ objname }}

{% block methods %}
{% if methods %}
.. rubric:: {{ _('Methods') }}

.. autosummary::
:toctree:
{% for item in methods %}
~{{ name }}.{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block attributes %}
{% if attributes %}
.. rubric:: {{ _('Attributes') }}

.. autosummary::
:toctree:
{% for item in attributes %}
~{{ name }}.{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
68 changes: 68 additions & 0 deletions doc/_templates/autosummary_module_template.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{{ fullname | escape | underline}}

.. automodule:: {{ fullname }}

{% block functions %}
{% if functions %}
.. rubric:: Functions

.. autosummary::
:toctree:
{% for item in functions %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block attributes %}
{% if attributes %}
.. rubric:: Module Attributes

.. autosummary::
:toctree:
{% for item in attributes %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block classes %}
{% if classes %}
.. rubric:: {{ _('Classes') }}

.. autosummary::
:toctree:
:template: autosummary_class_template.rst
{% for item in classes %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block exceptions %}
{% if exceptions %}
.. rubric:: {{ _('Exceptions') }}

.. autosummary::
:toctree:
{% for item in exceptions %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block modules %}
{% if modules %}
.. rubric:: Modules

.. autosummary::
:toctree:
:template: autosummary_module_template.rst
:recursive:

{% for item in modules %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

9 changes: 8 additions & 1 deletion doc/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import sys
sys.path.insert(0, "@CMAKE_CURRENT_SOURCE_DIR@/sphinxext")
sys.path.insert(0, "@CMAKE_CURRENT_SOURCE_DIR@/sphinxext/numpydoc")

# exclude these folders from scanning by sphinx
exclude_patterns = ['_templates']

extensions = ['sphinx.ext.autodoc',
'sphinx.ext.mathjax',
'sphinx.ext.intersphinx',
Expand Down Expand Up @@ -39,6 +42,10 @@ pygments_style = 'sphinx'

source_suffix = '.rst'

# Turn on sphinx.ext.autosummary
autosummary_generate = True
autosummary_imported_members=False

project = '@PROJECT_NAME@ - A TRIQS based hubbardI solver'
version = '@PROJECT_VERSION@'

Expand Down Expand Up @@ -66,7 +73,7 @@ html_theme_options = {
# Toc options
'collapse_navigation': False,
'sticky_navigation': True,
'navigation_depth': 4,
'navigation_depth': 5,
'includehidden': True,
'titles_only': False
}
Expand Down
60 changes: 60 additions & 0 deletions packaging/TRIQS-hubbardI-3.1.0-foss-2021b.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
easyblock = 'CMakeMake'

name = 'TRIQS-hubbardI'
version = '3.1.0'

homepage = 'https://triqs.github.io/hubbardI/'
description = """
PROVIDE HERE A DESCRIPTION OF YOUR APPLICATION
"""

docurls = ['https://triqs.github.io/hubbardI/%(version_major_minor)s.x/']
software_license = 'LicenseGPLv3'

toolchain = {'name': 'foss', 'version': '2021b'}
toolchainopts = {'pic': True, 'usempi': True}

source_urls = ['https://github.com/TRIQS/hubbardI/releases/download/%(version)s/']
sources = ['hubbardI-%(version)s.tar.gz']
checksums = ['PUT HERE THE SHA256 OF THE RELEASE TARBALL']

dependencies = [
('Python', '3.9.6'),
('SciPy-bundle', '2021.10'),
('Boost', '1.77.0'),
('Clang', '13.0.1'),
('Clang-Python-bindings', '13.0.1'),
('GMP', '6.2.1'),
('HDF5', '1.10.7'),
('Mako', '1.1.4'),
('TRIQS', '3.1.0'),
('NFFT', '3.5.2')
]

builddependencies = [
('CMake', '3.22.1')
]

separate_build_dir = True

runtest = 'test'

sanity_check_paths = {
'files': ['lib/libhubbardI_c.a'],
'dirs': ['include/hubbardI', 'lib', 'share',
'lib/python%(pyshortver)s/site-packages/hubbardI'],
}

sanity_check_commands = ["python -c 'import hubbardI'"]

modextrapaths = {
'CPLUS_INCLUDE_PATH': 'include',
'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages',
'CMAKE_PREFIX_PATH': 'lib/cmake/hubbardI',
}
modextravars = {
'HUBBARDI_ROOT': '%(installdir)s',
'HUBBARDI_VERSION': '%(version)s',
}

moduleclass = 'phys'
2 changes: 1 addition & 1 deletion packaging/conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "3.0.0" %}
{% set version = "3.1.0" %}

package:
name: hubbardI
Expand Down
2 changes: 1 addition & 1 deletion share/cmake/Modules/FindSphinx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ else()
endif ()

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SPHINX DEFAULT_MSG SPHINXBUILD_EXECUTABLE)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sphinx DEFAULT_MSG SPHINXBUILD_EXECUTABLE)

mark_as_advanced( SPHINXBUILD_EXECUTABLE )
2 changes: 0 additions & 2 deletions share/triqs_hubbardIvars.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

export @PROJECT_NAME@_ROOT=@CMAKE_INSTALL_PREFIX@

export CPLUS_INCLUDE_PATH=@CMAKE_INSTALL_PREFIX@/include:$CPLUS_INCLUDE_PATH
export PATH=@CMAKE_INSTALL_PREFIX@/bin:$PATH
export LIBRARY_PATH=@CMAKE_INSTALL_PREFIX@/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=@CMAKE_INSTALL_PREFIX@/lib:$LD_LIBRARY_PATH
export CMAKE_PREFIX_PATH=@CMAKE_INSTALL_PREFIX@:$CMAKE_PREFIX_PATH
@EXPORT_PYTHON_PATH@

0 comments on commit 4f7faeb

Please sign in to comment.