Remove deploy dependencies from pyodide-build's pyproject.toml (#4752)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Gyeongjae Choi 2024-05-25 10:32:38 +09:00 committed by GitHub
parent b16552a660
commit 56ab5c4ebb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 10 additions and 13 deletions

View File

@ -507,7 +507,7 @@ jobs:
- run:
name: Install requirements
command: |
python3 -m pip install -e "./pyodide-build[deploy]"
python3 -m pip install -r requirements-deploy.txt
wget https://github.com/tcnksm/ghr/releases/download/v0.16.2/ghr_v0.16.2_linux_amd64.tar.gz
tar xzf ghr_v0.16.2_linux_amd64.tar.gz
@ -582,7 +582,7 @@ jobs:
- run:
name: Install requirements
command: |
python3 -m pip install -e "./pyodide-build[deploy]"
python3 -m pip install -r requirements-deploy.txt
- run:
name: Set PYODIDE_BASE_URL
command: |

View File

@ -33,8 +33,8 @@ jobs:
shell: bash -l {0}
run: |
mkdir test-results
cd pyodide-build && python3 -m pip install -e ".[test,deploy]" && cd ..
python3 -m pip install pytest-cov hypothesis pytz
cd pyodide-build && python3 -m pip install -e ".[test]" && cd ..
python3 -m pip install -r requirements.txt -r requirements-deploy.txt
- name: Run tests
shell: bash -l {0}
run: |

View File

@ -66,10 +66,6 @@ test = [
"pytest-httpserver",
"packaging",
]
deploy = [
"boto3",
"moto",
]
[tool.hatch]
version.path = "pyodide_build/__init__.py"

4
requirements-deploy.txt Normal file
View File

@ -0,0 +1,4 @@
# used to deploy files to s3
boto3
moto
typer

View File

@ -1,6 +1,4 @@
# build
cmake
ruamel.yaml
# lint
pre-commit
# testing

View File

@ -119,8 +119,7 @@ def test_interactive_console():
assert await get_result("") is None
assert await get_result("factorial(10)") == 3628800
assert await get_result("import pytz") is None
assert await get_result("pytz.utc.zone") == "UTC"
assert await get_result("import pathlib") is None
fut = shell.push("1+")
assert fut.syntax_check == "syntax-error"