Commit graph

48 commits

Author SHA1 Message Date
Jack Linke
27eaaa57cc
Correct problems with tests (#234) 2023-05-24 21:35:03 -04:00
Andrew Chen Wang
0bda00bd2c
Merge branch 'master' into andrew-wang/dj4.2 2023-04-04 15:18:08 -04:00
Andrew-Chen-Wang
d192bae22c Add Django 4.1-4.2 and Python 3.11 support (Fixes #228)
* Increment version to 4.5.0
2023-04-04 15:14:29 -04:00
David Haas
866b662273
Update utils.py (#225)
* Update utils.py

verify get_meta isn't none before requesting db_table

* Add passenv to tox.ini

* Fix test_explain in sqlite

---------

Co-authored-by: Andrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com>
2023-03-12 16:39:04 -04:00
Dan Koch
52406ec111
Add Django 4.1 support (#219) 2022-08-26 22:06:52 -04:00
Andrew Chen Wang
f1087da6f9
Add Django 4.0 support, drop Python 3.6 and Django 3.1 (#208)
* Fix tox.ini and use exclude for ci.yml
* runtests_urls.py had an issue from using pre-Django 2.2 import of urls
* tox.ini forgot to remove 3.7 from Django 4.0 env
* Use re_path
* Avoid system error in Django test
* Fix read/test_union.py
* Test assertion error for read/test_union
* Fix remaining read/test_intersection test
* Bump version
2021-12-07 18:44:25 -05:00
Andrew Chen Wang
a9c5d4d01c
Add Python 3.10 Support (fixes #205) (#206) 2021-11-03 15:05:44 -04:00
Andrew Chen Wang
5814968b7a
Fix PostgreSQL test cases 2021-08-19 14:14:49 -04:00
Andrew-Chen-Wang
e88bd18901 Added Django main-branch CI on cron job 2021-05-26 22:30:54 -04:00
Andrew Chen Wang
fe08ef3d28
Drop Django 3.0 support (#189)
* Drop Django 3.0 support
* Extended support for Django 3.0 was ended on April 6, 2021
* Update docs to reflect dropped Django 3.0 version
* Updated links in docs to reflect updated Django docs anchor tag implementation
2021-05-24 22:46:24 -04:00
Andrew Chen Wang
165cdb6a00
Add Django 3.2 Support and drop error dependency check (#181)
* Remove system check for Django version
* Closes #175
* Bump version and amend CHANGELOG
* Update with GitHub action CI
* Update README with Python and Django versions
* Limit Django version to 3.2, inclusively.
* Add note on Django constraints to README
* Bump minor version
* Justified by dropping support for dependency versions
* Drop support for Django 2.0-2.1, Python 3.5
* Change CI badge in README to GitHub actions
* Add support for Pymemcache for Django 3.2+
* Add Django 3.2 to test matrix
* Fix MySQL test_explain
* Allow filebased delta leniency in tests
* Allow Subquery in finding more Subqueries (Fixes #156)
* Reverts #157 with proper fix. The initial problem was due to `django.db.models.expressions.Subquery` allowing both QuerySet and sql.Query to be used.
* Fixes Django 3.2 test_subquery and test_invalidate_subquery testing by also checking the lhs
* Fix Django 2.2 Subquery having no query attr
* Fix filebased test time delta
* Fix test_invalidate_having due to new inner_query
* The new inner_query replaces subquery for Django 3.2 where subquery is now a boolean. That's why I initially used that TypeError in _get_tables_from_sql. inner_query looks to be a sql.Query
* Add PyMemcacheCache to supported cache backends

Co-authored-by: Dominik George <nik@naturalnet.de>
2021-05-13 00:27:14 -04:00
Andrew Chen Wang
6108d8e5b6
Use GitHub actions & remove Travis (#173) 2021-04-30 14:26:28 -04:00
Andrew-Chen-Wang
7b22ba5c3f Add Python 3.9 support 2020-10-16 09:42:10 -04:00
Andrew-Chen-Wang
d699c5b8c3 Squashed commit of the following:
commit 4a33e7b68196bf6e0ee0b7f942a992532495b616
Author: Andrew-Chen-Wang <acwangpython@gmail.com>
Date:   Mon Aug 10 16:04:26 2020 -0400

    Replace f-strings with join for Python 3.5

commit dcb33232d605c01025469e776c4ed8eb6ae0a326
Author: Andrew-Chen-Wang <acwangpython@gmail.com>
Date:   Mon Aug 10 15:55:09 2020 -0400

    Fix sql_flush for dj versions below 3.1
    * Removed any other instances of JSONField for Django 3.1 removed many things like JsonAdapter in favor of regular json module

commit 74195e9ff5a52dba2449a55e543a27ebd99e4fc9
Author: Andrew-Chen-Wang <acwangpython@gmail.com>
Date:   Mon Aug 10 09:17:03 2020 -0400

    Add Django 3.1 to Travis
    * Specify Django version when checking if JSONField exists

commit da5c1fa4c8b2f2efba0b12d7b27460c544e2473a
Author: Andrew-Chen-Wang <acwangpython@gmail.com>
Date:   Wed Aug 5 17:39:58 2020 -0400

    Added support for Django 3.1
    * Some fields were removed, others were deprecated. They are now in a list of deprecation to follow. Some new fields were added like PositiveBigIntegerField that won't be tested
    * monkey_patch.py has a try/except import for EmptyResultSet that was from archaic Django. Removed apparently due to compatibility issues
2020-08-10 16:49:46 -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
Robert Sköld
616714f114 Run tests with django 2.1 2018-08-09 14:24:27 +02:00
Bertrand Bordage
71ce1a392e Fixes the HStore issue in tests. 2018-05-05 00:54:33 +02:00
Bertrand Bordage
74e000b8e2 Adds Django 2.0 support. 2018-05-04 20:26:26 +02:00
Kosei Kitahara
c482b3804f
Drop EOL versions 2018-04-17 14:35:45 +09:00
Bertrand Bordage
86d138c023 Removes Python 3.6 with Django 1.8 & 1.10. 2017-06-02 23:32:08 +02:00
Bertrand Bordage
d7a36def44 Also drops Django 1.9 & Python 3.3. 2017-06-02 22:59:35 +02:00
Nick Sandford
7af968c4d9 Remove version since pylibmc issue has been fixed 2017-05-06 16:46:05 +01:00
Bertrand Bordage
c1f4be6b6f Adds missing requirements to tox.ini. 2016-10-23 20:11:50 +02:00
Bertrand Bordage
04afa3f439 Adds a Jinja2 extension. 2016-09-13 20:15:30 +02:00
Bertrand Bordage
33bbfcea79 Use the new Django 1.10 release in tox. 2016-09-06 18:57:04 +02:00
Bertrand Bordage
dbab30a554 Tries to fix Travis CI’s interpretation of the tox file. 2016-07-21 20:08:19 +02:00
Bertrand Bordage
e4c986cb89 Downgrades the pylibmc version. 2016-07-21 19:58:15 +02:00
Bertrand Bordage
a0980cf696 Tests Django 1.10. 2016-07-21 10:57:06 +02:00
Bertrand Bordage
43b1fa3c2d Drops Python 3.2 and Django 1.7 support. 2016-07-21 10:20:07 +02:00
Bertrand Bordage
275987e81f [Travis CI] Fixes Python 3.2 builds. 2015-12-28 01:25:38 +01:00
Bertrand Bordage
c540f1bd31 Updates test requirements to the latest Python 3 compatible ones. 2015-12-28 00:38:37 +01:00
Bertrand Bordage
224350fedb Adds Django 1.9 to the test matrix. 2015-12-18 13:43:09 +01:00
Bertrand Bordage
0832e35321 Tests timezones. 2015-10-04 21:04:54 +02:00
Bertrand Bordage
104f58e97d Downgrades coverage for Python 3.2. 2015-10-02 20:26:52 +02:00
Bertrand Bordage
b1a8bb4ba9 Adds Django 1.8 to the test matrix. 2015-04-11 03:14:10 +02:00
Bertrand Bordage
455945faa4 Removes Django 1.6 & Python 2.6 from test matrix. 2015-04-11 02:06:49 +02:00
Bertrand Bordage
55c840b1e5 Reverts mysqlclient use as it fails with Python 3.2.
This reverts commit 4494e945c1.
2015-03-15 17:12:45 +01:00
Bertrand Bordage
4494e945c1 Uses mysqlclient instead of MySQL-python as advised in Django docs. 2015-03-15 16:26:57 +01:00
Bertrand Bordage
cbbdce4ed2 Removes Django 1.8 alpha from the test matrix. 2015-02-16 17:25:21 +01:00
Bertrand Bordage
4f7fae4219 Tests against Django 1.8a1. 2015-01-18 17:04:45 +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
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
323a1b128b Fixes tox build with python 2.6. 2014-11-29 02:25:35 +01:00
Bertrand Bordage
2a5a494ddc Fixes tox. 2014-11-28 23:06:09 +01:00
Bertrand Bordage
1f08dada56 Adds a tox file and uses it in Travis CI. 2014-11-28 22:12:03 +01:00