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

Add experimental Python 3.8-dev to test with #337

Merged
merged 5 commits into from Aug 6, 2018
Merged

Add experimental Python 3.8-dev to test with #337

merged 5 commits into from Aug 6, 2018

Conversation

ericwb
Copy link
Member

@ericwb ericwb commented Jul 14, 2018

This patch adds the prerelease version of Python 3.8 to the testing.
Although Bandit is unlikely to have compile errors with any future
version, this step allows us to get a head start on any that may
arise.

Python 3.2+ deprecated cgi.escape() for html.escape(). And in 3.8
cgi.escape() has been completely removed. This patch conditional
makes use of html.escape() for 3.2 and higher.

Fixes issue #338

Signed-off-by: Eric Brown <browne@vmware.com>
This patch adds the prerelease version of Python 3.8 to the testing.
Although Bandit is unlikely to have compile errors with any future
version, this step allows us to get a head start on any that may
arise.
@ericwb ericwb requested a review from sigmavirus24 July 15, 2018 16:25
.travis.yml Outdated
@@ -25,6 +25,10 @@ matrix:
env: TOXENV=py37
dist: xenial
sudo: true
- python: 3.8-dev
env: TOXENV=py
Copy link
Member

Choose a reason for hiding this comment

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

Should this py38?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I tried py38, but apparently tox doesn't yet support py38. But the docs do say by using "py" it will inherit a tox env for whatever Python interpreter is used.

https://tox.readthedocs.io/en/latest/example/basic.html#a-simple-tox-ini-default-environments

Copy link
Member Author

Choose a reason for hiding this comment

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

I also opened an issue with tox: tox-dev/tox#912

@ghugo ghugo self-requested a review August 6, 2018 18:45
Copy link
Contributor

@ghugo ghugo left a comment

Choose a reason for hiding this comment

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

Looks like [0] merged, this should be good.

[0] tox-dev/tox#913

@ericwb ericwb merged commit 5ec55d5 into PyCQA:master Aug 6, 2018
@ericwb ericwb deleted the py38 branch August 6, 2018 20:09
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.

None yet

3 participants