Skip to content

ci: Install a compatible version of cryptography for pypy and pypy3 in travis config - #320

Merged
Jae Kim (jaeopt) merged 6 commits into
masterfrom
sohail/pypifix
Mar 12, 2021
Merged

Jae Kim (jaeopt) merged 6 commits into
masterfrom
sohail/pypifix

Conversation

@msohailhussain

@msohailhussain Mirza Sohail Hussain (msohailhussain) commented Mar 4, 2021 •

Copy link
Copy Markdown
Contributor

Summary

Unit tests on Python pypy and pypy3 have been failing consistently for quite some time. On detailed investigation, cryptography package is required by the requests[security] module. Although the latest cryptography version does support pypy, it doesn't build for some reason.

Setting cryptography package to a static previous version revealed that Python 3.4 support has been dropped after cryptography 2.8.

Therefore, instead of modifying requirements file, we install the correct working version of cryptography in before_install phase of pyp build.

Test plan

All checks continue to pass.

Issues

@coveralls

Coveralls (coveralls) commented Mar 5, 2021 •

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 95.883% when pulling b6e5e38 on sohail/pypifix into 5fefd2b on master.

@oakbani Owais Akbani (oakbani) changed the title pypy fix - WIP ci: Install a compatible version of cryptography for pypy and pypy3 in travis config Mar 5, 2021
@msohailhussain
Mirza Sohail Hussain (msohailhussain) marked this pull request as ready for review March 5, 2021 18:20
Comment thread .travis.yml Outdated
- stage: 'Test'
python: "pypy"
before_install:
- pip install "cryptography>=1.3.4,<=3.1.1" # installing in before_install doesn't re-install a latest version of the same package in the next stage.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you fix grammatical error: Change "a latest version of the same" to "the latest version of the same".

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

done

Add comment to README about installing cryptography when using PyPy
Added additional explanation

@Mat001 Matjaz Pirnovar (Mat001) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jaeopt Jae Kim (jaeopt) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jaeopt
Jae Kim (jaeopt) merged commit 46651fa into master Mar 12, 2021
@jaeopt
Jae Kim (jaeopt) deleted the sohail/pypifix branch March 12, 2021 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants