Skip to content

Commit 46651fa

Browse files
ci: Install a compatible version of cryptography for pypy and pypy3 in travis config (#320)
1 parent 5fefd2b commit 46651fa

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

Diff for: .travis.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ python:
66
- "3.6"
77
# - "3.7" is handled in 'Test' job using xenial as Python 3.7 is not available for trusty.
88
# - "3.8" is handled in 'Test' job using xenial as Python 3.8 is not available for trusty.
9-
- "pypy"
10-
- "pypy3"
9+
# - "pypy"
10+
# - "pypy3"
1111
install: "pip install -r requirements/core.txt;pip install -r requirements/test.txt"
1212
script: "pytest --cov=optimizely"
1313
after_success:
@@ -61,7 +61,14 @@ jobs:
6161
SDK=python
6262
SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH
6363
FULLSTACK_TEST_REPO=ProdTesting
64-
64+
- stage: 'Test'
65+
python: "pypy"
66+
before_install:
67+
- pip install "cryptography>=1.3.4,<=3.1.1" # installing in before_install doesn't re-install the latest version of the same package in the next stage.
68+
- stage: 'Test'
69+
python: "pypy3"
70+
before_install:
71+
- pip install "cryptography>=1.3.4,<=3.1.1"
6572
- stage: 'Test'
6673
dist: xenial
6774
python: "3.7"

Diff for: README.md

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ To install:
3232

3333
pip install optimizely-sdk
3434

35+
Note:
36+
If you are running the SDK with PyPy or PyPy3 and you are experiencing issues, install this cryptography package **first** and then optimizely-sdk package:
37+
38+
pip install "cryptography>=1.3.4,<=3.1.1"
39+
3540
### Feature Management Access
3641

3742
To access the Feature Management configuration in the Optimizely

0 commit comments

Comments
 (0)