Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ Babel is distributed as a standard Python package fully set up with all the
dependencies it needs. Timezone support uses the standard library `zoneinfo`_
module which reads the system's timezone database.

On Windows, which has no system timezone database available, the `tzdata`_
package is installed as a dependency to provide the data for `zoneinfo`_.

.. _tzdata: https://pypi.org/project/tzdata/

.. _zoneinfo: https://docs.python.org/3/library/zoneinfo.html

.. _virtualenv:
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ readme = "README.rst"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
requires-python = ">=3.9"
dependencies = [
# Windows has no system timezone database for `zoneinfo` to read
"tzdata; sys_platform == 'win32'",
]
authors = [
{ name = "Armin Ronacher", email = "armin.ronacher@active-4.com" },
]
Expand Down Expand Up @@ -46,7 +50,6 @@ dev = [
"pytest>=6.0",
"pytz",
"setuptools",
"tzdata;sys_platform == 'win32'",
]

[project.urls]
Expand Down
Loading