From c607d75e35247a44b4a9e78de60d4307acc13a25 Mon Sep 17 00:00:00 2001 From: Ian Epperson Date: Mon, 18 Jan 2021 19:01:50 -0800 Subject: [PATCH] Resume support for Python3.6 --- .github/workflows/python-package.yml | 2 +- README.md | 2 +- filestorage/VERSION | 2 +- filestorage/file_item.py | 2 +- filestorage/file_item.pyi | 3 +-- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index e240b34..fe5765e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: [3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 diff --git a/README.md b/README.md index cd64162..516a433 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # filestorage A Python library to make storing files simple and easy. -> :warning: Although there are extensive tests within this project for Python 3.7, 3.8 and 3.9, it is a young project and there may be bugs and security holes. Be sure and test thoroughly prior to use in a production environment. +> :warning: Although there are extensive tests within this project for Python 3.6, 3.7, 3.8 and 3.9, it is a young project and there may be bugs and security holes. Be sure and test thoroughly prior to use in a production environment. It is primarily intended to deal with file uploads to a static files directory or an object service like [AWS S3](https://aws.amazon.com/s3/?nc2=h_ql_prod_st_s3) or [Linode](https://www.linode.com/products/object-storage/). diff --git a/filestorage/VERSION b/filestorage/VERSION index 81340c7..bbdeab6 100644 --- a/filestorage/VERSION +++ b/filestorage/VERSION @@ -1 +1 @@ -0.0.4 +0.0.5 diff --git a/filestorage/file_item.py b/filestorage/file_item.py index d435e0a..b288613 100644 --- a/filestorage/file_item.py +++ b/filestorage/file_item.py @@ -5,7 +5,7 @@ from . import utils -class SyncReader(BinaryIO): +class SyncReader: def __init__(self, item: 'FileItem'): self.data = item.data self.filename = item.filename diff --git a/filestorage/file_item.pyi b/filestorage/file_item.pyi index 3d239b4..100657c 100644 --- a/filestorage/file_item.pyi +++ b/filestorage/file_item.pyi @@ -1,8 +1,7 @@ -import abc from . import utils as utils from typing import Any, BinaryIO, NamedTuple, Optional, Tuple -class SyncReader(BinaryIO, metaclass=abc.ABCMeta): +class SyncReader: data: Any = ... filename: Any = ... def __init__(self, item: FileItem) -> None: ...