[Announce] SimPy 4.0.0

116 views
Skip to first unread message

Peter Grayson

unread,
Apr 6, 2020, 11:57:33 PM4/6/20
to python-simpy
The SimPy team is pleased to announce the release of SimPy 4.0.0.

SimPy 4.0 is a major release due to a few breaking changes. Most notably, support for older Python versions, including Python 2.7 is removed. Python 3.6 is the minimum version for SimPy 4.0. Users that need to remain on Python 2.7 are encouraged to pin their SimPy dependency to `simpy<4`.

Other breaking changes include:
  • [BREAKING] ``BaseEnvironment`` is eliminated. Inherit ``Environment`` instead.
  • [BREAKING] ``Environment.exit()`` is eliminated. Use ``return`` instead.
For SimPy applications that run on Python 3, most of the work is done. See the Porting from SimPy 3 to 4 document for more details on how to update a SimPy application for SimPy 4.0.

The biggest new feature in 4.0 is that SimPy is now fully type annotated. SimPy users that wish to use static type checking in their application using, for example, Mypy may now take advantage of SimPy's type annotations.

Please see the https://simpy.readthedocs.io/en/latest/about/history.html for the complete changelog for SimPy 4.0.

SimPy 4.0.0 is available now on PyPI and may be installed or upgraded in the usual way using pip.

pip install -U simpy

Cheers,
The SimPy Team

Sietse Brouwer

unread,
May 3, 2020, 6:48:10 AM5/3/20
to python-simpy
A bit late, but: Congratulations on this release! Full type annotation is especially wonderful news, and much appreciated.

Kind regards,

Sietse
Sietse Brouwer
Reply all
Reply to author
Forward
0 new messages