Skip to content

Commit

Permalink
Bump to 0.6.1 and update test for latest heyoka changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescarni committed Apr 8, 2021
1 parent 2dade54 commit 9d459b1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if(NOT CMAKE_BUILD_TYPE)
FORCE)
endif()

project(heyoka.py VERSION 0.6.0 LANGUAGES CXX C)
project(heyoka.py VERSION 0.6.1 LANGUAGES CXX C)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" "${CMAKE_CURRENT_SOURCE_DIR}/cmake/yacma")

Expand Down Expand Up @@ -116,7 +116,7 @@ endif()
# heyoka.
# NOTE: put the minimum version in a variable
# so that we can re-use it below.
set (_HEYOKA_PY_MIN_HEYOKA_VERSION 0.6.0)
set (_HEYOKA_PY_MIN_HEYOKA_VERSION 0.6.1)
find_package(heyoka REQUIRED CONFIG)
if(${heyoka_VERSION} VERSION_LESS ${_HEYOKA_PY_MIN_HEYOKA_VERSION})
message(FATAL_ERROR "The minimum heyoka version required by heyoka.py is ${_HEYOKA_PY_MIN_HEYOKA_VERSION}, but version ${heyoka_VERSION} was found instead.")
Expand Down
9 changes: 8 additions & 1 deletion doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Changelog
=========

0.7.0 (unreleased)
0.6.1 (unreleased)
------------------

New
Expand All @@ -12,6 +12,13 @@ New
- Add the wavy ramp tutorial
(`#32 <https://github.com/bluescarni/heyoka.py/pull/32>`__).

Changes
~~~~~~~

- heyoka.py now requires at least version 0.6.1 of the
heyoka C++ library
(`#32 <https://github.com/bluescarni/heyoka.py/pull/32>`__).

0.6.0 (2021-04-06)
------------------

Expand Down
4 changes: 2 additions & 2 deletions doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ heyoka.py has the following **mandatory** runtime dependencies:
* `Python <https://www.python.org/>`__ 3.4 or later (Python 2.x is
**not** supported),
* the `heyoka C++ library <https://github.com/bluescarni/heyoka>`__,
version 0.6.0 or later,
version 0.6.1 or later,
* the `{fmt} <https://fmt.dev/latest/index.html>`__ library,
* the `spdlog <https://github.com/gabime/spdlog>`__ library,
* `NumPy <https://numpy.org/>`__.
Expand Down Expand Up @@ -57,7 +57,7 @@ In order to install heyoka.py from source, you will need:
* a `Python <https://www.python.org/>`__ installation,
* `pybind11 <https://github.com/pybind/pybind11>`__ (version >= 2.6),
* the `heyoka C++ library <https://github.com/bluescarni/heyoka>`__,
version 0.6.0 or later,
version 0.6.1 or later,
* the `{fmt} <https://fmt.dev/latest/index.html>`__ library,
* the `spdlog <https://github.com/gabime/spdlog>`__ library,
* the `Boost libraries <https://www.boost.org/>`__,
Expand Down
4 changes: 1 addition & 3 deletions heyoka/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,7 @@ def cb1(ta, t):
nt_events=[nt_event(v*v-1e-10, cb0, fp_type=desc),
nt_event(v, cb1, fp_type=desc)])

for _ in range(20):
oc, h = ta.step()
self.assertTrue(oc == taylor_outcome.success)
self.assertEqual(ta.propagate_until(fp_t(4))[0], taylor_outcome.time_limit)

self.assertEqual(counter, 12)

Expand Down

0 comments on commit 9d459b1

Please sign in to comment.