diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b2a9cc6..f76a63f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,9 +11,7 @@ jobs: python-version: - "3.8" - "3.9" - # temporarily remove because Ray doesn't support yet - # https://github.com/ray-project/ray/issues/19116 - # - "3.10" + - "3.10" fail-fast: false steps: - uses: actions/checkout@v3 diff --git a/CHANGELOG.md b/CHANGELOG.md index aae0f11..4e41d90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,14 @@ Released on December 6th, 2023. - Use perfect task name as Ray remote function name - [#103](https://github.com/PrefectHQ/prefect-ray/pull/103) +## 0.2.6 + +Released on November 29th, 2023. + +### Added + +- Support for Python 3.10 - [#105](https://github.com/PrefectHQ/prefect-ray/pull/105) + ## 0.2.5 Released on April 27th, 2023. diff --git a/README.md b/README.md index 7ea734f..bd18270 100644 --- a/README.md +++ b/README.md @@ -43,11 +43,7 @@ Install `prefect-ray` with `pip`: pip install prefect-ray ``` -Users running Apple Silicon (such as M1 macs) will need to additionally run: -``` -pip uninstall grpcio -conda install grpcio -``` +Users running Apple Silicon (such as M1 macs) will need to install ray in a miniforge conda environment. Click [here](https://docs.ray.io/en/master/ray-overview/installation.html#m1-mac-apple-silicon-support) for more details. ## Running tasks on Ray @@ -130,10 +126,6 @@ def my_flow(): Note that Ray Client uses the [ray://](https://docs.ray.io/en/master/cluster/ray-client.html) URI to indicate the address of a Ray instance. If you don't provide the `address` of a Ray instance, Prefect creates a temporary instance automatically. !!! warning "Ray environment limitations" - While we're excited about adding support for parallel task execution via Ray to Prefect, there are some inherent limitations with Ray you should be aware of: - - Ray currently does not support Python 3.10. - Ray support for non-x86/64 architectures such as ARM/M1 processors with installation from `pip` alone and will be skipped during installation of Prefect. It is possible to manually install the blocking component with `conda`. See the [Ray documentation](https://docs.ray.io/en/latest/ray-overview/installation.html#m1-mac-apple-silicon-support) for instructions. See the [Ray installation documentation](https://docs.ray.io/en/latest/ray-overview/installation.html) for further compatibility information. diff --git a/requirements-dev.txt b/requirements-dev.txt index 7aad06e..092dfe9 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -9,7 +9,6 @@ mkdocstrings[python] isort pre-commit pytest-asyncio -mock; python_version < '3.8' mkdocs-gen-files interrogate coverage diff --git a/requirements.txt b/requirements.txt index b21eaed..a02eb3e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ prefect>=2.13.5 -ray[default] >= 1.12.0; python_version >= '3.7' and python_version < '3.10' -pickle5 >= 0.0.11; python_version < '3.8' +ray[default] >= 2.0.0 diff --git a/setup.py b/setup.py index 52da512..d83baf5 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), packages=find_packages(exclude=("tests", "docs")), - python_requires=">=3.7", + python_requires=">=3.8", install_requires=install_requires, extras_require={"dev": dev_requires}, classifiers=[ @@ -33,9 +33,9 @@ "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Topic :: Software Development :: Libraries", ], )