generated from jCloud/repository-template
Fails completely in Python <3.13 #66
Notifications
Total Time Spent: 10 minutes
jakob.scheid
10 minutes
No due date set.
Dependencies
No dependencies set.
Reference: jCloud/jcloud-docsgen#66
Reference in new issue
Block a user
Problem
When running
jcloud-docsgenin Python older than 3.13, it fails completely with aModuleNotFoundError: No module named 'typing_extensions'. As a result, users who use Python <3.13 cannot usejcloud-docsgenat all. This is a very big problem: We are limiting the user group to those who have Python 3.13 or newer and many users do not.In
src/jcloud_docsgen/utils.py, we try to importdeprecatedfromwarnings. Asdeprecatedis not available in version older than 3.13,typing_extensionsis used as a fallback and imported when the first import attempt for Python >3.13 fails.typing-extensions(typing_extensions) is a package which allows to use newer features in older Python versions. Since it is not included in the standard library, we need to add it as a project dependency. And that is the problem: There is notyping-extensionsdependency.Actual behavior
The tool fails in Python versions older than 3.13 as a dependency is missing.
Expected behavior
The tool runs in all Python versions.
Steps to reproduce
jcloud-docsgenif it is not already installedjcloud-docsgen