The library pytz is in maintenance mode and the dependency on it can easily be removed by just using Python Standard Library components. Details: https://pypi.org/project/pytz/ (See Issues & Limitations: This project is in maintenance mode. Projects using Python 3.9 or later are best served by using the timezone functionaly now included in core Python and packages that work with it such as tzdata.)
The following two changes should be enough to get rid of this dependency:
The library pytz is in maintenance mode and the dependency on it can easily be removed by just using Python Standard Library components. Details: https://pypi.org/project/pytz/ (See Issues & Limitations: This project is in maintenance mode. Projects using Python 3.9 or later are best served by using the timezone functionaly now included in core Python and packages that work with it such as tzdata.)
The following two changes should be enough to get rid of this dependency:
In fmpy/fmucontainer/__init__.py: replace
pytz.utc
withtimezone.utc
using the following importfrom datetime import datetime, timezone
. (See https://docs.python.org/3.5/library/datetime.html#datetime.timezone.utc)In setup.py: remove
'pytz'
from the list ofinstall_requires
Many thanks in advance