Skip to content

Add Python 3.14 support#498

Open
bigjust wants to merge 1 commit intodevopshq:masterfrom
ibmstorage:python314
Open

Add Python 3.14 support#498
bigjust wants to merge 1 commit intodevopshq:masterfrom
ibmstorage:python314

Conversation

@bigjust
Copy link
Copy Markdown

@bigjust bigjust commented May 8, 2026

Python 3.14 removed glob._Globber and changed pathlib.Path.init() behavior, causing import and runtime errors. This commit adds support for Python 3.14 while maintaining backward compatibility.

Changes:

  • Check for glob._Globber existence before using it (Python 3.14 removed it)
  • Filter custom kwargs in init() before passing to parent class
  • Add fallback glob() implementation for Python 3.14 using iterdir()
  • Add py314 to tox test environments
  • Add Python 3.14 classifier to setup.py

All 62 unit tests pass on Python 3.14.

Fixes compatibility with Python 3.14 while maintaining support for Python 3.8-3.13.

Resolves: #492

Python 3.14 removed glob._Globber and changed pathlib.Path.__init__()
behavior, causing import and runtime errors. This commit adds support
for Python 3.14 while maintaining backward compatibility.

Changes:
- Check for glob._Globber existence before using it (Python 3.14 removed it)
- Filter custom kwargs in __init__() before passing to parent class
- Add fallback glob() implementation for Python 3.14 using iterdir()
- Add py314 to tox test environments
- Add Python 3.14 classifier to setup.py

All 62 unit tests pass on Python 3.14.

Fixes compatibility with Python 3.14 while maintaining support for
Python 3.8-3.13.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

In Python 3.14, glob module renamed _Globber internal class to _GlobberBase

1 participant