Skip to content

Drop Python 2.7, 3.7, 3.8 support #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Drop Python 2.7, 3.7, 3.8 support #67

wants to merge 3 commits into from

Conversation

Copilot
Copy link

@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
.coveragerc Outdated
@@ -11,5 +11,5 @@ exclude_lines =
# No need to test __repr__
def __repr__

# Python 2/3 compatibility
# Import fallbacks
except ImportError
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot this is no longer needed once the compatibility imports are gone.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, removed the obsolete 'except ImportError' exclusion since there are no compatibility imports remaining in the codebase. Fixed in 4f12e7c.

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
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