Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented May 28, 2025

This PR removes support for Python 2.7, 3.7, and 3.8 as requested in the issue. These Python versions are outdated and no longer supported upstream.

Changes made:

Configuration updates:

  • setup.py: Updated python_requires from >=3.7 to >=3.9 and removed Python 3.7, 3.8 classifiers
  • .github/workflows/test.yaml: Removed Python 3.7 and 3.8 from the CI test matrix
  • doc/index.rst: Updated documentation to reflect "Python 3.9+" instead of "Python 2.7, 3.4+"

Code cleanup:

  • tests.py: Removed Python 2 compatibility code including:
    • from __future__ import unicode_literals import
    • Python 2/3 version checks in test_str_and_repr method
    • Unused sys import
  • .coveragerc: Updated comment from "Python 2/3 compatibility" to "Import fallbacks"

All tests continue to pass and the codebase is now cleaner without the legacy compatibility code.

Fixes #48.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@Copilot Copilot AI changed the title [WIP] Drop Python 2.7, 3.7, 3.8 support Drop Python 2.7, 3.7, 3.8 support May 28, 2025
@Copilot Copilot AI requested a review from stefankoegl May 28, 2025 09:28
Copilot finished work on behalf of stefankoegl May 28, 2025 09:28
Copilot finished work on behalf of stefankoegl May 28, 2025 09:39
@stefankoegl stefankoegl marked this pull request as ready for review May 28, 2025 09:40
@stefankoegl stefankoegl merged commit 9087321 into master Jun 10, 2025
5 checks passed
@stefankoegl stefankoegl deleted the copilot/fix-48 branch June 10, 2025 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop Python 2.7, 3.7, 3.8 support

2 participants