From b2d80f4fabb5f9d6f9f9a4ce5da573882810185a Mon Sep 17 00:00:00 2001 From: Matthew Seal Date: Mon, 30 Oct 2023 16:24:25 -0700 Subject: [PATCH] Added 3.12 workarounds --- papermill/tests/test_hdfs.py | 3 +++ requirements.txt | 1 + setup.py | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/papermill/tests/test_hdfs.py b/papermill/tests/test_hdfs.py index 9d4e7f3f..de73ca03 100644 --- a/papermill/tests/test_hdfs.py +++ b/papermill/tests/test_hdfs.py @@ -1,6 +1,8 @@ import unittest from unittest.mock import MagicMock, patch +import pytest + from ..iorw import HDFSHandler @@ -38,6 +40,7 @@ def __init__(self, path): self.path = path +@pytest.mark.skip(reason="No valid dep package for python 3.12 yet") @patch('papermill.iorw.HadoopFileSystem', side_effect=MockHadoopFileSystem()) class HDFSTest(unittest.TestCase): def setUp(self): diff --git a/requirements.txt b/requirements.txt index 246004dc..559744f4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ tqdm >= 4.32.2 requests entrypoints tenacity >= 5.0.2 +aiohttp==3.9.0b0;python_version=="3.12" \ No newline at end of file diff --git a/setup.py b/setup.py index d64b9bc2..c0536dcb 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,8 @@ def read_reqs(fname, folder=None): github_reqs = read_reqs('github.txt', folder='requirements') black_reqs = ['black >= 19.3b0'] all_reqs = s3_reqs + azure_reqs + gcs_reqs + hdfs_reqs + black_reqs -dev_reqs = read_reqs('dev.txt', folder='requirements') + all_reqs +# Temporarily remove hdfs_reqs from dev deps until the pyarrow package is available for Python 3.12 +dev_reqs = read_reqs('dev.txt', folder='requirements') + s3_reqs + azure_reqs + gcs_reqs + black_reqs # all_reqs extras_require = { "test": dev_reqs, "dev": dev_reqs,