Skip to content
Snippets Groups Projects
Commit 963f1e28 authored by Joseph Weston's avatar Joseph Weston
Browse files

Merge branch 'fixup/required-versions' into 'master'

bump the required versions of dependencies

See merge request kwant/kwant!331
parents b898058d bc9b2edf
No related branches found
No related tags found
No related merge requests found
Pipeline #24112 passed with warnings
...@@ -29,10 +29,10 @@ Prerequisites ...@@ -29,10 +29,10 @@ Prerequisites
============= =============
Building Kwant requires Building Kwant requires
* `Python <https://www.python.org/>`_ 3.5 or above (Kwant 1.1 is the last * `Python <https://www.python.org/>`_ 3.6 or above (Kwant 1.1 is the last
version to support Python 2), version to support Python 2),
* `NumPy <http://numpy.org/>`_ 1.11.0 or newer, * `NumPy <http://numpy.org/>`_ 1.13.3 or newer,
* `SciPy <https://www.scipy.org/>`_ 0.17.0 or newer, * `SciPy <https://www.scipy.org/>`_ 0.19.1 or newer,
* `LAPACK <http://netlib.org/lapack/>`_ and `BLAS <http://netlib.org/blas/>`_, * `LAPACK <http://netlib.org/lapack/>`_ and `BLAS <http://netlib.org/blas/>`_,
(For best performance we recommend the free `OpenBLAS (For best performance we recommend the free `OpenBLAS
<http://www.openblas.net/>`_ or the nonfree `MKL <http://www.openblas.net/>`_ or the nonfree `MKL
...@@ -43,19 +43,19 @@ a NumPy-like Python package optimized for very small arrays, ...@@ -43,19 +43,19 @@ a NumPy-like Python package optimized for very small arrays,
C++. C++.
The following software is highly recommended though not strictly required: The following software is highly recommended though not strictly required:
* `matplotlib <http://matplotlib.org/>`_ 1.5.1 or newer, for the module `kwant.plotter` and the tutorial, * `matplotlib <http://matplotlib.org/>`_ 2.1.1 or newer, for the module `kwant.plotter` and the tutorial,
* `SymPy <http://sympy.org/>`_ 0.7.6 or newer, for the subpackage `kwant.continuum`. * `SymPy <http://sympy.org/>`_ 1.1.1 or newer, for the subpackage `kwant.continuum`.
* `Qsymm <https://pypi.org/project/qsymm/>`_ 1.2.6 or newer, for the subpackage `kwant.qsymm`. * `Qsymm <https://pypi.org/project/qsymm/>`_ 1.2.6 or newer, for the subpackage `kwant.qsymm`.
* `MUMPS <http://graal.ens-lyon.fr/MUMPS/>`_, a sparse linear algebra library * `MUMPS <http://graal.ens-lyon.fr/MUMPS/>`_, a sparse linear algebra library
that will in many cases speed up Kwant several times and reduce the memory that will in many cases speed up Kwant several times and reduce the memory
footprint. (Kwant uses only the sequential, single core version footprint. (Kwant uses only the sequential, single core version
of MUMPS. The advantages due to MUMPS as used by Kwant are thus independent of MUMPS. The advantages due to MUMPS as used by Kwant are thus independent
of the number of CPU cores of the machine on which Kwant runs.) of the number of CPU cores of the machine on which Kwant runs.)
* The `py.test testing framework <http://pytest.org/>`_ 2.8 or newer for running the * The `py.test testing framework <http://pytest.org/>`_ 3.3.2 or newer for running the
tests included with Kwant. tests included with Kwant.
In addition, to build a copy of Kwant that has been checked-out directly from In addition, to build a copy of Kwant that has been checked-out directly from
version control, you will also need `Cython <http://cython.org/>`_ 0.22 or version control, you will also need `Cython <http://cython.org/>`_ 0.26.1 or
newer. You do not need Cython to build Kwant that has been unpacked from a newer. You do not need Cython to build Kwant that has been unpacked from a
source .tar.gz-file. source .tar.gz-file.
......
...@@ -2,6 +2,7 @@ FROM conda/miniconda3:latest ...@@ -2,6 +2,7 @@ FROM conda/miniconda3:latest
ENV LANG C.UTF-8 ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8 ENV LC_ALL C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
# all the hard non-Python dependencies # all the hard non-Python dependencies
......
...@@ -2,11 +2,12 @@ FROM debian:latest ...@@ -2,11 +2,12 @@ FROM debian:latest
ENV LANG C.UTF-8 ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8 ENV LC_ALL C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
gnupg dirmngr apt-transport-https ca-certificates curl software-properties-common gnupg dirmngr apt-transport-https ca-certificates curl software-properties-common
RUN echo "deb http://downloads.kwant-project.org/debian/ stretch-backports main" >> /etc/apt/sources.list && \ RUN echo "deb http://downloads.kwant-project.org/debian/ stable main" >> /etc/apt/sources.list && \
apt-key adv --no-tty --keyserver pool.sks-keyservers.net --recv-key C3F147F5980F3535 && \ apt-key adv --no-tty --keyserver pool.sks-keyservers.net --recv-key C3F147F5980F3535 && \
apt-get update && apt-get install -y --no-install-recommends \ apt-get update && apt-get install -y --no-install-recommends \
# all the hard non-Python dependencies # all the hard non-Python dependencies
...@@ -20,6 +21,10 @@ RUN echo "deb http://downloads.kwant-project.org/debian/ stretch-backports main" ...@@ -20,6 +21,10 @@ RUN echo "deb http://downloads.kwant-project.org/debian/ stretch-backports main"
&& apt-get clean && \ && apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
### install optional dependencies not available from the Debian repositories
RUN pip3 install \
qsymm==1.2.6
### install build and testing dependencies ### install build and testing dependencies
RUN pip3 install \ RUN pip3 install \
cython \ cython \
......
FROM ubuntu:16.04 FROM ubuntu:18.04
ENV LANG C.UTF-8 ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8 ENV LC_ALL C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
gnupg dirmngr apt-transport-https software-properties-common gnupg dirmngr apt-transport-https software-properties-common
...@@ -18,6 +19,10 @@ RUN apt-add-repository -s ppa:kwant-project/ppa && \ ...@@ -18,6 +19,10 @@ RUN apt-add-repository -s ppa:kwant-project/ppa && \
&& apt-get clean && \ && apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
### install optional dependencies not available from the Debian repositories
RUN pip3 install \
qsymm==1.2.6
### install build and testing dependencies ### install build and testing dependencies
RUN pip3 install \ RUN pip3 install \
cython \ cython \
......
...@@ -8,6 +8,7 @@ dependencies: ...@@ -8,6 +8,7 @@ dependencies:
- tinyarray - tinyarray
- sympy - sympy
- matplotlib - matplotlib
- qsymm
# Linear algebra libraraies # Linear algebra libraraies
- mumps - mumps
- blas #=1.1 openblas - blas #=1.1 openblas
......
...@@ -2,9 +2,9 @@ name: kwant-stable-no-extras ...@@ -2,9 +2,9 @@ name: kwant-stable-no-extras
channels: channels:
- conda-forge - conda-forge
dependencies: dependencies:
- python=3.5 - python=3.6
- numpy=1.11.0 - numpy=1.13.1
- scipy=0.17 # No minor version because conda-forge has no 0.17.0 - scipy=0.19.1
- tinyarray=1.2.0 - tinyarray=1.2.0
# Linear algebra libraraies # Linear algebra libraraies
- blas #=1.1 openblas - blas #=1.1 openblas
......
...@@ -2,12 +2,13 @@ name: kwant-stable ...@@ -2,12 +2,13 @@ name: kwant-stable
channels: channels:
- conda-forge - conda-forge
dependencies: dependencies:
- python=3.5 - python=3.6
- numpy=1.11.0 - numpy=1.13.3
- scipy=0.17 # No minor version because conda-forge has no 0.17.0 - scipy=0.19.1
- tinyarray=1.2.0 - tinyarray=1.2.0
- sympy=0.7.6 - sympy=1.1.1
- matplotlib=1.5.1 - matplotlib=2.1.1
- qsymm=1.2.6
# Linear algebra libraraies # Linear algebra libraraies
- mumps - mumps
- blas #=1.1 openblas - blas #=1.1 openblas
......
...@@ -517,7 +517,7 @@ def maybe_add_numpy_include(exts): ...@@ -517,7 +517,7 @@ def maybe_add_numpy_include(exts):
def main(): def main():
check_python_version((3, 5)) check_python_version((3, 6))
check_versions() check_versions()
exts = collections.OrderedDict([ exts = collections.OrderedDict([
...@@ -581,12 +581,12 @@ def main(): ...@@ -581,12 +581,12 @@ def main():
'build_ext': build_ext, 'build_ext': build_ext,
'test': test}, 'test': test},
ext_modules=exts, ext_modules=exts,
install_requires=['numpy >= 1.11.0', 'scipy >= 0.17.0', install_requires=['numpy >= 1.13.3', 'scipy >= 0.19.1',
'tinyarray >= 1.2'], 'tinyarray >= 1.2'],
extras_require={ extras_require={
# The oldest versions between: Debian stable, Ubuntu LTS # The oldest versions between: Debian stable, Ubuntu LTS
'plotting': 'matplotlib >= 1.5.1', 'plotting': 'matplotlib >= 2.1.1',
'continuum': 'sympy >= 0.7.6', 'continuum': 'sympy >= 1.1.1',
# qsymm is only packaged on PyPI # qsymm is only packaged on PyPI
'qsymm': 'qsymm >= 1.2.6', 'qsymm': 'qsymm >= 1.2.6',
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment