Skip to content

Commit 03fb10f

Browse files
jschneiermlazowik
authored andcommitted
Release version 1.10 (jschneier#923)
1 parent 1813859 commit 03fb10f

File tree

3 files changed

+72
-34
lines changed

3 files changed

+72
-34
lines changed

CHANGELOG.rst

Lines changed: 62 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,80 @@
11
django-storages CHANGELOG
22
=========================
33

4-
UNRELEASED
5-
**********
4+
1.10 (2020-08-30)
5+
*****************
66

7-
- Add support for Django 3.1.
7+
General
8+
-------
89

9-
**Breaking**
10+
- **Breaking**: Removed support for end-of-life Python 2.7 and 3.4 (`#709`_)
11+
- **Breaking**: Removed support for end-of-life Django 1.11 (`#891`_)
12+
- Add support for Django 3.1 (`#916`_)
13+
- Introduce a new ``BaseStorage`` class with a ``get_default_settings`` method and use
14+
it in ``S3Boto3Storage``, ``AzureStorage``, ``GoogleCloudStorage``, and ``SFTPStorage``. These backends
15+
now calculate their settings when instantiated, not imported. (`#524`_, `#852`_)
1016

11-
- Removed support for end-of-life Python 2.7 and 3.4.
17+
S3
18+
--
1219

13-
- Removed support for end-of-life Django 1.11.
20+
- **Breaking**: Automatic bucket creation has been removed. Doing so encourages using overly broad credentials.
21+
As a result, support for the corresponding ``AWS_BUCKET_ACL`` and ``AWS_AUTO_CREATE_BUCKET`` settings have been removed. (`#636`_)
22+
- **Breaking**: Support for the undocumented setting ``AWS_PRELOAD_METADATA`` has been removed (`#636`_)
23+
- **Breaking**: The constructor kwarg ``acl`` is no longer accepted. Instead, use the ``ACL`` key in setting ``AWS_S3_OBJECT_PARAMETERS``
24+
(`#636`_)
25+
- **Breaking**: The constructor kwarg ``bucket`` is no longer accepted. Instead, use ``bucket_name`` or the ``AWS_STORAGE_BUCKET_NAME``
26+
setting (`#636`_)
27+
- **Breaking**: Support for setting ``AWS_REDUCED_REDUNDANCY`` has been removed. Replace with ``StorageClass=REDUCED_REDUNDANCY``
28+
in ``AWS_S3_OBJECT_PARAMETERS`` (`#636`_)
29+
- **Breaking**: Support for setting ``AWS_S3_ENCRYPTION`` has been removed. Replace with ``ServerSideEncryption=AES256`` in ``AWS_S3_OBJECT_PARAMETERS`` (`#636`_)
30+
- **Breaking**: Support for setting ``AWS_DEFAULT_ACL`` has been removed. Replace with ``ACL`` in ``AWS_S3_OBJECT_PARAMETERS`` (`#636`_)
31+
- Add ``http_method`` parameter to ``.url`` method (`#854`_)
32+
- Add support for signing Cloudfront URLs to the ``.url`` method. You must set ``AWS_CLOUDFRONT_KEY``,
33+
``AWS_CLOUDFRONT_KEY_ID`` and install either `cryptography`_ or `rsa`_ (`#456`_, `#587`_). See the docs for more info.
34+
URLs will only be signed if ``AWS_QUERYSTRING_AUTH`` is set to ``True`` (`#885`_)
1435

15-
- The minimum supported version of boto3 is now 1.4.4.
36+
Google Cloud
37+
------------
1638

17-
- The ``S3Boto3Storage`` backend no longer accepts the argument ``acl``. Use
18-
the ``ACL`` key in ``AWS_S3_OBJECT_PARAMETERS`` instead.
39+
- **Breaking**: Automatic bucket creation has been removed. Doing so encourages using overly broad credentials.
40+
As a result, support for the corresponding ``GS_AUTO_CREATE_BUCKET`` and ``GS_AUTO_CREATE_ACL`` settings have been removed. (`#894`_)
1941

20-
- The ``S3Boto3Storage`` backend no longer accepts the argument ``bucket``. Use
21-
``bucket_name`` or the setting ``AWS_STORAGE_BUCKET_NAME`` instead.
42+
Dropbox
43+
-------
2244

23-
- The ``S3Boto3Storage`` backend no longer automatically creates the bucket.
24-
Doing so had encouraged using overly broad credentials. As a result, the
25-
``AWS_BUCKET_ACL`` setting has been removed.
45+
- Add ``DROPBOX_WRITE_MODE`` setting to control e.g. overwriting behavior. Check the docs
46+
for more info (`#873`_, `#138`_)
2647

27-
- The ``S3Boto3Storage`` backend no longer not longer supports the settings
28-
``AWS_DEFAULT_ACL``, ``AWS_REDUCED_REDUNDANCY`` and ``AWS_S3_ENCRYPTION``.
29-
They have been removed in favor of the ``AWS_S3_OBJECT_PARAMETERS`` setting.
30-
Using ``AWS_S3_OBJECT_PARAMETERS`` allows for full control over these S3
31-
parameters.
48+
SFTP
49+
----
3250

33-
- The ``S3Boto3Storage`` backend no longer supports the undocumented
34-
``AWS_PRELOAD_METADATA`` setting.
51+
- Remove exception swallowing during ssh connection (`#835`_, `#838`_)
3552

36-
- The ``GoogleCloudStorage`` backend no longer automatically creates the
37-
bucket. Doing so had encouraged using overly broad credentials. As a result,
38-
the ``GS_AUTO_CREATE_BUCKET`` setting has been removed.
53+
FTP
54+
---
3955

56+
- Add ``FTP_STORAGE_ENCODING`` setting to set the filesystem encoding (`#803`_)
57+
- Support multiple nested paths for files (`#886`_)
58+
59+
.. _cryptography: https://cryptography.io
60+
.. _rsa: https://stuvel.eu/rsa
61+
.. _#885: https://github.com/jschneier/django-storages/pull/885
62+
.. _#894: https://github.com/jschneier/django-storages/pull/894
63+
.. _#636: https://github.com/jschneier/django-storages/pull/636
64+
.. _#709: https://github.com/jschneier/django-storages/pull/709
65+
.. _#891: https://github.com/jschneier/django-storages/pull/891
66+
.. _#916: https://github.com/jschneier/django-storages/pull/916
67+
.. _#852: https://github.com/jschneier/django-storages/pull/852
68+
.. _#873: https://github.com/jschneier/django-storages/pull/873
69+
.. _#854: https://github.com/jschneier/django-storages/pull/854
70+
.. _#138: https://github.com/jschneier/django-storages/issues/138
71+
.. _#524: https://github.com/jschneier/django-storages/pull/524
72+
.. _#835: https://github.com/jschneier/django-storages/issues/835
73+
.. _#838: https://github.com/jschneier/django-storages/pull/838
74+
.. _#803: https://github.com/jschneier/django-storages/pull/803
75+
.. _#456: https://github.com/jschneier/django-storages/issues/456
76+
.. _#587: https://github.com/jschneier/django-storages/pull/587
77+
.. _#886: https://github.com/jschneier/django-storages/pull/886
4078

4179
1.9.1 (2020-02-03)
4280
******************

docs/backends/dropbox.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ To use DropBoxStorage set::
1717
DEFAULT_FILE_STORAGE = 'storages.backends.dropbox.DropBoxStorage'
1818

1919
``DROPBOX_OAUTH2_TOKEN``
20-
Your Dropbox token. You can obtain one by following the instructions in the `tutorial`_.
20+
Your Dropbox token. You can obtain one by following the instructions in the `tutorial`_.
2121

22-
``DROPBOX_ROOT_PATH`` (optional)
23-
Allow to jail your storage to a defined directory.
22+
``DROPBOX_ROOT_PATH`` (optional, default ``'/'``)
23+
Path which will prefix all uploaded files. Must begin with a ``/``.
2424

25-
``DROPBOX_TIMEOUT`` (optional)
26-
Timeout in seconds for making requests to the API. If ``None``, the client will wait forever.
27-
The default is ``100`` seconds which is the current default in the official SDK.
25+
``DROPBOX_TIMEOUT`` (optional, default ``100``)
26+
Timeout in seconds for requests to the API. If ``None``, the client will wait forever.
27+
The default value matches the SDK at the time of this writing.
2828

29-
``DROPBOX_WRITE_MODE`` (optional)
30-
Allow to set Dropbox WriteMode strategy.
31-
Default is ``add``. Read more at https://dropbox-sdk-python.readthedocs.io/en/latest/api/files.html#dropbox.files.CommitInfo.mode
29+
``DROPBOX_WRITE_MODE`` (optional, default ``'add'``)
30+
Sets the Dropbox WriteMode strategy. Read more in the `official docs`_.
3231

3332
.. _`tutorial`: https://www.dropbox.com/developers/documentation/python#tutorial
3433
.. _`Dropbox SDK for Python`: https://www.dropbox.com/developers/documentation/python#tutorial
34+
.. _`official docs`: https://dropbox-sdk-python.readthedocs.io/en/latest/api/files.html#dropbox.files.WriteMode

storages/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.9.1'
1+
__version__ = '1.10'

0 commit comments

Comments
 (0)