Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ details, see the commit logs at https://github.com/pandas-dev/pandas.
## Dependencies
- [NumPy - Adds support for large, multi-dimensional arrays, matrices and high-level mathematical functions to operate on these arrays](https://www.numpy.org)
- [python-dateutil - Provides powerful extensions to the standard datetime module](https://dateutil.readthedocs.io/en/stable/index.html)
- [tzdata - Provides an IANA time zone database](https://tzdata.readthedocs.io/en/latest/)
- [tzdata - Provides an IANA time zone database](https://tzdata.readthedocs.io/en/latest/) (Only required on Windows)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or emscriptem?


See the [full installation instructions](https://pandas.pydata.org/pandas-docs/stable/install.html#dependencies) for minimum supported versions of required, recommended and optional dependencies.

Expand Down
4 changes: 3 additions & 1 deletion doc/source/getting_started/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,11 @@ Package Minimum support
================================================================ ==========================
`NumPy <https://numpy.org>`__ 1.26.0
`python-dateutil <https://dateutil.readthedocs.io/en/stable/>`__ 2.8.2
`tzdata <https://pypi.org/project/tzdata/>`__ 2023.3
`tzdata <https://pypi.org/project/tzdata/>`__ \* 2023.3
================================================================ ==========================

\* ``tzdata`` is only required on Windows and Pyodide (Emscripten).

Generally, the minimum supported version is ~2 years old from the release date of a major or minor pandas version.

.. _install.optional_dependencies:
Expand Down
2 changes: 0 additions & 2 deletions doc/source/whatsnew/v3.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,6 @@ The following required dependencies were updated:
+=================+======================+
| numpy | 1.26.0 |
+-----------------+----------------------+
| tzdata | 2023.3 |
+-----------------+----------------------+

For `optional libraries <https://pandas.pydata.org/docs/getting_started/install.html>`_ the general recommendation is to use the latest version.
The following table lists the lowest version per library that is currently being tested throughout the development of pandas.
Expand Down
3 changes: 0 additions & 3 deletions pandas/_libs/tslibs/timezones.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ cdef bint is_utc_zoneinfo(tzinfo tz):
utc_zoneinfo = zoneinfo.ZoneInfo("UTC")
except zoneinfo.ZoneInfoNotFoundError:
return False
# Warn if tzdata is too old, even if there is a system tzdata to alert
# users about the mismatch between local/system tzdata
import_optional_dependency("tzdata", errors="warn", min_version="2022.7")

return tz is utc_zoneinfo

Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ requires-python = '>=3.11'
dependencies = [
"numpy>=1.26.0",
"python-dateutil>=2.8.2",
"tzdata>=2023.3"
"tzdata>=2023.3; platform_system == 'Windows'",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With tests seeming to be fine with no minimum here (ref: #63264 (comment)), I'm wondering if we should remove the lower bound.

# Emscripten is the platform system for Pyodide.
"tzdata>=2023.3; platform_system == 'Emscripten'",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see some other packages use sys_platform != "emscripten" instead. Do we know if there is a preference? (I don't directly find a good source about this in the docs)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, I took it from here.

https://pyodide.org/en/0.16.1/faq.html#how-to-detect-that-code-is-run-with-pyodide

But looking at the latest version of the docs, it now uses sys.platform.

https://pyodide.org/en/stable/usage/faq.html#how-to-detect-that-code-is-run-with-pyodide

Will update.

]
classifiers = [
'Development Status :: 5 - Production/Stable',
Expand Down
Loading