Skip to content

Refactor imports to support Python 3.11+ #16

@Phillyclause89

Description

@Phillyclause89

Refactor imports to support Python 3.11+

Description:

Currently, the project supports Python versions 3.7 - 3.10 but is not compatible with Python 3.11+ due to changes in the import system and other potential updates in Python's internal structures. Refactoring the imports and addressing compatibility issues will allow the project to run on Python 3.11, 3.12, and future versions.

Scope of Work:

  • Identify imports that are incompatible with Python 3.11+.
  • Update any __future__ imports or legacy dependencies that are no longer needed or supported in Python 3.11+.
  • Refactor relative and absolute imports to ensure compatibility.
  • Test the project thoroughly in Python 3.11 and Python 3.12 environments.
  • Update the documentation and installation instructions to reflect Python 3.11+ compatibility.

Acceptance Criteria:

  • The project runs without errors or warnings in Python 3.11+ environments, including Python 3.12.
  • All updated imports follow Python's best practices and are backward-compatible with Python 3.7+ (if possible).
  • Documentation is updated to indicate support for Python 3.11+.
  • Unit tests pass successfully in Python 3.11+ environments.

Additional Context (Optional):

  • Review Python 3.11 Release Notes and Python 3.12 Release Notes for changes affecting imports.
  • Related files: main.py, setup.py, and other modules with import statements.
  • Consider adding Python 3.11 and 3.12 to the CI pipeline for automated testing.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions