Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completely drop support for Python 3.7. #511

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/tiledb-cloud-py.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.9"
cache: pip
cache-dependency-path: ".github/workflows/tiledb-cloud-py.yaml"
- name: Install pre-commit
Expand All @@ -44,9 +44,7 @@ jobs:
os:
- ubuntu-20.04
# - macos-12
python-version:
- "3.9"
- "3.7"
python-version: ["3.9"]
dependencies:
- pinned
- fresh
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "tiledb-cloud"
description = "TileDB Cloud platform Python client"
readme = "./README.md"
dynamic = ["version"]
requires-python = ">=3.8"

dependencies = [
"attrs>=21.4.0",
Expand Down
18 changes: 0 additions & 18 deletions requirements-py3.7.txt

This file was deleted.

24 changes: 12 additions & 12 deletions requirements-py3.9.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
attrs==23.1.0
certifi==2023.7.22
attrs==23.2.0
certifi==2024.2.2
cloudpickle==2.2.1
importlib-metadata==6.8.0
numpy==1.26.1
importlib-metadata==7.0.1
numpy==1.26.4
packaging==23.2
pandas==2.1.1
pyarrow==14.0.1
pandas==2.2.0
pyarrow==15.0.0
python-dateutil==2.8.2
pytz==2023.3.post1
pytz==2024.1
six==1.16.0
tblib==1.7.0
tiledb==0.23.1
typing_extensions==4.8.0
tzdata==2023.3
urllib3==2.0.7
xarray==2023.9.0
tiledb==0.25.0
typing_extensions==4.9.0
tzdata==2023.4
urllib3==2.2.0
xarray==2024.1.1
zipp==3.17.0
12 changes: 0 additions & 12 deletions src/tiledb/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# This file imports specifically to re-export.

import sys
import warnings

from . import compute
from . import dag
from . import groups
Expand Down Expand Up @@ -41,15 +38,6 @@
from .tasks import task
from .tiledb_cloud_error import TileDBCloudError

if sys.version_info < (3, 8):
warnings.warn(
DeprecationWarning(
"Python 3.7 has been deprecated and support will soon be fully"
" discontinued. Upgrade to Python 3.9 as soon as possible."
)
)


_pickle_compat.patch_cloudpickle()
_pickle_compat.patch_pandas()

Expand Down
9 changes: 0 additions & 9 deletions src/tiledb/cloud/dag/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import itertools
import json
import numbers
import sys
import threading
import time
import uuid
Expand Down Expand Up @@ -609,14 +608,6 @@ def __init__(
:param deadline: Duration in seconds relative to the workflow start time
which the workflow is allowed to run before it gets terminated.
"""
if sys.version_info < (3, 8):
warnings.warn(
DeprecationWarning(
"Python 3.7 has been deprecated and support will soon be fully"
" discontinued. Upgrade to Python 3.9 as soon as possible."
)
)

self.id = uuid.uuid4()
self.nodes: Dict[uuid.UUID, Node] = {}
self.nodes_by_name: Dict[str, Node] = {}
Expand Down
4 changes: 2 additions & 2 deletions src/tiledb/cloud/rest_api/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None):
key_file=configuration.key_file,
proxy_url=configuration.proxy,
proxy_headers=configuration.proxy_headers,
**addition_pool_args
**addition_pool_args,
)
else:
self.pool_manager = urllib3.PoolManager(
Expand All @@ -104,7 +104,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None):
ca_certs=ca_certs,
cert_file=configuration.cert_file,
key_file=configuration.key_file,
**addition_pool_args
**addition_pool_args,
)

def request(
Expand Down
9 changes: 0 additions & 9 deletions src/tiledb/cloud/udf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import base64
import sys
import uuid
import warnings
from typing import Any, Callable, Iterable, Optional, Union
Expand Down Expand Up @@ -82,14 +81,6 @@ def exec_base(
:param kwargs: named arguments to pass to function
"""

if sys.version_info < (3, 8):
warnings.warn(
DeprecationWarning(
"Python 3.7 has been deprecated and support will soon be fully"
" discontinued. Upgrade to Python 3.9 as soon as possible."
)
)

if result_format_version:
warnings.warn(DeprecationWarning("result_format_version is unused."))

Expand Down
2 changes: 1 addition & 1 deletion update_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ write-requirements() {
"$SCRATCH/venv/bin/pip" freeze --exclude tiledb-cloud >"requirements-py$VERSION.txt"
}

for VER in 3.7 3.9; do
for VER in 3.9; do
write-requirements "$VER"
done
Loading