Commit graph

908 commits

Author SHA1 Message Date
Bryan Veloso
bc0b0a8a75 Merge branch 'release/3.2.3'
* release/3.2.3:
  Bump the version to 3.2.3.
  Exclude tests from dist
  Revert "Remove test dir __init__.py"
  Only include fetched fields in initial hash of sources
  Add test to illustrate GH-295
  Test that there isn't IO done when you get a URL
  Support should_verify_existence on strategies
  Test that Optimistic strategy doesn't cause reads
  Ignore my Python3 virtualenv
  Remove test dir __init__.py
  Fixed minor spelling error in README.rst
2014-09-27 22:21:17 -07:00
Bryan Veloso
5f4f7070f4 Bump the version to 3.2.3. 2014-09-27 22:20:40 -07:00
Matthew Dapena-Tretter
3a2150e515 Exclude tests from dist
Related: matthewwithanm/pilkit#14
2014-09-27 18:03:07 -04:00
Matthew Dapena-Tretter
e2ae850866 Revert "Remove test dir __init__.py"
This reverts commit f5b23a67bd.

I forgot we were using 'tests.settings' as a settings module path.
2014-09-27 17:52:21 -04:00
Matthew Dapena-Tretter
b9b95717c6 Merge branch 'no-extra-queries' into develop
* no-extra-queries:
  Only include fetched fields in initial hash of sources
  Add test to illustrate GH-295
2014-09-27 15:29:52 -04:00
Matthew Dapena-Tretter
78a1ccaf2f Only include fetched fields in initial hash of sources
Should avoid unnecessary queries, as detailed in GH-295.
2014-09-26 22:33:16 -04:00
Matthew Dapena-Tretter
8d35dad5fc Add test to illustrate GH-295 2014-09-26 21:32:01 -04:00
Matthew Dapena-Tretter
002b5bdac8 Merge pull request #292 from njamaleddine/develop
Fixed minor spelling error in README.rst
2014-09-23 22:11:01 -04:00
Matthew Dapena-Tretter
bbf48a7953 Test that there isn't IO done when you get a URL 2014-09-23 18:41:09 -04:00
Matthew Dapena-Tretter
00b4388245 Support should_verify_existence on strategies
This prevents extra IO. Different defaults are used for async backends
since we can’t assume that `existence_required` resulted in existence
synchronously.
2014-09-23 18:41:09 -04:00
Matthew Dapena-Tretter
c92f53c1b0 Test that Optimistic strategy doesn't cause reads
Using the Optimistic strategy should prevent IO ops when you cast the
file as a boolean.
2014-09-23 18:40:58 -04:00
Matthew Dapena-Tretter
9f4192a7c6 Ignore my Python3 virtualenv 2014-09-23 18:29:52 -04:00
Matthew Dapena-Tretter
f5b23a67bd Remove test dir __init__.py
Related: matthewwithanm/pilkit#14
2014-09-23 14:59:20 -04:00
Nabil
945a5623ef Fixed minor spelling error in README.rst 2014-09-21 18:50:44 -04:00
Bryan Veloso
89b5666b02 Merge branch 'release/3.2.2' into develop
* release/3.2.2:
  Bump version to 3.2.2.
2014-07-14 12:24:46 -07:00
Bryan Veloso
b176c0cafe Merge branch 'release/3.2.2'
* release/3.2.2:
  Bump version to 3.2.2.
  Make sure image files has a name associated.
2014-07-14 12:24:13 -07:00
Bryan Veloso
d013b82c7f Bump version to 3.2.2. 2014-07-14 12:24:05 -07:00
Colin Wood
2f7bfe5dc7 Make sure image files has a name associated.
The generate image command will run into issues if the ImageSpecField does not
have any image file source associated wit hti. Like a Optional image field. So
we can not generate the images for that. So this should check to make sure that
it has one.
2014-07-11 10:07:43 -04:00
Bryan Veloso
5bb41bdccd Merge branch 'release/3.2.1' into develop
* release/3.2.1:
  Bump the version to 3.2.1.
2014-04-04 09:27:48 -07:00
Bryan Veloso
9f69d7e056 Merge branch 'release/3.2.1'
* release/3.2.1:
  Bump the version to 3.2.1.
  Simplified RQ cache file backed by using the job decorator
  Add note about `open()`
  Always call variable "source_file"
  setup.py: added 'async_rq' extra, django-rq dependency
  Removed unneeded django_rq import
  Added a DeprecationWarning if Async cache file backend is used
  Updated tox.ini to test against Django 1.6.
  Fixed #266 -- Simplified (and renamed) StrategyWrapper.
  Link to Instakit.
2014-04-04 09:27:30 -07:00
Bryan Veloso
1d80e83732 Bump the version to 3.2.1. 2014-04-04 09:26:54 -07:00
Matthew Dapena-Tretter
1448e7dddd Merge pull request #279 from mkai/_rq_async_refactor
Simplified RQ cache file backed by using the job decorator
2014-04-04 10:33:27 -04:00
Markus Kaiserswerth
3056b3efc0 Simplified RQ cache file backed by using the job decorator 2014-04-04 14:24:21 +02:00
Matthew Dapena-Tretter
f45491bddb Merge pull request #278 from mkai/_rq_async_cleanup
Cleaned up RQ cache file backend code, added async_rq setup extra
2014-03-23 18:50:45 -04:00
Matthew Dapena-Tretter
b869f78b35 Merge pull request #277 from mkai/_async_deprecation
Added a DeprecationWarning if (old) Async cache file backend is used
2014-03-23 18:48:10 -04:00
Matthew Dapena-Tretter
6aa99adf1c Add note about open()
Hopefully this prevents people from going through acrobatics to get a File when
they've already got one!
2014-03-19 11:27:03 -04:00
Matthew Dapena-Tretter
9be8507ebd Always call variable "source_file"
This emphasizes that it's a file object and not a PIL image and also connects it
to the earlier example which creates that variable.
2014-03-19 11:26:10 -04:00
Markus Kaiserswerth
5b0c789f6b setup.py: added 'async_rq' extra, django-rq dependency
django-rq v0.6.0 is the first version with Python 3 support.
2014-03-18 17:03:16 +01:00
Markus Kaiserswerth
c5a1be3b8e Removed unneeded django_rq import 2014-03-18 17:02:23 +01:00
Markus Kaiserswerth
85d8cb15bb Added a DeprecationWarning if Async cache file backend is used 2014-03-18 16:37:18 +01:00
Matthew Dapena-Tretter
d3aabb0db3 Merge pull request #267 from bmispelon/issue-266
Fixed #266 -- Simplified (and renamed) StrategyWrapper.
2014-01-21 08:53:56 -08:00
Matthew Dapena-Tretter
169b594b28 Merge pull request #268 from bmispelon/tox-conf-update
Updated tox.ini to test against Django 1.6.
2014-01-21 08:53:32 -08:00
Baptiste Mispelon
df8d798551 Updated tox.ini to test against Django 1.6. 2014-01-21 17:50:58 +01:00
Baptiste Mispelon
3799f3c2f4 Fixed #266 -- Simplified (and renamed) StrategyWrapper.
StrategyWrapper was unnecessarily implemented as a LazyObject
and it triggered a bug in Django (issue 21840).

Changing the lazy object to a function works just as well and
bypasses the bug.
2014-01-21 17:46:19 +01:00
Matthew Dapena-Tretter
ffd3ba384e Link to Instakit.
Related: fish2000/instakit#2
2014-01-21 10:22:10 -05:00
Bryan Veloso
14c7979e4c Merge branch 'release/3.2' into develop
* release/3.2:
  Bump the version to 3.2.
2014-01-01 15:18:51 -08:00
Bryan Veloso
ab3593ed54 Merge branch 'release/3.2'
* release/3.2:
  Bump the version to 3.2.
  Use signal.connect for backwards compat
  Add Venelin Stoykov to AUTHORS
  Improve logic of contributing ImageSpecFields to Models
  Use force_bytes from imagekit.lib in test_cachefiles
  Remove @vstoykov's note. Seems like the right place to me (:
  Move force_bytes into lib module
  Don't use a raw string with \u escapes
  Fix sanitizing cache key under Python 3
  Add module to sys.modules
  Test for Python 3
  Insert importer at beginning of list
  Delay Django import until needed
  Add Python 3 suport and drop support for Python 2.5
2014-01-01 15:18:38 -08:00
Bryan Veloso
1ac1a44fc5 Bump the version to 3.2. 2014-01-01 15:17:33 -08:00
Matthew Dapena-Tretter
f113fc7517 Use signal.connect for backwards compat
The receiver decorator isn't available until Django 1.3.
2014-01-01 17:47:36 -05:00
Bryan Veloso
ce9a62c02c Merge branch 'python3' of https://github.com/vstoykov/django-imagekit into vstoykov-python3
* 'python3' of https://github.com/vstoykov/django-imagekit:
  Add Venelin Stoykov to AUTHORS
  Improve logic of contributing ImageSpecFields to Models
  Use force_bytes from imagekit.lib in test_cachefiles
  Remove @vstoykov's note. Seems like the right place to me (:
  Move force_bytes into lib module
  Don't use a raw string with \u escapes
  Fix sanitizing cache key under Python 3
  Add module to sys.modules
  Test for Python 3
  Insert importer at beginning of list
  Delay Django import until needed
  Add Python 3 suport and drop support for Python 2.5

Conflicts:
	imagekit/cachefiles/__init__.py
2013-12-26 17:30:42 -08:00
Bryan Veloso
2ff015a89a Merge branch 'release/3.1' into develop
* release/3.1:
  Tagging 3.1.
2013-12-20 09:20:28 -08:00
Bryan Veloso
a14fc91c8d Merge branch 'release/3.1'
* release/3.1:
  Tagging 3.1.
  Correct reference to generateimage tag
  Fix celery backend
  Cache file backends: dropped the "Async" in class names
  Added RQ-based async cache file backend
2013-12-20 09:19:40 -08:00
Bryan Veloso
452a9c1b31 Tagging 3.1. 2013-12-20 09:18:57 -08:00
Venelin Stoykov
3667c09d82 Add Venelin Stoykov to AUTHORS 2013-12-16 22:38:05 +02:00
Venelin Stoykov
26aa19eeef Improve logic of contributing ImageSpecFields to Models
- If `source` is defined then register source group immediately
- If `source` is not defined then create a signal handler and attach it to
`class_prepared` signal which will see if there is only one ImageField in
the given model.

This will fix problems coused in Python 3 about using ImageSpecField
without providing a `source`.
2013-12-16 10:48:57 +02:00
Venelin Stoykov
8a600d30b3 Use force_bytes from imagekit.lib in test_cachefiles 2013-12-15 01:58:22 +02:00
Matthew Dapena-Tretter
45f10075b6 Remove @vstoykov's note. Seems like the right place to me (: 2013-12-14 13:03:02 -05:00
Matthew Dapena-Tretter
87983c5e6d Move force_bytes into lib module 2013-12-14 13:02:21 -05:00
Matthew Dapena-Tretter
c1e16696b1 Don't use a raw string with \u escapes
Apparently, Python 3.2 doesn't process these in raw strings.
See https://mail.python.org/pipermail/python-list/2012-May/624756.html
and https://mail.python.org/pipermail/python-dev/2007-May/073042.html
2013-12-14 12:54:26 -05:00
Venelin Stoykov
fb947b1937 Fix sanitizing cache key under Python 3 2013-12-14 18:56:47 +02:00