Skip to content

Commit

Permalink
Deprecating CI for python version 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsitsi committed Feb 19, 2025
1 parent 8a1bf8d commit 7ef8c9c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 27 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python-verison: ["3.7"]
python-verison: ["3.9"]
ml-deps:
- "torch==1.11.0+cpu torchvision==0.12.0+cpu torchdata==0.3.0 tensorflow-cpu==2.8.1 scikit-learn==1.0.2"
- "torch==1.12.1+cpu torchvision==0.13.1+cpu torchdata==0.4.1 tensorflow-cpu==2.9.1 scikit-learn==1.0.2"
- "torch==1.13.0+cpu torchvision==0.14.0+cpu torchdata==0.5.0 tensorflow-cpu==2.10.0 scikit-learn==1.0.2"
- "torch==1.13.0+cpu torchvision==0.14.0+cpu torchdata==0.5.0 tensorflow-cpu==2.11.0 scikit-learn==1.0.2"
- "torch==2.1.0+cpu torchvision==0.16.0+cpu torchdata==0.7.0 tensorflow-cpu==2.11.0 scikit-learn==1.0.2"
include:
- ml-deps: "torch==1.13.0+cpu torchvision==0.14.0+cpu torchdata==0.5.0 tensorflow-cpu==2.12.0 scikit-learn==1.0.2"
python-version: "3.9"
- ml-deps: "torch==1.13.0+cpu torchvision==0.14.0+cpu torchdata==0.5.0 tensorflow-cpu==2.13.0 scikit-learn==1.0.2"
python-version: "3.9"
- ml-deps: "torch==2.1.0+cpu torchvision==0.16.0+cpu torchdata==0.7.0 tensorflow-cpu==2.13.0 numpy==1.24.3 scikit-learn==1.0.2"
python-version: "3.9"
- ml-deps: "torch==2.3.1+cpu torchvision==0.18.1+cpu torchdata==0.8.0 'tensorflow-cpu<2.16.0' 'numpy<2' 'scikit-learn>=1.0'"
python-version: "3.9"
- ml-deps: "torch torchvision torchdata~=0.8.0 'tensorflow-cpu<2.16.0' 'numpy<2' 'scikit-learn>=1.0'"
python-version: "3.11"

- "torch==1.13.0+cpu torchvision==0.14.0+cpu torchdata==0.5.0 --extra-index-url https://download.pytorch.org/whl/cpu tensorflow-cpu==2.12.0"
- "torch==1.13.0+cpu torchvision==0.14.0+cpu torchdata==0.5.0 -extra-index-url https://download.pytorch.org/whl/cpu https://download.pytorch.org/whl/cpu tensorflow-cpu==2.13.0"
- "torch==2.1.0 torchvision==0.16.0 torchdata==0.6.0 --index-url https://download.pytorch.org/whl/cpu tensorflow-cpu==2.15.0 'numpy<=1.25'"
- "torch==2.1.0+cpu torchvision==0.16.0+cpu torchdata==0.7.0 --index-url https://download.pytorch.org/whl/cpu tensorflow-cpu==2.13.0 'numpy<=1.25'"
- "torch==2.2.0+cpu torchvision==0.16.0+cpu torchdata==0.7.0 --index-url https://download.pytorch.org/whl/cpu tensorflow-cpu==2.11.0"
env:
run_coverage: ${{ github.ref == 'refs/heads/master' }}

Expand All @@ -48,7 +36,7 @@ jobs:
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -f https://download.pytorch.org/whl/torch_stable.html protobuf==3.* ${{ matrix.ml-deps }}
pip install ${{ matrix.ml-deps }}
pip install pytest-mock pytest-cov
pip install -e .[cloud]
Expand Down
12 changes: 4 additions & 8 deletions tiledb/ml/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
from pkg_resources import DistributionNotFound, get_distribution # type: ignore

# TODO change pkg_resources with importlib.metadata, as described here
# https://pypi.org/project/setuptools-scm/#:~:text=Retrieving%20package%20version%20at%20runtime, when we stop
# supporting Python 3.7. We the aforementioned change, we can avoid the 100ms overhead during import of the package.
import importlib.metadata

try:
__version__ = get_distribution("tiledb-ml").version
except DistributionNotFound:
__version__ = ""
__version__ = importlib.metadata.version("tiledb-ml")
except importlib.metadata.PackageNotFoundError:
__version__ = ""

0 comments on commit 7ef8c9c

Please sign in to comment.