pendulum icon indicating copy to clipboard operation
pendulum copied to clipboard

3.13 support

Open raphaelauv opened this issue 1 year ago • 7 comments

  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] I have searched the documentation and believe that my question is not covered.

Feature Request

Hi, an official support of python 3.13, thanks

raphaelauv avatar Sep 11 '24 11:09 raphaelauv

Is Pendulum incompatible right now?

Secrus avatar Sep 22 '24 15:09 Secrus

There are no Python 3.13 wheels provided. That’s the least I can say. Releasing a new version on PyPI will provide a 3.13 wheel. Python 3.13 stable has been released on October 7th!

M5oul avatar Sep 26 '24 17:09 M5oul

3.13 is released, hopefully a 3.13 wheel can be provided soon. I don't want to install Rust to use Python ;-)

ericfrederich avatar Oct 08 '24 15:10 ericfrederich

@sdispater Is it possible to get this in, please?

ollz272 avatar Oct 10 '24 14:10 ollz272

May be @Secrus?

M5oul avatar Oct 11 '24 04:10 M5oul

@ericfrederich @ollz272 @M5oul see https://github.com/sdispater/pendulum/issues/590#issuecomment-2405924505

edgarrmondragon avatar Oct 11 '24 04:10 edgarrmondragon

Some slightly bad news here. While the tests are passing with Python 3.12 the tests do not pass on 3.13.

Python 3.13 removed uuid._load_system_functions which is called by time-machine which pendulum depends on.

Two ways of fixing this.

1: poetry update time-machine which updates time-machine from 2.13.0 -> 2.15.0 where the call is gated based on sys.version_info. 2: bump minimum version to 3.9 which would update time-machine to 2.16.0 where they also dropped 3.8 support and the call is removed

ericfrederich avatar Oct 16 '24 19:10 ericfrederich

tbh. it is hard to say why time-machine is in the dependencies. its only use is for tests, still this stuff is import into main __init__. or am I missing something?

rudolfix avatar Oct 24 '24 13:10 rudolfix

Are you still depending upon pendulum (the python library that requires rust to install), here is the PR how I removed the dependency upon it for Kiota.

It was quite easy since most functionality we were using is now supported by by Python itself. Actually the code we used is replaced by this code https://github.com/microsoft/kiota-python/blob/e9840dfd9acf75292e5c1cff3277a026a9a49140/packages/abstractions/kiota_abstractions/date_utils.py

https://github.com/microsoft/kiota-python/pull/450/files

svrooij avatar Jan 17 '25 20:01 svrooij

Are there any plans for dropping the python 3.8 support and updating, so it would passing on python 3.13?

racinmat avatar Feb 28 '25 18:02 racinmat

👀

astr0gator avatar Mar 14 '25 08:03 astr0gator

Could we please get the new version released on pypi? @Secrus @ashb Thanks.

racinmat avatar Apr 07 '25 15:04 racinmat

@racinmat yes, the plan is to release it soon, we just want to review some things before the release.

Secrus avatar Apr 07 '25 20:04 Secrus