Skip to content

Commit

Permalink
test: downgrade python version to 3.9 for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
davhofer committed Aug 20, 2024
1 parent ba2a036 commit 535a1e4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-installation-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
test:
runs-on: ubuntu-latest
container:
image: davhofer/py2spack-spack-installation-test:latest
image: davhofer/py2spack-spack-installation-test-py3.9:latest

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
test:
runs-on: ubuntu-latest
container:
image: davhofer/py2spack-spack-installation-test:latest
image: davhofer/py2spack-spack-installation-test-py3.9:latest

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12
FROM python:3.9

# Install system dependencies
RUN apt-get update && \
Expand Down
7 changes: 5 additions & 2 deletions src/py2spack/package_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@
import dataclasses
import functools
import hashlib
import io
import re
from collections.abc import Hashable
from typing import Protocol
from typing import TYPE_CHECKING, Protocol

import requests
from packaging import version as vn

from py2spack import utils


if TYPE_CHECKING:
import io


TARBALL_ARCHIVE_FORMATS = [
".tar",
".tar.gz",
Expand Down

0 comments on commit 535a1e4

Please sign in to comment.