Skip to content

Commit

Permalink
feat: v0.1.7 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
rilshok committed Sep 5, 2024
2 parents 8d42876 + ec77dac commit 982fdde
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
23 changes: 13 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ authors = [
{name = "Vladislav A. Proskurov", email = "[email protected]"},
]
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]
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/iokit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions tests/test_download_file.py
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 982fdde

Please sign in to comment.