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 PyPy ssl.py to Cryptography unittests. #4367

Closed
amauryfa opened this issue Jul 23, 2018 · 6 comments
Closed

Add PyPy ssl.py to Cryptography unittests. #4367

amauryfa opened this issue Jul 23, 2018 · 6 comments
Labels

Comments

@amauryfa
Copy link
Contributor

Commit ce6fe07 removed "unused BIO bindings", but PyPy's own implementation of the ssl module uses the BIO_set_nbio function, and probably others in the same area.

Currently I cannot update PyPy with the latest version of Cryptography.

There is a Travis environment named "pypy3.5-5.10.1", could we add a test that the current version of Cryptography can be used to rebuild the _ssl module? This executes quickly, and certainly does not need a full PyPy translation. In my local client I do:

$ cd lib_pypy; ../pypy3-c _build_ssl.py; cd ..
$ ./pypy3-c -m test test_ssl
@alex
Copy link
Member

alex commented Jul 23, 2018

Adding tests for this would be outstanding!

Can you send a PR for this? All you should need to do is add a new environment to .travis.yml (it should be one of the DOWNSTREAM builds), and then script it in .travis/run.sh.

@alex alex added the testing label Aug 29, 2018
@mattip
Copy link

mattip commented Mar 25, 2019

@amauryfa how does _build_ssl.py pull in the latest version of cryptography?

@mattip
Copy link

mattip commented May 26, 2019

It doesn't seem like .travis/run.sh is the proper thing to do, it does

# sets up a virtualenv 
$downstream_script install
pip install .
$downstream_script run

where we need to

#set up a clean pypy, i.e. in pypy2
cp -r src/_cffi_src pypy2/lib_pypy/_cffi_ssl
(cd pypy2/lib_pypy; ../bin/pypy _build_ssl.py)
pypy2/bin/pypy2 pypy2/lib-python/2.7/test/test_ssl.py

@alex
Copy link
Member

alex commented May 26, 2019 via email

@mattip
Copy link

mattip commented May 26, 2019

Maybe not, you need some files from lib_pypy: _build_ssl.py, _ssl/__init__.py and the _cffi_ssl/_stdssl directory, maybe some others

@reaperhulk
Copy link
Member

We're two years in and no action so I'm going to go ahead and close this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

4 participants