Commit graph

46 commits

Author SHA1 Message Date
Andrew-Chen-Wang
689f679ad3 v2.3.1 2020-08-10 17:15:13 -04:00
Andrew-Chen-Wang
6e22dc7f58 Drop Python 2.7 and Dj 1.11 2020-06-18 09:28:00 -04:00
Andrew-Chen-Wang
602cdcee1d
Version 2.2.0 (#146)
This PR upgrades cachalot to version 2.2.0 allowing for anyone to install cachalot at any Django package above 1.11. All tests currently function now.

* Added mysql as a service to fix Travis CI

* Removed tox dependency

* Removed upper limit on Django and support 2.2-3.0 CI Test
* Cachalot will only say "officially supports" while removing upper limit to not hinder anyone's progress.
* Added Python 3.8 and Django 2.2 and 3.0 to CI tests

- Max is 200 and we'll get there quickly if we add another Python version. Utilizes #127
- Keep dependencies for six and django.utils.six

* Correctly run Travis test by updating tox.ini
* Originally using tox syntax but changed testenv to travis so that travis env and travis dependencies and stuff are used

* Tox tests should start running command

* testenv without dependencies broke travis. New spot in Tox
* testenv without dependencies broke travis
* I can't figure out where testenv is supposed to be
* Good thing there's squash

* Added missing six in test
* Also added six package to Tox for Django 3.0 coverage.
* The missing six package caused several problems in several tests due to using an incorrect DB

* Resolves #138
* Need to add the panels here in order to satisfy tests

* Adds CachalotPanel to Python 2 backwards compatibility
* Forgot super class took those like save()

* Added databases to certain test cases
* APITestCase, DebugToolbarTestCase, SignalsTestCase required a database set
* Fixes errors like these: https://travis-ci.org/noripyt/django-cachalot/jobs/648691385#L4892

* Dropped OFFICIAL support for Python 3.4 + MySQL
* MySQL and its client on 3.4 is f--king up a lot of the testing and I can't bear with it. We can revisit it later, but, honestly, who uses Python 3.4... and if an organization is, then they will either have no problem with Postgres and SQLite or know that MySQL doesn't work.

* Drop Py3.4 from running. Fixed databases
* Now goes with setting's databases rather than hardcoded since some tests don't have other databases.

* Fix ReadTestCase

Django 2.2+ changed self.queryset at line 1000 with self.query=queryset.query

* Django Dependency Removed from utils.py

* Last commit used Django version. This one used try except

* Fixed assertNumQuery; added allow_failures for 3.4
* Primary: More information in test_utils.py with method is_django_21_below_and_is_sqlite
* The problem with the entire build lie in the self.is_sqlite for the tests. SQLite will make 2 queries when creating or destroying or updating instead of 1.
* In summary, if SQLite is the DB and Django

* Changed build matrix to allow failures for 3.4 instead of taking it out completely so that we can get it to work soon.

* Remove -> From function return
* I love backwards compatibility

* SQLite2 in multi_db.py returned incorrect bool

* Django 2.1 and SQLite checker doesn't work for some tests
* Some tests DO HAVE the BEGIN query that is returned... Not sure why. If the next test show completely different WriteTestCase problems, then we need to find alternative.
* Removed check from atomic

* Adjust Django and is_sqlite errors
* CI testing the Tox errors: https://travis-ci.org/noripyt/django-cachalot?utm_medium=notification&utm_source=github_status

* Adjust Django and is_sqlite errors (590 CI)
* CI testing the Tox errors: https://travis-ci.org/noripyt/django-cachalot?utm_medium=notification&utm_source=github_status
* Adjustment 2

* Make include matrix and Adjust Django and is_sqlite errors (594 CI)
* CI testing the Tox errors: https://travis-ci.org/noripyt/django-cachalot?utm_medium=notification&utm_source=github_status
* Adjustment 3

* Adjust Django and is_sqlite errors (596 CI)
* CI testing the Tox errors: https://travis-ci.org/noripyt/django-cachalot?utm_medium=notification&utm_source=github_status
* Adjustment 4
* Added my intro to ReadTheDocs

* Adjust Django and is_sqlite errors (598 CI)
* CI testing the Tox errors: https://travis-ci.org/noripyt/django-cachalot?utm_medium=notification&utm_source=github_status
* Adjustment 5

* Drop Python 3.4 from tests since PyLibMC not cooperating at that level.

* Bump package version up 1 minor for Django 2.2 and 3.0
2020-02-12 00:52:12 -05:00
Bertrand Bordage
c268a15896 Allows running on Django 2.1. 2018-08-09 14:29:47 +02:00
Bertrand Bordage
8bb1ca1753 Further Django 2.0 missing references. 2018-05-04 20:49:56 +02:00
Kosei Kitahara
49cf92767c
Drop 1.8 and 1.10 from docs and setup.py 2018-04-17 14:51:43 +09:00
Bertrand Bordage
da4e21b515 Adds CACHALOT_DATABASES and removes dynamic setting support.
Dynamic setting support is removed because it’s not thread-safe.
2017-06-04 18:37:39 +02:00
Bertrand Bordage
d7a36def44 Also drops Django 1.9 & Python 3.3. 2017-06-02 22:59:35 +02:00
Bertrand Bordage
60c29e888f Typos in docs. 2017-06-02 22:57:31 +02:00
Bertrand Bordage
8caeab4742 Documentation update on CACHALOT_CACHE & some limits. 2016-09-29 19:12:01 +02:00
Bertrand Bordage
cffed48026 Version 1.3.0. 2016-09-13 21:59:10 +02:00
Bertrand Bordage
01163c1f29 Renames the Jinja2 extension for Python 2.7 compatibility. 2016-09-13 20:30:18 +02:00
Bertrand Bordage
04afa3f439 Adds a Jinja2 extension. 2016-09-13 20:15:30 +02:00
Bertrand Bordage
62cb9c5c78 Adds a « Do not use if… » documentation paragraph. 2016-09-13 13:51:22 +02:00
Bertrand Bordage
82262184c8 Specifies how to invalidate cachalot after changing some settings. 2016-09-07 00:57:27 +02:00
Bertrand Bordage
571e6ec691 Adds CACHALOT_TIMEOUT. 2016-09-06 21:57:26 +02:00
Bertrand Bordage
a0980cf696 Tests Django 1.10. 2016-07-21 10:57:06 +02:00
Bertrand Bordage
f723f73584 Adds new supported versions to Quickstart. 2015-12-22 19:59:56 +01:00
Bertrand Bordage
d959f3e42f Waits until the end of transaction before triggering the signal, and trigger the signal on all invalidations. 2015-10-28 12:54:39 +01:00
Bertrand Bordage
130be2a434 Adds a whole comparison with other ORM caches. 2015-10-25 20:08:18 +01:00
Bertrand Bordage
6249ade208 Improves documentation of the latest additions. 2015-10-25 00:47:24 +02:00
Bertrand Bordage
cb0cb1d7a4 Merge remote-tracking branch 'origin/master' into django-1.8
Conflicts:
	docs/quickstart.rst
2015-10-24 22:37:19 +02:00
Alson Kemp
6d14f074c5 Update to Quick Start
Highlight the need to sync clock across multiple servers.
2015-10-16 11:54:11 -07:00
Bertrand Bordage
a8b77c6e32 Adds CACHALOT_ONLY_CACHABLE_TABLES. 2015-10-05 20:10:19 +02:00
Bertrand Bordage
009b7ca557 Handles Django bug #25501 in tests. 2015-10-04 18:35:44 +02:00
Bertrand Bordage
9938b54123 Merge branch 'master' into django-1.8
Conflicts:
	cachalot/cache.py
	cachalot/monkey_patch.py
	cachalot/tests/read.py
	cachalot/utils.py
	tox.ini
2015-10-02 18:39:04 +02:00
Bertrand Bordage
5cc4d3ae93 Adds an UNCACHABLE_TABLES setting to fix some migrations issues in tests and significantly speed up tests. 2015-06-17 21:24:49 +02:00
Bertrand Bordage
3798a1c97d Adds a signal to trigger post-invalidation behaviours. 2015-04-17 20:06:18 +02:00
Bertrand Bordage
16e14c9219 Drops Django 1.6 & Python 2.6 support. 2015-04-11 01:57:13 +02:00
Bertrand Bordage
0c8180a6e7 Adds the invalidate_cachalot Django command. 2015-02-18 03:03:32 +01:00
Bertrand Bordage
56e12f0dba Typos. 2014-12-14 10:12:38 +01:00
Bertrand Bordage
3355d2c0b2 Layout in quickstart. 2014-12-14 09:51:37 +01:00
Bertrand Bordage
b6c1dfc200 Restores locmem support for Django 1.6. 2014-12-14 08:08:51 +01:00
Bertrand Bordage
3e8135722a Drops pylibmc support with Django 1.6 due to a severe random pylibmc freeze without traceback. 2014-12-14 07:54:54 +01:00
Bertrand Bordage
43b29a9271 Removes locmem support on Django 1.6. 2014-12-14 05:57:40 +01:00
Bertrand Bordage
3ce311d735 Adds a note about MySQL query cache. 2014-12-13 20:05:39 +01:00
Bertrand Bordage
bd10637f46 Adds a django-debug-toolbar panel. 2014-12-08 22:00:08 +01:00
Bertrand Bordage
d84783b0f1 Simplifies cachalot_settings and forbids its modification. 2014-12-08 19:43:43 +01:00
Bertrand Bordage
47bb01c7b3 Adds pylibmc support. 2014-12-08 03:47:11 +01:00
Bertrand Bordage
13ea4b0bde Removes file-based cache support for Django 1.6. 2014-12-08 03:16:31 +01:00
Bertrand Bordage
b1804a11ee Adds file-based caching support. 2014-12-08 01:01:58 +01:00
Bertrand Bordage
6200a12b20 Invalidates raw queries. 2014-11-04 01:17:35 +01:00
Bertrand Bordage
83618b69cd Adds QUERY_KEYGEN & TABLE_KEYGEN. 2014-10-30 04:17:48 +01:00
Bertrand Bordage
263af6cfb2 Typo. 2014-10-29 20:51:56 +01:00
Bertrand Bordage
5f94747ae6 Adds CACHALOT_CACHE_RANDOM. 2014-10-29 17:50:36 +01:00
Bertrand Bordage
d36ee841b9 Creates a Sphinx documentation. 2014-10-28 23:44:28 +01:00