diff --git a/lazip.py b/lazip.py index 16b7b19..7cd1eda 100644 --- a/lazip.py +++ b/lazip.py @@ -18,7 +18,7 @@ """Lazy ZIP over HTTP""" -__version__ = '0.0.4' +__version__ = '0.0.5' __all__ = ['Filazy', 'Lazip'] from abc import abstractmethod @@ -46,7 +46,7 @@ class ReadOnlyBinaryIOWrapper(IO[bytes]): @property def name(self) -> str: - """File name.""" + """Path to the underlying file.""" return self.file.name def close(self) -> None: @@ -172,7 +172,7 @@ class Filazy(ReadOnlyBinaryIOWrapper): accept_ranges (bool): Whether range requests are supported """ - def __init__(self, session: Session, url: str, + def __init__(self, url: str, session: Session, chunk_size: int = CONTENT_CHUNK_SIZE) -> None: response = session.head(url) response.raise_for_status() diff --git a/pyproject.toml b/pyproject.toml index 7756181..ba1553c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,11 +6,11 @@ build-backend = 'flit_core.buildapi' module = 'lazip' author = 'Nguyễn Gia Phong' author-email = 'mcsinyx@disroot.org' -home-page = 'https://github.com/McSinyx/lazip' +home-page = 'https://git.disroot.org/McSinyx/lazip' requires = ['requests'] description-file = 'README.md' classifiers = [ - 'Development Status :: 1 - Planning', + 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)', 'Natural Language :: English', diff --git a/tox.ini b/tox.ini index 67ad08a..9933b4d 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ deps = mypy commands = flake8 - isort -c --diff + isort . --check --dif mypy lazip.py [flake8]