diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 87c6bc5..489b547 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -25,11 +25,11 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip python -m venv env source env/bin/activate + python -m pip install --upgrade pip pip install setuptools - pip install numpy cython flake8 pytest + pip install cython flake8 pytest python setup.py install - name: Lint with flake8 run: | diff --git a/setup.py b/setup.py index 77fb87d..3c61e28 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,8 @@ readme = readme_file.read() requirements = [ - "Click", "Pillow", "numpy; python_version>='3.9'", + "Click", "Pillow", "numpy; python_version>='3.10'", + "numpy<2.1.0; python_version>='3.9' and python_version<'3.10'" "numpy<1.25.0; python_version>='3.8' and python_version<'3.9'" ]