Skip to content

Commit

Permalink
Merge pull request #41 from bashtage/rls-1160
Browse files Browse the repository at this point in the history
RLS: Release 1.16.0
  • Loading branch information
bashtage authored Feb 5, 2019
2 parents 6570172 + a66be95 commit 9803ae0
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 23 deletions.
30 changes: 9 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Travis script that uses miniconda in place of the system installed python
# versions. Allows substantial flexability for choosing versions of
# required packages and is simpler to use to test up-to-date scientific Python
# stack
group: edge
dist: trusty
sudo: required
Expand All @@ -11,6 +7,7 @@ env:
global:
# Doctr deploy key for bashtage/randomgen
- secure: "czwFlflS1lcfbSQ9ktv+pLAPV9/6+wmwiMTyIYyv5xgQVWRL5NRebWH+ZhQ6s2T5x17wFMtlafcAvkdV0CHQZLru34V2UNldCapuEtQ8b32EDHBXHKbs45b7SSkLx4TFXdjiJurleY4ZIKle0gX6BW21zYBwaHJqbN6I8nRv9Rp47XEU1UV1Mdf/PhfTnxY31rFrPYL77xeWJzoFfT8zao39V4gQds+1Ag7FjdNVdSDVKwDduF4kS7tIbKqb4M+jsbc3PIKyP9nyQpEQF5ebJuG7mqXJhVJGEL83rBx8MLFPA/1X3cUzKacgKyp2+Wmlt0EVhwCa1aRf9cSK6I7TbMC7/eGtDnC2ToiRlFJurVRblaEmhzVQS1yQ4Dkooqsj9hNVl6nhu7JfR52GLogns33Ec/yYuRcWcULKSlR5Cerfef/5YijBEhlr9X76SJiOpjvS4lwWFYX+h8xzuVhRLGwIVB9oQNllxYItzcDSGmRx+EOMXWASHmoUDnBOZg4GMVukqOcF5l0ynoepiA1YHLdZlMy6SB3P7BZKF/aNCOn9nXw+N9X4U/yUpkM3Pb7HoGdNrC8RO4SwrNjGrarkdEB6e1lBReK/dqcylaF/mpK9VLpfQszDI8xnR4VCmlEM+le0xOsyHfeGciabdI4KH0i0SfYl4ls5XrN+CaqFWdo="
- PYPI=false

cache:
directories:
Expand All @@ -22,11 +19,14 @@ matrix:
- os: linux
env: [PYTHON=2.7, NUMPY=1.13, CYTHON=0.26]
- os: linux
env: [PYTHON=3.5, NUMPY=1.13]
env: [PYTHON=2.7]
- os: linux
env: [PYTHON=3.6, NUMPY=1.14, CYTHON=0.27]
env: [PYTHON=3.5, NUMPY=1.14]
- os: linux
env: [PYTHON=3.6, NUMPY=1.15, CYTHON=0.28]
env: [PYTHON=3.6, NUMPY=1.15, CYTHON=0.27]
- os: linux
python: 3.6
env: [PYPI=true]
- os: linux
env: [PYTHON=3.7, DOCBUILD=true]
- os: osx
Expand All @@ -36,23 +36,11 @@ matrix:

before_install:
- git fetch --tags
- if [[ ${TRAVIS_OS_NAME} == "osx" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda3.sh; fi
- if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda3.sh; fi
- chmod +x miniconda3.sh
- ./miniconda3.sh -b
- export PATH=${HOME}/miniconda3/bin:$PATH
- conda config --set always_yes true
- conda update --all --quiet
- PKGS="python=${PYTHON}"
- PKGS="${PKGS} numpy"; if [ ${NUMPY} ]; then PKGS="${PKGS}=${NUMPY}"; fi
- PKGS="${PKGS} Cython"; if [ ${CYTHON} ]; then PKGS="${PKGS}=${CYTHON}"; fi
- PKGS="${PKGS} pandas"; if [ ${PANDAS} ]; then PKGS="${PKGS}=${PANDAS}"; fi
- conda create -n randomgen-test ${PKGS} pytest setuptools nose --quiet
- source activate randomgen-test
- if [[ $PYPI = true ]]; then source ci/pypi-install.sh; else source ci/conda-install.sh; fi
- pip install tempita coverage coveralls pytest-cov codecov -q
- pip list
- export BUILD_DIR=${PWD}
- if [[ ${DOCBUILD} == true ]]; then pip install sphinx sphinx_rtd_theme guzzle_sphinx_theme ipython doctr -q; fi
- if [[ ${DOCBUILD} == true ]]; then conda install numba pandas matplotlib --quiet; fi
- gcc --version || true
- clang --version || true

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ NumPy RandomState evolution.
This is a library and generic interface for alternative random
generators in Python and NumPy.

## Python 2.7 Support

Release 1.16.0 is the final version that supports Python 2.7. Any bugs
in v1.16.0 will be patched until the end of 2019. All future releases
are Python 3, with an initial minimum version of 3.5.

## Compatibility Warning

`RandomGenerator` does not support Box-Muller normal variates and so it not
Expand Down
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ NumPy RandomState evolution.
This is a library and generic interface for alternative random
generators in Python and NumPy.

.. rubric:: Python 2.7 Support
:name: Python 2.7 Support

Release 1.16.0 is the final version that supports Python 2.7. Any bugs
in v1.16.0 will be patched until the end of 2019. All future releases
are Python 3, with an initial minimum version of 3.5.


Compatibility Warning
---------------------

Expand Down
20 changes: 20 additions & 0 deletions ci/conda-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

if [[ ${TRAVIS_OS_NAME} == "osx" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda3.sh; fi
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda3.sh; fi
chmod +x miniconda3.sh
./miniconda3.sh -b
export PATH=${HOME}/miniconda3/bin:$PATH
conda config --set always_yes true
conda update --all --quiet
conda create -n randomgen-test ${PKGS} pip --quiet
source activate randomgen-test

PKGS="python=${PYTHON} matplotlib numpy"
if [[ -n ${NUMPY} ]]; then PKGS="${PKGS}=${NUMPY}"; fi
PKGS="${PKGS} Cython";
if [[ -n ${CYTHON} ]]; then PKGS="${PKGS}=${CYTHON}"; fi
PKGS="${PKGS} pandas";
if [[ -n ${PANDAS} ]]; then PKGS="${PKGS}=${PANDAS}"; fi
echo conda create -n randomgen-test ${PKGS} pytest setuptools nose --quiet
conda create -n randomgen-test ${PKGS} pytest setuptools nose --quiet
3 changes: 3 additions & 0 deletions ci/pypi-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

pip install numpy cython pandas pytest setuptools nose matplotlib --quiet
3 changes: 2 additions & 1 deletion doc/source/change-log.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Change Log
----------
v1.15.2
v1.16.0
=======
- Fixed a bug that affected :class:`~randomgen.dsfmt.DSFMT` when calling
:func:`~randomgen.dsfmt.DSFMT.jump` or :func:`~randomgen.dsfmt.DSFMT.seed`
Expand All @@ -11,6 +11,7 @@ v1.15.2
entropy initialization used too few bytes. This bug is unlikely to be
encountered since this path is only encountered if the system random
number generator fails.
- Synchronized with upstream changes.

v1.15.1
=======
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy>=1.10
numpy>=1.13
cython>=0.26
setuptools
wheel

0 comments on commit 9803ae0

Please sign in to comment.