From 8a16b9fe4dd7b0f747d462b900579ed91c673d69 Mon Sep 17 00:00:00 2001 From: "Vladislav A. Proskurov" Date: Thu, 5 Sep 2024 16:22:17 +0400 Subject: [PATCH 1/6] build: raise requirements --- pyproject.toml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6458358..b21a5d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,18 +23,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 From 6302fafbb15f03c5d5b3dc70e9e043a2dc650028 Mon Sep 17 00:00:00 2001 From: "Vladislav A. Proskurov" Date: Thu, 5 Sep 2024 16:27:32 +0400 Subject: [PATCH 2/6] build: add requests --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index b21a5d4..314d0cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,7 @@ dependencies = [ "pytz>=2024.1", "PyYAML>=6.0.1", "python-dotenv>=1.0.1", + "requests>=2.32.3", ] [tool.setuptools.dynamic] From f01d16e327999a588a1b5af7392dfb70098c8bf4 Mon Sep 17 00:00:00 2001 From: "Vladislav A. Proskurov" Date: Thu, 5 Sep 2024 16:27:46 +0400 Subject: [PATCH 3/6] test: test downloading --- tests/test_download_file.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/test_download_file.py 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") From 9c0ede0dccf1ece3e0ccc2fae24ac40a00276add Mon Sep 17 00:00:00 2001 From: "Vladislav A. Proskurov" Date: Thu, 5 Sep 2024 16:31:46 +0400 Subject: [PATCH 4/6] build: add python-dateutil --- pyproject.toml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 314d0cb..8783156 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,13 +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", - "python-dotenv>=1.0.1", - "requests>=2.32.3", + "humanize>=4.9.0" + "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] From 21195fc1f46e4217b71e5c91c80bd191a9f6396b Mon Sep 17 00:00:00 2001 From: "Vladislav A. Proskurov" Date: Thu, 5 Sep 2024 16:35:24 +0400 Subject: [PATCH 5/6] build: , --- pyproject.toml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8783156..e548e84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,14 +9,14 @@ authors = [ {name = "Vladislav A. Proskurov", email = "rilshok@pm.me"}, ] dependencies = [ - "humanize>=4.9.0" - "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" + "humanize>=4.9.0", + "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] From ec77dac3c66def85eee3ac6efdfb9481b9cba1f7 Mon Sep 17 00:00:00 2001 From: "Vladislav A. Proskurov" Date: Thu, 5 Sep 2024 16:38:35 +0400 Subject: [PATCH 6/6] feat: v0.1.7 --- src/iokit/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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