Skip to content

Commit f901b8b

Browse files
committed
Switch from pipenv to nox
1 parent a9e75e5 commit f901b8b

File tree

9 files changed

+21
-149
lines changed

9 files changed

+21
-149
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
- uses: actions-rs/toolchain@v1
4242
with:
4343
toolchain: stable
44-
- run: pip install pipenv
45-
- run: pipenv install --dev
46-
- run: pipenv run maturin develop
47-
- run: pipenv run pytest -v tests
44+
- uses: Swatinem/rust-cache@v1
45+
- run: python3 -m pip install nox
46+
- run: nox -s test-${{ matrix.python-version }}

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,3 @@ futures = "0.3.5"
2222
[dependencies.pyo3]
2323
version = "0.15.1"
2424
features = ["extension-module"]
25-
26-
[package.metadata.maturin]
27-
requires-python = ">=3.7"
28-
project-url = { Source = "https://github.com/quickwit-inc/tantivy-py" }

Pipfile

Lines changed: 0 additions & 12 deletions
This file was deleted.

Pipfile.lock

Lines changed: 0 additions & 109 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,12 @@ only supports python3.
2323
# Development
2424

2525
Setting up a development environment can be done in a virtual environment using
26-
`pipenv` or using local packages using the provided `Makefile`.
26+
[`nox`](https://nox.thea.codes) or using local packages using the provided `Makefile`.
2727

28-
For the `pipenv` setup install the virtual environment and build the bindings using:
28+
For the `nox` setup install the virtual environment and build the bindings using:
2929

30-
pipenv install --dev
31-
pipenv run maturin develop
32-
33-
After the bindings are build, the tests can be run using:
34-
35-
pipenv run python -m pytest
30+
python3 -m pip install nox
31+
nox
3632

3733
For the `Makefile` based setup run:
3834

noxfile.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import nox
2+
3+
4+
@nox.session(python=["3.7", "3.8", "3.9", "3.10"])
5+
def test(session):
6+
session.install("-rrequirements-dev.txt")
7+
session.install("-e", ".", "--no-build-isolation")
8+
session.run("pytest")

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
[build-system]
22
requires = ["maturin"]
33
build-backend = "maturin"
4+
5+
[project]
6+
name = "tantivy"
7+
requires-python = ">=3.7"

requirements-dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
maturin
2+
pytest>=4.0

tox.ini

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)