mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
* attempt to workaround downstream package testing situation (#7725) * attempt to workaround downstream package testing situation * Downgrade OpenSSL (in prep for bumping it shortly)
This commit is contained in:
parent
5b12ac8fb7
commit
39f8011568
1 changed files with 23 additions and 6 deletions
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
|
|
@ -28,16 +28,16 @@ jobs:
|
|||
PYTHON:
|
||||
- {VERSION: "3.10", TOXENV: "flake"}
|
||||
- {VERSION: "3.10", TOXENV: "rust"}
|
||||
- {VERSION: "3.10", TOXENV: "docs", OPENSSL: {TYPE: "openssl", VERSION: "3.0.6"}}
|
||||
- {VERSION: "3.10", TOXENV: "docs", OPENSSL: {TYPE: "openssl", VERSION: "3.0.5"}}
|
||||
- {VERSION: "pypy-3.7", TOXENV: "pypy3-nocoverage"}
|
||||
- {VERSION: "pypy-3.8", TOXENV: "pypy3-nocoverage"}
|
||||
- {VERSION: "pypy-3.9", TOXENV: "pypy3-nocoverage"}
|
||||
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "openssl", VERSION: "1.1.0l"}}
|
||||
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "openssl", VERSION: "1.1.1r"}}
|
||||
- {VERSION: "3.10", TOXENV: "py310-ssh", OPENSSL: {TYPE: "openssl", VERSION: "1.1.1r"}}
|
||||
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "openssl", VERSION: "1.1.1r", CONFIG_FLAGS: "no-engine no-rc2 no-srtp no-ct no-psk"}}
|
||||
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "openssl", VERSION: "3.0.6"}}
|
||||
- {VERSION: "3.10", TOXENV: "py310", TOXARGS: "--enable-fips=1", OPENSSL: {TYPE: "openssl", CONFIG_FLAGS: "enable-fips", VERSION: "3.0.6"}}
|
||||
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "openssl", VERSION: "1.1.1q"}}
|
||||
- {VERSION: "3.10", TOXENV: "py310-ssh", OPENSSL: {TYPE: "openssl", VERSION: "1.1.1q"}}
|
||||
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "openssl", VERSION: "1.1.1q", CONFIG_FLAGS: "no-engine no-rc2 no-srtp no-ct no-psk"}}
|
||||
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "openssl", VERSION: "3.0.5"}}
|
||||
- {VERSION: "3.10", TOXENV: "py310", TOXARGS: "--enable-fips=1", OPENSSL: {TYPE: "openssl", CONFIG_FLAGS: "enable-fips", VERSION: "3.0.5"}}
|
||||
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "libressl", VERSION: "3.1.5"}}
|
||||
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "libressl", VERSION: "3.2.7"}}
|
||||
- {VERSION: "3.10", TOXENV: "py310", OPENSSL: {TYPE: "libressl", VERSION: "3.3.6"}}
|
||||
|
|
@ -492,6 +492,23 @@ jobs:
|
|||
- run: pip install .
|
||||
env:
|
||||
CARGO_TARGET_DIR: ${{ format('{0}/src/rust/target/', github.workspace) }}
|
||||
# cryptography main has a version of "(X+1).0.0.dev1" where X is the
|
||||
# most recently released major version. A package used by a downstream
|
||||
# may depend on cryptography <=X. If you use entrypoints stuff, this can
|
||||
# lead to runtime errors due to version incompatibilities. Rename the
|
||||
# dist-info directory to pretend to be an older version to "solve" this.
|
||||
- run: |
|
||||
import json
|
||||
import pkg_resources
|
||||
import shutil
|
||||
import urllib.request
|
||||
|
||||
d = pkg_resources.get_distribution("cryptography")
|
||||
with urllib.request.urlopen("https://pypi.org/pypi/cryptography/json") as r:
|
||||
latest_version = json.load(r)["info"]["version"]
|
||||
new_path = d.egg_info.replace(d.version, latest_version)
|
||||
shutil.move(d.egg_info, new_path)
|
||||
shell: python
|
||||
- run: ./.github/downstream.d/${{ matrix.DOWNSTREAM }}.sh run
|
||||
|
||||
docs-linkcheck:
|
||||
|
|
|
|||
Loading…
Reference in a new issue