prefect icon indicating copy to clipboard operation
prefect copied to clipboard

Support Python 3.13

Open discdiver opened this issue 1 year ago • 1 comments

Describe the current behavior

Python 3.13.0 recently became the most recent stable release version.

Installing Prefect into a 3.13.0 venv environment on a Macbook with M1 chip fails with an asyncpg install error.

...

3 warnings and 13 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for asyncpg
  Building wheel for pendulum (pyproject.toml) ... done
  Created wheel for pendulum: filename=pendulum-3.0.0-cp313-cp313-macosx_11_0_arm64.whl size=350514 sha256=bc70f3c28d56df3f64ff89fb7d573bba8b5c31295a53e2f64c01844bd907aa82
  Stored in directory: /Users/jeffhale/Library/Caches/pip/wheels/1c/22/db/484e3a29f4de855955536bfaf64d8b319bc48296e56463b6c7
Successfully built pendulum
Failed to build asyncpg
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (asyncpg)

Describe the proposed behavior

When the libraries Prefect depends upon support 3.13, so should we. Table showing most popular package support for 3.13.

Then we should update the install docs and README.

Example Use

No response

Additional context

No response

discdiver avatar Oct 10 '24 18:10 discdiver

asyncpg added support for python 3.13 on version 0.30.0 (currently prefect 2.0 has the following: asyncpg >= 0.23, < 0.30.0 https://github.com/MagicStack/asyncpg/releases/tag/v0.30.0

itamark-ug avatar Nov 14 '24 14:11 itamark-ug

Any updates on this? Python 3.13 has been out for awhile now and it's a bummer that Prefect still doesn't support it 😔

anze3db avatar Mar 17 '25 18:03 anze3db

@anze3db yes, currently our dependency on pendulum is blocking us from upgrading unfortunately. We have a separate issue for tracking its removal here: https://github.com/PrefectHQ/prefect/issues/16910

cicdw avatar Mar 17 '25 22:03 cicdw

prefect support Python 3.13 now!

desertaxle avatar Apr 24 '25 18:04 desertaxle