Skip to content

Commit

Permalink
Added 3.12 workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
MSeal committed Oct 30, 2023
1 parent 0ffc38d commit b2d80f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions papermill/tests/test_hdfs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import unittest
from unittest.mock import MagicMock, patch

import pytest

from ..iorw import HDFSHandler


Expand Down Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ tqdm >= 4.32.2
requests
entrypoints
tenacity >= 5.0.2
aiohttp==3.9.0b0;python_version=="3.12"
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b2d80f4

Please sign in to comment.