Skip to content

Commit

Permalink
🔧Integrated dependencies into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
carefree0910 committed Sep 19, 2024
1 parent 0c5c559 commit c5a3836
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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

Expand All @@ -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
Expand Down
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

0 comments on commit c5a3836

Please sign in to comment.