Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b1e2c4

Browse files
authored
SNOW-669945 Bump cryptography version to <39.0.0 (snowflakedb#1266)
* SNOW-669945 Bump cryptography version to <39.0.0 Description This version bump is to avoid version conflict with pyOpenSSL Testing Added a new workflow test to run pip-compile * setup python * move test to tox and merge pip install in fips * Add merge gate using tox
1 parent 530d441 commit 1b1e2c4

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

.github/workflows/build_test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,25 @@ jobs:
4646
- name: Run fix_lint
4747
run: python -m tox -e fix_lint
4848

49+
dependency:
50+
name: Check dependency
51+
runs-on: ubuntu-latest
52+
strategy:
53+
matrix:
54+
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
55+
steps:
56+
- uses: actions/checkout@v2
57+
- name: Set up Python
58+
uses: actions/setup-python@v2
59+
with:
60+
python-version: ${{ matrix.python-version }}
61+
- name: Display Python version
62+
run: python -c "import sys; print(sys.version)"
63+
- name: Install tox
64+
run: python -m pip install tox tox-external-wheels
65+
- name: Run tests
66+
run: python -m tox -e dependency
67+
4968
build:
5069
needs: lint
5170
strategy:

ci/test_fips.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ CONNECTOR_WHL="$(ls $CONNECTOR_DIR/dist/*cp38*manylinux2014*.whl | sort -r | hea
1111
python3.8 -m venv fips_env
1212
source fips_env/bin/activate
1313
pip install -U setuptools pip
14-
pip install "${CONNECTOR_WHL}[pandas,secure-local-storage,development]"
15-
pip install "cryptography<3.3.0" --force-reinstall --no-binary cryptography
14+
pip install "${CONNECTOR_WHL}[pandas,secure-local-storage,development]" "cryptography<3.3.0" --force-reinstall --no-binary cryptography
1615

1716
echo "!!! Environment description !!!"
1817
echo "Default installed OpenSSL version"

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ packages = find_namespace:
4444
install_requires =
4545
asn1crypto>0.24.0,<2.0.0
4646
cffi>=1.9,<2.0.0
47-
cryptography>=3.1.0,<37.0.0
47+
cryptography>=3.1.0,<39.0.0
4848
oscrypto<2.0.0
4949
pyOpenSSL>=16.2.0,<23.0.0
5050
pycryptodomex!=3.5.0,>=3.2,<4.0.0

tox.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,15 @@ skip_install = True
138138
commands = pre-commit run --all-files
139139
python -c 'import pathlib; print("hint: run \{\} install to add checks as pre-commit hook".format(pathlib.Path(r"{envdir}") / "bin" / "pre-commit"))'
140140

141+
[testenv:dependency]
142+
description = Check if there is conflicting dependency
143+
deps =
144+
{[testenv]deps}
145+
pip-tools
146+
skip_install = True
147+
commands = pip-compile setup.py
148+
depends = py37, py38, py39, py310
149+
141150
[pytest]
142151
log_level = info
143152
addopts = -ra --strict-markers

0 commit comments

Comments
 (0)