Commit Graph

318 Commits (fa21d7738b61468e448a23e2758e6d2219cf1af1)

Author SHA1 Message Date
Damir Jelić fa682ab213 tantivy: Add a tox.ini file. 2019-08-08 14:22:23 +02:00
Damir Jelić de7e660313 tantivy: Disable a clippy warning about new not returning self.
The new() method using pyo3 does not return self, pyo3 handles some
python magic for us instead.

Disable the clippy warning about not returning self in new since it does
not apply to us.
2019-08-08 13:55:40 +02:00
Damir Jelić 3f09fd38c8 tantivy: Fix some clippy warnings. 2019-08-08 13:55:19 +02:00
Damir Jelić 41a6bb3109 Merge branch 'more_tests' 2019-08-03 13:56:36 +02:00
Paul Masurel d785822225
Merge pull request #8 from tantivy-search/poljar/packaging_improvements
Packaging improvements
2019-08-03 20:48:02 +09:00
petr-tik b911c2f353 Replace setup_class methods with pytest.fixture 2019-08-03 12:28:12 +01:00
Damir Jelić b90b7dd610 setup.py: Add a description and long description.
This adds a short description and puts the contents from the README into
the long description.

This will be useful for packages that will end up on pypi.
2019-08-03 12:17:04 +02:00
Damir Jelić 7afe8905c0 setup.py: Bump the version to be the same as tantivy. 2019-08-03 11:52:23 +02:00
Damir Jelić 2745c03384 Cargo.toml: Use the same version as the core tantivy lib.
This closes #6.
2019-08-03 11:51:55 +02:00
petr-tik bd93e4ca75 use meta.json to programmatically check last opstamp and num_docs 2019-08-03 00:55:31 +01:00
petr-tik b2a769f1d7 Test reading an index from dir
Created and committed an index dir with 3 documents
2019-08-03 00:39:02 +01:00
petr-tik 9864053cf8 Tests
added tests for AND BooleanQuery and ValueError in case of a malformed query

Moved document index setup into a classmethod.
classmethod will setup once at the start,
giving all test methods attributes to access.

I think it cuts on boilerplate in each test method
2019-08-02 22:32:08 +01:00
Damir Jelić 82dbd452ea Cargo.toml: Switch to a cdylib.
pyo3-pack requires the library to be a cdylib. This patch allows us to
use pyo3-pack to build and publish tantivy-py using pyo3-pack.
2019-08-02 17:21:13 +02:00
Paul Masurel f3ea129fa7 Fixing build. 2019-08-01 17:22:40 +09:00
Paul Masurel 9158a4fd7d
Merge pull request #1 from matrix-org/initial-bindings
Initial python bindings implementation.
2019-08-01 16:05:15 +09:00
Damir Jelić 5d92452604 README: Rename the project to tantivy-py and mention that the are py3 only. 2019-06-06 12:12:57 +02:00
Damir Jelić 5ea790518b Initial python bindings implementation. 2019-06-04 11:09:58 +02:00
Paul Masurel 5f4e1ef253
Initial commit 2019-06-04 17:45:07 +09:00