Skip to content

Commit 39f8011

Browse files
authored
attempt to workaround downstream package testing situation (#7725) (#7757)
* attempt to workaround downstream package testing situation (#7725) * attempt to workaround downstream package testing situation * Downgrade OpenSSL (in prep for bumping it shortly)
1 parent 5b12ac8 commit 39f8011

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ jobs:
2828
PYTHON:
2929
- {VERSION: "3.10", TOXENV: "flake"}
3030
- {VERSION: "3.10", TOXENV: "rust"}
31-
- {VERSION: "3.10", TOXENV: "docs", OPENSSL: {TYPE: "openssl", VERSION: "3.0.6"}}
31+
- {VERSION: "3.10", TOXENV: "docs", OPENSSL: {TYPE: "openssl", VERSION: "3.0.5"}}
3232
- {VERSION: "pypy-3.7", TOXENV: "pypy3-nocoverage"}
3333
- {VERSION: "pypy-3.8", TOXENV: "pypy3-nocoverage"}
3434
- {VERSION: "pypy-3.9", TOXENV: "pypy3-nocoverage"}
3535
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "openssl", VERSION: "1.1.0l"}}
36-
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "openssl", VERSION: "1.1.1r"}}
37-
- {VERSION: "3.10", TOXENV: "py310-ssh", OPENSSL: {TYPE: "openssl", VERSION: "1.1.1r"}}
38-
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "openssl", VERSION: "1.1.1r", CONFIG_FLAGS: "no-engine no-rc2 no-srtp no-ct no-psk"}}
39-
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "openssl", VERSION: "3.0.6"}}
40-
- {VERSION: "3.10", TOXENV: "py310", TOXARGS: "--enable-fips=1", OPENSSL: {TYPE: "openssl", CONFIG_FLAGS: "enable-fips", VERSION: "3.0.6"}}
36+
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "openssl", VERSION: "1.1.1q"}}
37+
- {VERSION: "3.10", TOXENV: "py310-ssh", OPENSSL: {TYPE: "openssl", VERSION: "1.1.1q"}}
38+
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "openssl", VERSION: "1.1.1q", CONFIG_FLAGS: "no-engine no-rc2 no-srtp no-ct no-psk"}}
39+
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "openssl", VERSION: "3.0.5"}}
40+
- {VERSION: "3.10", TOXENV: "py310", TOXARGS: "--enable-fips=1", OPENSSL: {TYPE: "openssl", CONFIG_FLAGS: "enable-fips", VERSION: "3.0.5"}}
4141
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "libressl", VERSION: "3.1.5"}}
4242
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "libressl", VERSION: "3.2.7"}}
4343
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "libressl", VERSION: "3.3.6"}}
@@ -492,6 +492,23 @@ jobs:
492492
- run: pip install .
493493
env:
494494
CARGO_TARGET_DIR: ${{ format('{0}/src/rust/target/', github.workspace) }}
495+
# cryptography main has a version of "(X+1).0.0.dev1" where X is the
496+
# most recently released major version. A package used by a downstream
497+
# may depend on cryptography <=X. If you use entrypoints stuff, this can
498+
# lead to runtime errors due to version incompatibilities. Rename the
499+
# dist-info directory to pretend to be an older version to "solve" this.
500+
- run: |
501+
import json
502+
import pkg_resources
503+
import shutil
504+
import urllib.request
505+
506+
d = pkg_resources.get_distribution("cryptography")
507+
with urllib.request.urlopen("https://pypi.org/pypi/cryptography/json") as r:
508+
latest_version = json.load(r)["info"]["version"]
509+
new_path = d.egg_info.replace(d.version, latest_version)
510+
shutil.move(d.egg_info, new_path)
511+
shell: python
495512
- run: ./.github/downstream.d/${{ matrix.DOWNSTREAM }}.sh run
496513

497514
docs-linkcheck:

0 commit comments

Comments
 (0)