Skip to content

Commit

Permalink
Merge pull request #29 from mithro/ci-python-version
Browse files Browse the repository at this point in the history
Use Amaranth from git for newer Python versions
  • Loading branch information
antonblanchard authored Sep 7, 2023
2 parents 1891c86 + 8674fb5 commit 73680e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/create_venv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
python3 -m venv venv
source venv/bin/activate
python3 -c 'import sys; print("Python version:", sys.version)'

# Until amaranth 0.4 is published, Pythons newer than 3.9 need to install from git.
if [ "$(python3 -c 'import sys; print(sys.version_info[1])')" -gt 9 ]; then
echo "Using Amaranth from GitHub as Python >3.9 (remove after Amaranth 0.4 is released)."
pip3 install "git+https://github.com/amaranth-lang/amaranth.git#egg=amaranth"
fi

pip3 install .
pip3 install unittest-parallel
pip3 install flake8
Expand Down

0 comments on commit 73680e3

Please sign in to comment.