Migrate package meta data to pyproject.toml
Add/fix more type hints.
Fix type hints
Switched the minio-py client library version from <7
to >=7
.
Minimum Django version is now 3.2
Minimum Python version is now 3.8
The minio client is now deconstructable by Django, fixes migrations.
Improved presigned urls with non standard base urls
Removed accidentally left over debug print from previous release
Also new settings: MINIO_STORAGE_MEDIA_OBJECT_METADATA and MINIO_STORAGE_STATIC_OBJECT_METADATA
example:
MINIO_STORAGE_MEDIA_OBJECT_METADATA = {"Cache-Control": "max-age=1000"}
Minio has changed in the last months to be more picky about path names so we now enure that we don't create path prefixes with a // suffix.
https://github.com/py-pa/django-minio-storage/commit/7086f125ed74b157240bae10c589ce785ca93bbf
Added settings MINIO_STORAGE_ASSUME_MEDIA_BUCKET_EXISTS and MINIO_STORAGE_ASSUME_STATIC_BUCKET_EXISTS
https://github.com/py-pa/django-minio-storage/commit/1532e34c7dcecbc2cf3ca0805d6fbf42b57c25ba
There leaked file descriptors were only freed by the gargabe collector before this fix so if you have farily tight loop that does something to a lot of files while not generating a lot of garbage to trigger the gc.
$ python manage.py minio
usage: minio [-h] [--class CLASS] [--bucket BUCKET] [--version]
[-v {0,1,2,3}] [--settings SETTINGS] [--pythonpath PYTHONPATH]
[--traceback] [--no-color] [--force-color]
{check,create,delete,ls,policy} ...
...
minio:
--class CLASS Storage class to modify (media/static are short names
for default classes)
--bucket BUCKET bucket name (default: storage defined bucket if not
set)
subcommands:
valid subcommands
{check,create,delete,ls,policy}
check check bucket
create make bucket
delete remove an empty bucket
ls list bucket objects or buckets
policy get or set bucket policy
- MINIO_STORAGE_AUTO_CREATE_..._POLICY now has more options (see Policy enum)
- MINIO_STORAGE_AUTO_CREATE_..._POLICY now defaults to GET_ONLY
- minio_bucket
- minio_bucket_policy
https://github.com/py-pa/django-minio-storage/commit/9300d3d0b819672dbae788155258ff499788691c
https://github.com/py-pa/django-minio-storage/commit/5084b954ad0ba0afad340a8d1010ccd2e491a30c
https://github.com/py-pa/django-minio-storage/commit/960961932bcef8c17fbb774f0ef5fa3022af15a2