Skip to content

Commit cfe39aa

Browse files
committed
upgrade
1 parent 1dad69d commit cfe39aa

5 files changed

Lines changed: 28 additions & 12 deletions

File tree

.github/workflows/python-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-22.04
3535
strategy:
3636
matrix:
37-
python: ['3.8', '3.9', '3.10', '3.11']
37+
python: ['3.9', '3.10', '3.11','3.12']
3838

3939
steps:
4040
- uses: actions/checkout@v4

poetry.lock

Lines changed: 6 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyiceberg/types.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,22 @@ def _parse_fixed_type(fixed: Any) -> int:
9292
return fixed
9393

9494

95+
def strtobool(val: str) -> bool:
96+
"""Convert a string representation of truth to true (1) or false (0).
97+
98+
True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values
99+
are 'n', 'no', 'f', 'false', 'off', and '0'. Raises ValueError if
100+
'val' is anything else.
101+
"""
102+
val = val.lower()
103+
if val in ("y", "yes", "t", "true", "on", "1"):
104+
return True
105+
elif val in ("n", "no", "f", "false", "off", "0"):
106+
return False
107+
else:
108+
raise ValueError(f"invalid truth value {val!r}")
109+
110+
95111
class IcebergType(IcebergBaseModel):
96112
"""Base type for all Iceberg Types.
97113

pyiceberg/utils/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
# under the License.
1717
import logging
1818
import os
19-
from distutils.util import strtobool
2019
from typing import List, Optional
2120

2221
import strictyaml
2322

2423
from pyiceberg.typedef import UTF8, FrozenDict, RecursiveDict
24+
from pyiceberg.types import strtobool
2525

2626
PYICEBERG = "pyiceberg_"
2727
DEFAULT = "default"

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ classifiers = [
2929
"Programming Language :: Python :: 3.8",
3030
"Programming Language :: Python :: 3.9",
3131
"Programming Language :: Python :: 3.10",
32-
"Programming Language :: Python :: 3.11"
32+
"Programming Language :: Python :: 3.11",
33+
"Programming Language :: Python :: 3.12"
3334
]
3435
packages = [
3536
{ include = "pyiceberg" },
@@ -47,6 +48,7 @@ include = [
4748

4849
[tool.poetry.dependencies]
4950
python = "^3.8"
51+
setuptools = ">=70.1.1"
5052
mmh3 = ">=4.0.0,<5.0.0"
5153
requests = ">=2.20.0,<3.0.0"
5254
click = ">=7.1.1,<9.0.0"
@@ -61,7 +63,7 @@ tenacity = ">=8.2.3,<9.0.0"
6163
pyarrow = { version = ">=9.0.0,<17.0.0", optional = true }
6264
pandas = { version = ">=1.0.0,<3.0.0", optional = true }
6365
duckdb = { version = ">=0.5.0,<2.0.0", optional = true }
64-
ray = { version = ">=2.0.0,<2.10.0", optional = true }
66+
ray = { version = ">=2.0.0,<2.40.0", optional = true }
6567
python-snappy = { version = ">=0.6.0,<1.0.0", optional = true }
6668
thrift = { version = ">=0.13.0,<1.0.0", optional = true }
6769
mypy-boto3-glue = { version = ">=1.28.18", optional = true }

0 commit comments

Comments
 (0)