Commit graph

584 commits

Author SHA1 Message Date
Alejandro R. Sedeño
aa3425e0e9
Bump Xapian version to 1.4.19 2022-03-19 11:41:39 +01:00
AJ Slater
870b48dfcd
Management Command Database Locking 2022-02-10 20:44:21 +01:00
Alejandro R. Sedeño
3fc4cfe46d GitHub Actions: rework test matrix
Drop Django 3.1 (EoL)
Add Django 4.0
Add Python 3.8 (Minimum version for Django 4.0)
Add Python 3.10 to the general matrix, not just for Djagno 3.2

Exclude Django 2.2 from Python 3.10 testing.
Exclude Django 4.0 from Python 3.7 testing.

Django 2.2 will EoL in a little over a month, at which point we can
trim the matrix down again by dropping it and Python 3.9 if we want
to.
2022-02-08 08:17:06 +01:00
AJ Slater
515651f893
tests for non-multiprocessing management commands 2022-02-07 21:01:01 +01:00
Claude Paroz
65adf90601 Remove obsolete comment backend docstring.
xapian issue #364 is solved in xapian 1.3+.
2022-02-05 10:56:25 +01:00
Claude Paroz
77d1fc8ef6 Dropped support for Python 3.6 2022-02-05 10:53:22 +01:00
Alejandro R. Sedeño
c354c1a92f Revert "coveragerc - switch from source to include"
This reverts commit c6248769d4.

Coverage upstream has fixed the issue this was working around.
2021-12-06 17:59:18 +01:00
Alejandro R. Sedeño
c53d9ab3e0 Expand the test matrix to include python 3.10 / django 3.2
Django 3.2.9 added support for python 3.10, but older versions still
list the maximum supported version as 3.9.

https://docs.djangoproject.com/en/3.2/faq/install/

This adds python 3.10 / django 3.2 to the test matrix, and builds a
xapian wheel for python 3.10.

Version numbers changed to strings for consistency. Python 3.10 needs
to be quoted because it would otherwise be interpreted as 3.1.
2021-11-14 21:52:13 +01:00
Claude Paroz
f1c3c304e2 Bump version to 3.0.1 2021-11-13 09:52:24 +01:00
Alejandro R. Sedeño
c6248769d4 coveragerc - switch from source to include 2021-11-13 09:38:42 +01:00
Claude Paroz
eb2797aa19 Remove force_text usage 2021-11-12 10:36:53 +01:00
Claude Paroz
32aadd8e65 Add Changelog to Manifest 2021-10-28 21:48:26 +02:00
Claude Paroz
cd2082f4d1 Add a ChangeLog 2021-10-28 21:46:22 +02:00
Alejandro R. Sedeño
14ca04609c Github Actions - expand test matrix
Fixes: #207
2021-09-26 22:27:20 +02:00
Alejandro R. Sedeño
ef1dc87368 drop _old_xapian_sort 2021-09-26 18:04:08 +02:00
Alejandro R. Sedeño
4a952bb7f9 Drop code meant to support Xapian 1.2.x, 1.3.x.
xapian-haystack now lists xapian 1.4.x as the minimum supported
version, so we don't need to carry around code to support 1.2.x
anymore.
2021-09-26 18:04:08 +02:00
Alejandro R. Sedeño
1a5b4cf0b3 Better coverage handling
Use `coverage combine` with some more configuration in .coveragerc
to merge our own paths with the paths we copy to when running coverage
and tests in the django-haystack checkout.

Also, print the simple coverage report in the Github Actions workflow
for good measure.

Fixes: #205
2021-09-25 08:52:07 +02:00
Alejandro R. Sedeño
35cbaaa3d2
xapian_wheel_builder - better metadata
* xapian_wheel_builder - better metadata

Fixes: #203
2021-09-24 21:11:18 +02:00
Claude Paroz
3a98f1723b Ensure README is read with utf-8 encoding in setup.py 2021-09-24 20:52:26 +02:00
Claude Paroz
878371e23c Replaced travis build badge by GH Actions one 2021-09-24 20:28:57 +02:00
Alejandro R. Sedeño
20af9d214e Replace Travis CI by GitHub Actions
Co-authored-by: Claude Paroz <claude@2xlibre.net>
2021-09-24 19:57:33 +02:00
Alejandro R. Sedeño
37e8b5af8f work on xapian-delve issues
1) `xapian_wheel_builder.sh` adds `xapian-delve` to the wheel
2) `tests/xapian_tests/tests/test_backend.py` learns to check the new `xapian-delve` location
3) drop support for delve from xapian<1.3 (support dropped along Python 2)
2021-09-24 19:57:33 +02:00
Alejandro R. Sedeño
194aa2ca86
Added builder script xapian_wheel_builder.sh
This adds a script to build a wheel containing xapian python3 bindings
along with a matching build of the xapian library.

I've been using this with xapian v1.4.9 for years now, and recently
merged the linux and macOS versions into a single script.

This should not be used to create wheels for uploading to PyPI, but
works well for building a deployable artefact for a known
target.
2021-09-23 08:19:36 +02:00
Alejandro R. Sedeño
2da3db630d install_xapian.sh - unpin sphinx for xapian >= 1.4.12 2021-09-21 09:05:08 +02:00
Claude Paroz
d84ae774cb Update Django dependency in requirements.txt 2021-08-22 16:34:48 +02:00
Claude Paroz
a8566ca33b Drop support for Django < 2.2 and add Django 3.2 support 2021-08-22 15:44:56 +02:00
Claude Paroz
90f5bc8c14 Simplified super() calls 2021-08-17 23:22:19 +02:00
Claude Paroz
97f54ed37c Add CI tests for Django 2.2, 3.0, 3.1 2021-08-17 23:10:56 +02:00
Alejandro R. Sedeño
0d8895b8cc install_xapian.sh: pin sphinx to avoid compatibility issues with 2.0 2021-08-09 19:03:53 +02:00
Claude Paroz
0f9d94fb23 Dropped Python 2 support 2021-08-09 19:03:53 +02:00
Claude Paroz
6224ba3b08 django-haystack git home moved 2021-08-09 18:46:20 +02:00
Kurt Neufeld
2247b23d3c user friendly modifications to install_xapian.sh...
check if user supplied version on command line and exit with message if they didn't
2019-01-17 17:52:21 +01:00
Alejandro R. Sedeño
02653af62c test setting tweaks for django 2.1 2019-01-17 17:49:22 +01:00
Alejandro R. Sedeño
bc63eb5e2a Update test expected queries
This commit could use scrutiny.
2019-01-17 17:49:22 +01:00
Alejandro R. Sedeño
2d3d098a5f Update test versions
Django < 1.11 is no longer supported by Django or Haystack

Test against latest versions of Django 1.11, 2.0, 2.1.
Test against python 2.7 (django 1.11 only), 3.5, 3.6, 3.7 (on xenial).

Update xapian old-stable to 1.2.25, only for py27.
Update xapian old-dev to 1.3.6, only for py27, py34.
Update xapian stable to 1.4.9.

xapian 1.3.6 included just to keep coverage numbers up.
xapian 1.3.7 not included because it didn't build with install-xapian.sh.
2019-01-17 17:49:22 +01:00
f1861fc5e7
Fix PY2 error 2018-03-26 04:36:28 +02:00
3c322a9552 Fixing untrustable os.path.exists
As per https://stackoverflow.com/a/3112717/1067833,
os.path.exists sometimes delivers a wrong value. These are corner
cases, but mine is exactly one:

I run xapian-haystack in a multiprocess environment (indexing and
django server), on an LXC container, which has its mount probably
mounted from an NFS server (I have no control/information over it).

This corner case results the os.path.exists give `True` for one
process and `False` for another, resulting in the exception I
handle with this patch.
2017-10-28 08:36:38 +02:00
Claude Paroz
253c4c2898 Revert "Removed compatibility argument with pre-2.0 haystack"
This reverts commit d3f1e011da.
2017-05-18 08:50:23 +02:00
Jorge C. Leitão
f67036e5cd Bumped version and updated requirements. 2017-03-01 12:07:00 +01:00
Jorge C. Leitão
de7a59689d Added tests for querying and indexing django.contrib.contenttype. 2017-03-01 11:41:28 +01:00
Alex Sandro
390d6344cf Dynamically configuring reserved fields. 2017-03-01 10:47:04 +01:00
Alex Sandro
8568e49b8f Correction from the exact to the reserved field django_ct (he was being treated with a phrase.). 2017-03-01 10:47:04 +01:00
Alex Sandro
02acc62824 Configuring 'limit_to_registered_models' according to doc haystack. 2017-03-01 10:47:04 +01:00
Claude Paroz
79a00865aa Removed workaround for old Django 2017-03-01 10:18:05 +01:00
Claude Paroz
d3f1e011da Removed compatibility argument with pre-2.0 haystack 2017-02-14 09:49:19 +01:00
jorgecarleitao
f46283bc5f Added Claudep to credits in README.rst 2016-11-03 06:54:14 +01:00
Claude Paroz
de76bad3f0 Fixed #161 -- Supported range search filter
`range` was added in django-haystack commit 3994bfa199.
2016-10-30 19:38:27 +01:00
Jorge C. Leitão
313ef57a55 Fixed Travis build and added Xapian 1.4.1 to it. 2016-10-30 14:32:22 +01:00
Claude Paroz
e0e6a11e46 Endswith is not yet supported in Xapian
'endswith' query support has been added in django-haystack/django-haystack@42f53cda9.
2016-10-14 16:25:43 +02:00
Claude Paroz
d1c59752ce Haystack now defaults to __content instead of __contains
Echo to commit django-haystack/django-haystack@42f53cda9
2016-10-14 16:25:43 +02:00