From 7ca8ba4af6b1582e0b61e7d58ebf08eaf17b71be Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 19 Feb 2024 04:13:25 -0500 Subject: [PATCH 1/4] Run tests with optional deps --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4fda670..9516d27 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,6 +37,9 @@ jobs: - ubuntu-latest - macos-latest - windows-latest + deps: + - "" + - "optional" include: - python: "3.9" platform: ubuntu-latest @@ -47,7 +50,7 @@ jobs: runs-on: ${{ matrix.platform }} continue-on-error: ${{ matrix.python == '3.13' }} env: - TOX_ENV: py + TOX_ENV: py${{ matrix.deps == 'optional' && '-optional' || '' }} steps: - uses: actions/checkout@v4 - name: Setup Python From b7c3a8d79469eabbeae3ae52dc67da47ed8433ca Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 19 Feb 2024 04:29:34 -0500 Subject: [PATCH 2/4] Allow optional requirements to be installed for any Python. --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 5c9f6c5..fad0aa6 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,7 @@ commands = deps = -r{toxinidir}/dev-requirements.txt -r{toxinidir}/requirements.txt - py{37,38,39}-{optional}: -r{toxinidir}/optional-requirements.txt + {optional}: -r{toxinidir}/optional-requirements.txt [testenv:docs] From f6a4553b0152218fe790a764eba52b60b616682d Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 19 Feb 2024 10:20:29 -0500 Subject: [PATCH 3/4] Unpin pandas to speed installation on Python 3.12. --- optional-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optional-requirements.txt b/optional-requirements.txt index fabaa4e..e350746 100644 --- a/optional-requirements.txt +++ b/optional-requirements.txt @@ -1,2 +1,2 @@ numpy>=1.10.2,<=2.0.0 -pandas>=0.17.1,<=2.0.0 +pandas>=0.17.1,<=3.0.0 From dba3d885ac236be9b854175b39b3ed4e1cb24389 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 19 Feb 2024 10:23:47 -0500 Subject: [PATCH 4/4] Add PyArrow dependency Suppresses DeprecationWarning when importing pandas. --- optional-requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/optional-requirements.txt b/optional-requirements.txt index e350746..b143ac4 100644 --- a/optional-requirements.txt +++ b/optional-requirements.txt @@ -1,2 +1,3 @@ numpy>=1.10.2,<=2.0.0 pandas>=0.17.1,<=3.0.0 +PyArrow<16.0.0