diff --git a/pyproject.toml b/pyproject.toml index 6458358..e548e84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,12 +9,14 @@ authors = [ {name = "Vladislav A. Proskurov", email = "rilshok@pm.me"}, ] dependencies = [ - "jsonlines>=4.0.0", "humanize>=4.9.0", - "typing-extensions>=4.8.0", - "pytz>=2024.1", - "PyYAML>=6.0.1", + "jsonlines>=4.0.0", + "python-dateutil>=2.8.2", "python-dotenv>=1.0.1", + "PyYAML>=6.0.1", + "pytz>=2024.1", + "requests>=2.32.3", + "typing-extensions>=4.8.0", ] [tool.setuptools.dynamic] @@ -23,18 +25,19 @@ version = {attr = "iokit.__version__"} [project.optional-dependencies] dev = ["iokit[lint,test]"] lint = [ - "mypy", - "ruff", - "types-pytz", + "mypy>=1.7.1", + "ruff>=0.6.3", + "types-pytz>=2024.1", ] test = [ - "pytest", - "pytest-cov", + "pytest>=8.2.2", + "pytest-cov>=5.0.0", ] [project.urls] Homepage = "https://github.com/rilshok/iokit" -Repository = "https://github.com/rilshok/iokit" +Repository = "https://github.com/rilshok/iokit.git" +Issues = "https://github.com/rilshok/iokit/issues" [tool.mypy] strict = true diff --git a/src/iokit/__init__.py b/src/iokit/__init__.py index 360245d..6cdd4ff 100644 --- a/src/iokit/__init__.py +++ b/src/iokit/__init__.py @@ -15,7 +15,7 @@ "save_file", "save_temp", ] -__version__ = "0.1.6" +__version__ = "0.1.7" from .extensions import Dat, Env, Gzip, Json, Jsonl, Tar, Txt, Yaml from .state import State, filter_states, find_state diff --git a/tests/test_download_file.py b/tests/test_download_file.py new file mode 100644 index 0000000..5c6fc8e --- /dev/null +++ b/tests/test_download_file.py @@ -0,0 +1,7 @@ +from iokit import download_file + + +def test_download_file(): + uri = "https://raw.githubusercontent.com/rilshok/iokit/main/LICENSE" + state = download_file(uri) + assert "MIT License" in state.data.getvalue().decode("utf-8")