Skip to content
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

WIP: Fix get_code_params for Python 3.10 #50

Closed
wants to merge 3 commits into from

Conversation

hodgestar
Copy link
Contributor

@hodgestar hodgestar commented Sep 17, 2021

In #43 and #37 it was reported that the arguments to code(...) have changed in Python 3.10. This affects the build_code_chunk and get_code_params functions in genshi.compat. build_code_chunk was fixed in #49. This PR is intended to fix get_code_params.

WIP: Currently this PR only attempts to get the tests to fail.

@hodgestar
Copy link
Contributor Author

hodgestar commented Sep 17, 2021

image

From Travis. So it looks like the transition to GitHub Actions will have to happen.

@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.6, 3.7, 3.8, 3.9, '3.10-dev', pypy2, pypy3]
python-version: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10-dev', '3.11-dev', pypy2, pypy3]
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Assuming we want to continue supporting Python 3.4/3.5 jun66j5/genshi@9f462c3 is a good approach. jun66j5/genshi@5908c14d should be replaced by pip install -e . or python setup.py develop though. Would you mind submitting a PR?

@hodgestar
Copy link
Contributor Author

I'm happy to drop CI for Python 3.4 and 3.5 for now and get_code_params was fixed elsewhere, so closing this PR.

@hodgestar hodgestar closed this Jan 6, 2022
@hodgestar hodgestar deleted the feature/fix-get-code-params-for-python-3.10 branch February 8, 2022 15:43
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.

3 participants