Skip to content

Commit

Permalink
Merge pull request #347 from bashtage/rls-1.26
Browse files Browse the repository at this point in the history
RLS: Version 1.26
  • Loading branch information
bashtage authored Sep 20, 2023
2 parents c45eb27 + b7d3d91 commit ccbc5df
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ or the [stable documentation](https://bashtage.github.io/randomgen/devel/change-

## Changes in v1.24

``Generator`` and ``RandomState`` have been **removed**.
``Generator`` and ``RandomState`` were **removed** in 1.23.0.

## Changes from 1.18 to 1.19

Expand Down
12 changes: 10 additions & 2 deletions doc/source/change-log.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,21 @@ Change Log

<p class="admonition-title"> Deprecated </p>

``Generator`` and ``RandomState`` have been **REMOVED** in 1.23.
``Generator`` and ``RandomState`` were **REMOVED** in 1.23.
You should be using :class:`numpy.random.Generator` or
:class:`numpy.random.RandomState` which are maintained.

v1.26.0
=======
- This is place holder for the coming release.
- Fixed a bug that affected the :meth:`randomgen.xoroshiro128.Xoroshiro128.jumped`
method of :class:`randomgen.xoroshiro128.Xoroshiro128` where the ** version was
swapped with the standard version.
- Fixed a bug where :class:`numpy.random.SeedSequence` was not copied when advancing
generators using ``jumped``.
- Small compatibility fixes for change in NumPy.
- Changes the documentation theme to `sphinx-immaterial <https://jbms.github.io/sphinx-immaterial/>`_.
- Added builds for Python 3.11.
- Increased the minimum Python to 3.8.

v1.23.1
=======
Expand Down
4 changes: 2 additions & 2 deletions doc/source/evolution.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Evolution of randomgen

Changes in 1.23
---------------
``Generator`` and ``RandomState`` have been **removed**.
``Generator`` and ``RandomState`` were **removed** in 1.23.0.

Use :class:`numpy.random.Generator` if possible, or :class:`numpy.random.RandomState`
if you face legacy constraints.
Expand Down Expand Up @@ -48,5 +48,5 @@ The main changes are
* Change ``jump`` which operated in-place to ``jumped`` which returns a new ``BitGenerator``.
* Rename Basic RNG to bit generator, which impacts the API in multiple places where names
like ``brng`` and ``basic_rng`` have been replaced by ``bitgen`` or ``bit_generator``.
* Support for :class:`~randomgen.seed_sequence.SeedSequences` (also support NumPy ``SeedSequence`` instances)
* Support for :class:`~randomgen.seed_sequence.SeedSequence` (also support NumPy ``SeedSequence`` instances)
* Removed support for Python 2.7
5 changes: 2 additions & 3 deletions doc/source/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ members of the Mersenne Twister family which commonly fail ``BRank`` tests.

Sequential Seeds
~~~~~~~~~~~~~~~~
The recommended practice for constructing multiple :class:`~numpy.random.Generator`s
is to use :class:`~numpy.random.SeedSequence`'s :func:`~numpy.random.SeedSequence.spawn`
method.
The recommended practice for constructing multiple :class:`~numpy.random.Generator` objects
is to use the :meth:`~numpy.random.SeedSequence.spawn` method of :class:`~numpy.random.SeedSequence`.

::

Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ requires = [
"packaging>=21.0",
"setuptools",
"wheel",
"Cython>=0.29.24,<3.0",
"Cython>=0.29.24,<4",
"oldest-supported-numpy",
"numpy; python_version>='3.11'",
"setuptools_scm[toml]>=6.4.2,<7.0.0",
"numpy; python_version>='3.12'",
"setuptools_scm[toml]>=7.0.0,<8.0.0",
]
build-backend = "setuptools.build_meta"

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ def bit_generator(
"Operating System :: Unix",
"Programming Language :: C",
"Programming Language :: Cython",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Adaptive Technologies",
"Topic :: Artistic Software",
"Topic :: Office/Business :: Financial",
Expand Down Expand Up @@ -385,5 +385,5 @@ def is_pure(self):
],
zip_safe=False,
install_requires=install_required,
python_requires=">=3.7",
python_requires=">=3.8",
)

0 comments on commit ccbc5df

Please sign in to comment.