Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Setup
run: conda install -c conda-forge pip numpy "pytest<9.1" libspatialindex=${{ matrix.sidx-version }} -y
run: conda install -c conda-forge pip numpy pytest libspatialindex=${{ matrix.sidx-version }} -y

- name: Install
run: pip install -e .
Expand Down Expand Up @@ -70,13 +70,10 @@ jobs:
allow-prereleases: true

- name: Setup
run: |
sudo apt-get -y install libspatialindex-c6
pip install --upgrade pip
pip install numpy "pytest<9.1"
run: sudo apt-get -y install libspatialindex-c6

- name: Build
run: pip install --user .
- name: Install
run: pip install . --group test

- name: Test with pytest
run: pytest -Werror -v --doctest-modules rtree tests
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ lib
wheelhouse
.vscode/
*venv*
*.lock
9 changes: 4 additions & 5 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ build:
os: ubuntu-lts-latest
tools:
python: latest
jobs:
install:
- pip install --upgrade pip
- pip install --group docs

# Build documentation in the docs/source directory with Sphinx
sphinx:
Expand All @@ -21,8 +25,3 @@ sphinx:
# Optionally build your docs in additional formats such as PDF
formats:
- pdf

# Declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
2 changes: 0 additions & 2 deletions docs/requirements.txt

This file was deleted.

16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ dynamic = ["version"]
Documentation = "https://rtree.readthedocs.io"
Repository = "https://github.com/Toblerity/rtree"

[dependency-groups]
dev = [
"coverage",
"pre-commit",
"tox>=4.22",
{include-group = "test"},
]
docs = [
"sphinx>=5.0",
"sphinx-issues",
]
test = [
"numpy",
"pytest>=7.0",
]

[tool.setuptools]
packages = ["rtree"]
zip-safe = false
Expand Down
7 changes: 3 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
[tox]
requires =
tox>=4
tox>=4.22
env_list = py{310,311,312,313,314}

[testenv]
description = run unit tests
deps =
pytest>=7.0,<9.1
numpy
dependency_groups =
test
install_command =
python -I -m pip install --only-binary=:all: {opts} {packages}
ignore_errors = True
Expand Down
Loading