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.
Added settings MINIO_STORAGE_ASSUME_MEDIA_BUCKET_EXISTS and MINIO_STORAGE_ASSUME_STATIC_BUCKET_EXISTS
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