From 9587f41f6193a1a71d2674442c5798813ff5d72c Mon Sep 17 00:00:00 2001 From: Hans Then Date: Thu, 16 Jan 2025 16:39:38 +0100 Subject: [PATCH] Install js_loader separately --- .github/workflows/test_code.yml | 3 +++ .github/workflows/test_selenium.yml | 4 ++++ requirements.txt | 1 - setup.py | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_code.yml b/.github/workflows/test_code.yml index ee75fe41e..b68e1a0ec 100644 --- a/.github/workflows/test_code.yml +++ b/.github/workflows/test_code.yml @@ -33,5 +33,8 @@ jobs: - name: Install folium from source run: python -m pip install -e . --no-deps --force-reinstall + - name: Install js_loader + run: python -m pip install js_loader + - name: Code tests run: python -m pytest -vv --ignore=tests/selenium diff --git a/.github/workflows/test_selenium.yml b/.github/workflows/test_selenium.yml index 34cd05430..494b0181f 100644 --- a/.github/workflows/test_selenium.yml +++ b/.github/workflows/test_selenium.yml @@ -30,6 +30,10 @@ jobs: shell: bash -l {0} run: python -m pip install -e . --no-deps --force-reinstall + - name: Install js_loader + shell: bash -l {0} + run: python -m pip install js_loader + - name: Selenium tests shell: bash -l {0} run: python -m pytest tests/selenium -vv diff --git a/requirements.txt b/requirements.txt index 88c2afce7..dff8e41f4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ branca>=0.6.0 jinja2>=2.9 -js_loader numpy requests xyzservices diff --git a/setup.py b/setup.py index a2cf34823..0ba839786 100644 --- a/setup.py +++ b/setup.py @@ -41,6 +41,7 @@ def walk_subpkg(name): with open("requirements.txt") as f: tests_require = f.readlines() install_requires = [t.strip() for t in tests_require] +install_requires.append("js_loader") setup( name="folium",