-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add support for Python 3.10 and 3.11, drop EOL 3.6 #67
Conversation
@@ -72,7 +72,7 @@ def get_tags( | |||
parse_result = urlparse(config["html_baseurl"]) | |||
|
|||
if config["html_baseurl"] is None: | |||
raise EnvironmentError("ReadTheDocs did not provide a valid canonical URL!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran https://github.com/asottile/pyupgrade/ to upgrade to modern syntax:
According to the Python docs, EnvironmentError
is kept for compatibility with previous versions; starting from Python 3.3, it's an alias of OSError
. So we can use OSError
instead.
Can this be closed in favor of #70 then? |
Yep, closing in favour of #70. |
Test 3.10 and 3.11, and add Trove classifiers.
Drop 3.6, EOL since 2021-09-03.
Also bump various versions: