Skip to content

Commit 51dfbe7

Browse files
committed
Make pytz an optional dependency
1 parent b1e5f06 commit 51dfbe7

26 files changed

+95
-61
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
/opt/python/cp311-cp311/bin/python -m venv ~/virtualenvs/pandas-dev
5555
. ~/virtualenvs/pandas-dev/bin/activate
5656
python -m pip install --no-cache-dir -U pip wheel setuptools meson-python==0.13.1 meson[ninja]==1.2.1
57-
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytz pytest>=7.3.2 pytest-xdist>=2.2.0 hypothesis>=6.46.1
57+
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytest>=7.3.2 pytest-xdist>=2.2.0 hypothesis>=6.46.1
5858
python -m pip install --no-cache-dir --no-build-isolation -e . --config-settings=setup-args="--werror"
5959
python -m pip list --no-cache-dir
6060
export PANDAS_CI=1

.github/workflows/unit-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ jobs:
230230
. ~/virtualenvs/pandas-dev/bin/activate
231231
python -m pip install --no-cache-dir -U pip wheel setuptools meson[ninja]==1.2.1 meson-python==0.13.1
232232
python -m pip install numpy --config-settings=setup-args="-Dallow-noblas=true"
233-
python -m pip install --no-cache-dir versioneer[toml] cython python-dateutil pytz pytest>=7.3.2 pytest-xdist>=2.2.0 hypothesis>=6.46.1
233+
python -m pip install --no-cache-dir versioneer[toml] cython python-dateutil pytest>=7.3.2 pytest-xdist>=2.2.0 hypothesis>=6.46.1
234234
python -m pip install --no-cache-dir --no-build-isolation -e . --config-settings=setup-args="--werror"
235235
python -m pip list --no-cache-dir
236236
export PANDAS_CI=1
@@ -268,7 +268,7 @@ jobs:
268268
/opt/python/cp311-cp311/bin/python -m venv ~/virtualenvs/pandas-dev
269269
. ~/virtualenvs/pandas-dev/bin/activate
270270
python -m pip install --no-cache-dir -U pip wheel setuptools meson-python==0.13.1 meson[ninja]==1.2.1
271-
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytz pytest>=7.3.2 pytest-xdist>=2.2.0 hypothesis>=6.46.1
271+
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytest>=7.3.2 pytest-xdist>=2.2.0 hypothesis>=6.46.1
272272
python -m pip install --no-cache-dir --no-build-isolation -e . --config-settings=setup-args="--werror"
273273
python -m pip list --no-cache-dir
274274
@@ -289,7 +289,7 @@ jobs:
289289
# In general, this will remain frozen(present, but not running) until:
290290
# - The next unreleased Python version has released beta 1
291291
# - This version should be available on GitHub Actions.
292-
# - Our required build/runtime dependencies(numpy, pytz, Cython, python-dateutil)
292+
# - Our required build/runtime dependencies(numpy, Cython, python-dateutil)
293293
# support that unreleased Python version.
294294
# To unfreeze, comment out the ``if: false`` condition, and make sure you update
295295
# the name of the workflow and Python version in actions/setup-python ``python-version:``
@@ -342,7 +342,7 @@ jobs:
342342
python -m pip install --upgrade pip setuptools wheel meson[ninja]==1.2.1 meson-python==0.13.1
343343
python -m pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
344344
python -m pip install versioneer[toml]
345-
python -m pip install python-dateutil pytz tzdata cython hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-cov
345+
python -m pip install python-dateutil tzdata cython hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-cov
346346
python -m pip install -ve . --no-build-isolation --no-index --no-deps --config-settings=setup-args="--werror"
347347
python -m pip list
348348

ci/deps/actions-310-minimum_versions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ dependencies:
2323
# required dependencies
2424
- python-dateutil=2.8.2
2525
- numpy=1.23.5
26-
- pytz=2020.1
2726

2827
# optional dependencies
2928
- beautifulsoup4=4.11.2
@@ -49,6 +48,7 @@ dependencies:
4948
- pyreadstat=1.2.0
5049
- pytables=3.8.0
5150
- python-calamine=0.1.7
51+
- pytz=2023.4
5252
- pyxlsb=1.0.10
5353
- s3fs=2022.11.0
5454
- scipy=1.10.0

ci/deps/actions-310.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ dependencies:
2020
# required dependencies
2121
- python-dateutil
2222
- numpy
23-
- pytz
2423

2524
# optional dependencies
2625
- beautifulsoup4>=4.11.2
@@ -46,6 +45,7 @@ dependencies:
4645
- pyreadstat>=1.2.0
4746
- pytables>=3.8.0
4847
- python-calamine>=0.1.7
48+
- pytz>=2023.4
4949
- pyxlsb>=1.0.10
5050
- s3fs>=2022.11.0
5151
- scipy>=1.10.0

ci/deps/actions-311-downstream_compat.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ dependencies:
2222
# required dependencies
2323
- python-dateutil
2424
- numpy
25-
- pytz
2625

2726
# optional dependencies
2827
- beautifulsoup4>=4.11.2
@@ -48,6 +47,7 @@ dependencies:
4847
- pyreadstat>=1.2.0
4948
- pytables>=3.8.0
5049
- python-calamine>=0.1.7
50+
- pytz>=2023.4
5151
- pyxlsb>=1.0.10
5252
- s3fs>=2022.11.0
5353
- scipy>=1.10.0

ci/deps/actions-311-numpydev.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ dependencies:
1818

1919
# pandas dependencies
2020
- python-dateutil
21-
- pytz
2221
- pip
2322

2423
- pip:

ci/deps/actions-311-pyarrownightly.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ dependencies:
1919
# required dependencies
2020
- python-dateutil
2121
- numpy<2
22-
- pytz
2322
- pip
2423

2524
- pip:

ci/deps/actions-311.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ dependencies:
2020
# required dependencies
2121
- python-dateutil
2222
- numpy
23-
- pytz
2423

2524
# optional dependencies
2625
- beautifulsoup4>=4.11.2
@@ -46,6 +45,7 @@ dependencies:
4645
- pyreadstat>=1.2.0
4746
- pytables>=3.8.0
4847
- python-calamine>=0.1.7
48+
- pytz>=2023.4
4949
- pyxlsb>=1.0.10
5050
- s3fs>=2022.11.0
5151
- scipy>=1.10.0

ci/deps/actions-312.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ dependencies:
2020
# required dependencies
2121
- python-dateutil
2222
- numpy
23-
- pytz
2423

2524
# optional dependencies
2625
- beautifulsoup4>=4.11.2
@@ -46,6 +45,7 @@ dependencies:
4645
- pyreadstat>=1.2.0
4746
- pytables>=3.8.0
4847
- python-calamine>=0.1.7
48+
- pytz>=2023.4
4949
- pyxlsb>=1.0.10
5050
- s3fs>=2022.11.0
5151
- scipy>=1.10.0

ci/deps/actions-pypy-39.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@ dependencies:
2222
# required
2323
- numpy
2424
- python-dateutil
25-
- pytz
2625
- pip:
2726
- tzdata>=2022.7

0 commit comments

Comments
 (0)