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.
SimPy 4.0.0 is available now on
PyPI and may be installed or upgraded in the usual way using pip.
Cheers,
The SimPy Team