diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6549ce3..d5bbaa5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -31,7 +31,7 @@ jobs: with: python-version: ${{ env.PYTHON_VERSION }} - name: Install dependencies - run: pip install -r requirements.txt + run: pip install . - name: Install check dependencies run: pip install black mypy pandas-stubs - name: black @@ -47,8 +47,6 @@ jobs: - uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} - - name: Install dependencies - run: pip install -r requirements.txt && pip install pytest - name: Build wheel uses: PyO3/maturin-action@v1 with: @@ -57,6 +55,8 @@ jobs: sccache: "true" - name: Install wheel run: pip install dist/*.whl + - name: Install test dependencies + run: pip install pytest - name: Run tests run: pytest @@ -80,9 +80,6 @@ jobs: with: python-version: ${{ env.PYTHON_VERSION }} - - name: Install requirements - run: pip install -r requirements.txt - - name: Set Rust target for aarch64 if: matrix.architecture == 'aarch64' id: target diff --git a/README.md b/README.md index 8dce2d2..d05ece7 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,9 @@ ## Installation -`carefree-pyo3` has some prerequisites, the easiest way to install them is to use `requirements.txt`: - -```bash -pip install -r requirements.txt -``` - -After that, simply install `carefree-pyo3` with `pip`: +`carefree-pyo3` requires: +- Python 3.8 or higher. +- `numpy < 2.x`, because currently rust numpy doesn't support numpy 2.x. ```bash pip install carefree-pyo3 diff --git a/pyproject.toml b/pyproject.toml index 3060a18..eec3ead 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,11 +5,17 @@ build-backend = "maturin" [project] name = "carefree-pyo3" requires-python = ">=3.8" +dependencies = [ + "numpy==1.24.4", + "pandas", + "pydantic", +] classifiers = [ "Programming Language :: Rust", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] dynamic = ["version"] + [tool.maturin] features = ["pyo3/extension-module"] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 9ffe0e0..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -numpy==1.24.4 -pandas -pydantic