Skip to content

Commit

Permalink
! pyyaml 5.4.1 workaround for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksei Rubashev committed Jul 23, 2024
1 parent 6d8144f commit fdeabc5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ jobs:
# PyYaml 5.4.1 requires cython < 3.0.0 for Python 2.7
- name: Install dependencies
run: |
python -m pip install "cython<3.0.0"
python -m pip install --no-build-isolation pyyaml==5.4.1
python -m pip install --no-deps -r requirements.txt
echo "cython<3" > /tmp/constraint.txt
PIP_CONSTRAINT=/tmp/constraint.txt python -m pip install --no-deps -r requirements.txt
- name: Create .env
run: |
Expand Down
18 changes: 16 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pre-commit = [
{ version = "1.21.0", python = "<3" }
]
ruff = { version = "0.5.4", python = ">3" }
wheel = { version = "0.37.1", python = "<3" }

[[tool.poetry.source]]
name = "pypi"
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@ urllib3==1.26.19 ; python_full_version >= "2.7.18" and python_version < "3.0.dev
urllib3==2.2.2 ; python_version >= "3.9" and python_version < "4.0"
virtualenv==20.15.1 ; python_full_version >= "2.7.18" and python_version < "3.0.dev0"
virtualenv==20.26.3 ; python_version >= "3.9" and python_version < "4.0"
wheel==0.37.1 ; python_full_version >= "2.7.18" and python_version < "3.0.dev0"
zipp==1.2.0 ; python_full_version >= "2.7.18" and python_version < "3.0.dev0"
zipp==3.19.2 ; python_version >= "3.9" and python_version < "3.10"

0 comments on commit fdeabc5

Please sign in to comment.