From d309a8c540928eb932893238022042c3a772cf14 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Fri, 23 Aug 2024 15:38:30 -0400 Subject: [PATCH 1/2] Drop Python 3.9 support --- .pre-commit-config.yaml | 2 +- conda/environments/all_cuda-118_arch-x86_64.yaml | 2 +- conda/environments/all_cuda-122_arch-x86_64.yaml | 2 +- dependencies.yaml | 6 +----- python/cugraph-pg/pyproject.toml | 3 +-- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b9edb4c..78ce967 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: hooks: - id: black language_version: python3 - args: [--target-version=py39] + args: [--target-version=py310] files: ^(python/.*|benchmarks/.*)$ - repo: https://github.com/PyCQA/flake8 rev: 6.0.0 diff --git a/conda/environments/all_cuda-118_arch-x86_64.yaml b/conda/environments/all_cuda-118_arch-x86_64.yaml index 9cf037b..ea0b578 100644 --- a/conda/environments/all_cuda-118_arch-x86_64.yaml +++ b/conda/environments/all_cuda-118_arch-x86_64.yaml @@ -38,7 +38,7 @@ dependencies: - pytest - pytest-forked - pytest-xdist -- python>=3.9,<3.12 +- python>=3.10,<3.12 - pytorch-cuda=11.8 - pytorch=2.0.0 - recommonmark diff --git a/conda/environments/all_cuda-122_arch-x86_64.yaml b/conda/environments/all_cuda-122_arch-x86_64.yaml index dfb48be..7176239 100644 --- a/conda/environments/all_cuda-122_arch-x86_64.yaml +++ b/conda/environments/all_cuda-122_arch-x86_64.yaml @@ -38,7 +38,7 @@ dependencies: - pytest - pytest-forked - pytest-xdist -- python>=3.9,<3.12 +- python>=3.10,<3.12 - recommonmark - scikit-build-core>=0.7.0 - sphinx-copybutton diff --git a/dependencies.yaml b/dependencies.yaml index f0a0dd1..7b943a5 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -179,10 +179,6 @@ dependencies: specific: - output_types: conda matrices: - - matrix: - py: "3.9" - packages: - - python=3.9 - matrix: py: "3.10" packages: @@ -193,7 +189,7 @@ dependencies: - python=3.11 - matrix: packages: - - python>=3.9,<3.12 + - python>=3.10,<3.12 run: common: - output_types: [conda, requirements] diff --git a/python/cugraph-pg/pyproject.toml b/python/cugraph-pg/pyproject.toml index 1bf12c2..16de855 100644 --- a/python/cugraph-pg/pyproject.toml +++ b/python/cugraph-pg/pyproject.toml @@ -20,11 +20,10 @@ authors = [ { name = "NVIDIA Corporation" }, ] license = { text = "Apache 2.0" } -requires-python = ">=3.9" +requires-python = ">=3.10" classifiers = [ "Intended Audience :: Developers", "Programming Language :: Python", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", ] From a149a2bdcef83c7fc84bbac54d86fd6114e51f2e Mon Sep 17 00:00:00 2001 From: James Lamb Date: Wed, 4 Sep 2024 19:12:49 -0500 Subject: [PATCH 2/2] add Python 3.12 --- conda/environments/all_cuda-118_arch-x86_64.yaml | 2 +- conda/environments/all_cuda-122_arch-x86_64.yaml | 2 +- dependencies.yaml | 6 +++++- python/cugraph-pg/pyproject.toml | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/conda/environments/all_cuda-118_arch-x86_64.yaml b/conda/environments/all_cuda-118_arch-x86_64.yaml index ea0b578..86e8c75 100644 --- a/conda/environments/all_cuda-118_arch-x86_64.yaml +++ b/conda/environments/all_cuda-118_arch-x86_64.yaml @@ -38,7 +38,7 @@ dependencies: - pytest - pytest-forked - pytest-xdist -- python>=3.10,<3.12 +- python>=3.10,<3.13 - pytorch-cuda=11.8 - pytorch=2.0.0 - recommonmark diff --git a/conda/environments/all_cuda-122_arch-x86_64.yaml b/conda/environments/all_cuda-122_arch-x86_64.yaml index 7176239..3bda51b 100644 --- a/conda/environments/all_cuda-122_arch-x86_64.yaml +++ b/conda/environments/all_cuda-122_arch-x86_64.yaml @@ -38,7 +38,7 @@ dependencies: - pytest - pytest-forked - pytest-xdist -- python>=3.10,<3.12 +- python>=3.10,<3.13 - recommonmark - scikit-build-core>=0.7.0 - sphinx-copybutton diff --git a/dependencies.yaml b/dependencies.yaml index 7b943a5..185726b 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -188,8 +188,12 @@ dependencies: packages: - python=3.11 - matrix: + py: "3.12" packages: - - python>=3.10,<3.12 + - python=3.12 + - matrix: + packages: + - python>=3.10,<3.13 run: common: - output_types: [conda, requirements] diff --git a/python/cugraph-pg/pyproject.toml b/python/cugraph-pg/pyproject.toml index 16de855..6951b61 100644 --- a/python/cugraph-pg/pyproject.toml +++ b/python/cugraph-pg/pyproject.toml @@ -26,6 +26,7 @@ classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ] dependencies = [ "cugraph==24.6.*",