Skip to content

Commit

Permalink
🔧 Fix PyPy 3.8 pipeline (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ousret authored Dec 23, 2024
1 parent 0823385 commit 4a9d322
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 2 additions & 4 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ python-socks==2.4.4
pytest>=7.4.4,<9
pytest-timeout>=2.3.1,<3
trustme>=0.9.0,<2
# We have to install at most cryptography 39.0.2 for PyPy<7.3.10
# versions of Python 3.7, 3.8, and 3.9.
cryptography==39.0.2; implementation_name=="pypy" and implementation_version<="7.3.11"
cryptography==42.0.5; implementation_name!="pypy" or implementation_version>"7.3.11"
cryptography<40.0.0; python_version <= '3.8'
cryptography<44; python_version > '3.8'
backports.zoneinfo==0.2.1; python_version<"3.9"
tzdata==2024.2; python_version<"3.8"
towncrier==21.9.0
Expand Down
9 changes: 4 additions & 5 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ def traefik_boot(
if not os.path.exists("./traefik/httpbin.local.pem"):
session.log("Prepare fake certificates for our Traefik server...")

session.install("trustme")

session.run(
*[
"python",
Expand Down Expand Up @@ -185,10 +183,11 @@ def tests_impl(
byte_string_comparisons: bool = False,
tracemalloc_enable: bool = False,
) -> None:
# Install deps and the package itself.
session.install("-U", "pip", "setuptools", silent=False)
session.install("-r", "dev-requirements.txt", silent=False)

with traefik_boot(session, *session.posargs):
# Install deps and the package itself.
session.install("-U", "pip", "setuptools", silent=False)
session.install("-r", "dev-requirements.txt", silent=False)
session.install(f".[{extras}]", silent=False)

# Show the pip version.
Expand Down

0 comments on commit 4a9d322

Please sign in to comment.