artifactory icon indicating copy to clipboard operation
artifactory copied to clipboard

Python 3.14 compatibility

Open Valentin-Sarthou opened this issue 2 months ago • 4 comments

Hello, I encountered an error when trying to use this module with Python 3.14, and I tried to suggest the appropriate changes in this PR.

Valentin-Sarthou avatar Oct 09 '25 16:10 Valentin-Sarthou

TypeError: PurePath.init() got an unexpected keyword argument 'auth'

Tests for py 3.14 failed :thinking:

allburov avatar Oct 10 '25 02:10 allburov

It seems that many changes have been made to pathlib between Python 3.13 and 3.14 (https://github.com/python/cpython/commit/f5ba74b81979b621e38be70ec3ddad1e7f1365ce), which seems to make the changes done in 32cdad0ffb2f9f27589baaf25988d09435921cd2 irrelevant with Python 3.14, especially these lines: https://github.com/devopshq/artifactory/blob/32cdad0ffb2f9f27589baaf25988d09435921cd2/artifactory.py#L1898-L1905 pathlib._abc.PathBase has been removed and kind of replaced by pathlib.types._ReadablePath, but I don't think _ReadablePath.glob() is a good replacement because it uses a hardcoded globber class _PathGlobber: https://github.com/python/cpython/blob/7cafd76a7fc6e52d93dd11e454a49c4dbebdf080/Lib/pathlib/types.py#L300-L314

The _globber attribute has been removed anyway in https://github.com/python/cpython/commit/f5ba74b81979b621e38be70ec3ddad1e7f1365ce, which makes the following lines also irrelevant with Python 3.14: https://github.com/devopshq/artifactory/blob/32cdad0ffb2f9f27589baaf25988d09435921cd2/artifactory.py#L1599-L1603

@allburov I'm not sure what's the best approach here, so maybe I'll leave this to you.

Valentin-Sarthou avatar Oct 10 '25 09:10 Valentin-Sarthou

Would love to see this fix reach artifactory-cleanup. :-)

sverrehu avatar Oct 14 '25 12:10 sverrehu

Related issue https://github.com/devopshq/artifactory/issues/492

mikaelol avatar Nov 12 '25 09:11 mikaelol

Hello, We are also using this package for our artifactory tasks and currently affected. Can you please update when this will be merged and release?

Mrizwanshaik avatar Dec 15 '25 10:12 Mrizwanshaik

@Mrizwanshaik have you tested the PR for you case, does it work?

I'll leave this to you

It is a problem :laughing: I'm happy to review and merge PR but don't have much time to investigate the issue :cry:

allburov avatar Dec 16 '25 03:12 allburov

@allburov

don't have much time to investigate the issue

Issue: Our bot is trying to bump python container to 3.14 in github workflow and we use the dohq-artifactory artifactory client package, which is currently not supported due to which validation is failing.

have you tested the PR for you case, does it work?

Yes I have tested the PR and it does work.

Mrizwanshaik avatar Dec 16 '25 15:12 Mrizwanshaik