Skip to content

Commit

Permalink
Bump dependencies and fix small issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
nekitdev committed Nov 18, 2023
1 parent c3cc817 commit 9837d5f
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 34 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Or by directly specifying it in the configuration like so:

```toml
[tool.poetry.dependencies]
"gd.py" = "^1.0.1"
"gd.py" = "^1.0.2"
```

Alternatively, you can add it directly from the source:
Expand Down
2 changes: 1 addition & 1 deletion gd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__title__ = "gd"
__author__ = "nekitdev"
__license__ = "MIT"
__version__ = "1.0.1"
__version__ = "1.0.2"

from gd import (
api,
Expand Down
8 changes: 4 additions & 4 deletions gd/memory/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ class Struct(Base):
VIRTUAL: ClassVar[bool] = DEFAULT_VIRTUAL

@classmethod
@cache
@cache # type: ignore
def reconstruct(cls: TS, config: PlatformConfig) -> TS:
return struct(cls.PACKED, cls.VIRTUAL, config)(cls)

@classmethod
def reconstruct_for(cls: TS, state: AbstractState) -> TS:
return cls.reconstruct(state.config)
return cls.reconstruct(state.config) # type: ignore


TU = TypeVar("TU", bound="Type[Union]")
Expand All @@ -57,13 +57,13 @@ class Union(Base):
"""Represents `union` types."""

@classmethod
@cache
@cache # type: ignore
def reconstruct(cls: TU, config: PlatformConfig) -> TU:
return union(config)(cls)

@classmethod
def reconstruct_for(cls: TU, state: AbstractState) -> TU:
return cls.reconstruct(state.config)
return cls.reconstruct(state.config) # type: ignore


S = TypeVar("S", bound=Struct)
Expand Down
6 changes: 3 additions & 3 deletions gd/run_iterables.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from async_extensions.collect import collect_iterable_results
from iters.async_utils import async_iter, async_list
from typing_aliases import AnyError, AnyIterable, is_instance
from typing_aliases import AnyErrorType, AnyIterable, is_instance
from wraps.result import is_error

__all__ = ("run_iterables",)
Expand All @@ -13,7 +13,7 @@


async def run_iterables(
iterables: AnyIterable[AnyIterable[T]], *ignore: Type[AnyError]
iterables: AnyIterable[AnyIterable[T]], *ignore: AnyErrorType
) -> AsyncIterator[T]:
coroutines = [async_list(iterable) async for iterable in async_iter(iterables)]

Expand All @@ -23,7 +23,7 @@ async def run_iterables(
if is_error(result):
error = result.unwrap_error()

if is_instance(result, ignore):
if is_instance(error, ignore):
continue

raise error
Expand Down
51 changes: 26 additions & 25 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "gd.py"
version = "1.0.1"
version = "1.0.2"
description = "An API wrapper for Geometry Dash written in Python."
authors = ["nekitdev"]
license = "MIT"
Expand Down Expand Up @@ -32,15 +32,15 @@ include = "gd"
gd = "gd.main:gd"

[tool.poetry.dependencies]
python = ">= 3.7"
python = ">= 3.8"

aiohttp = ">= 3.8.4"
click = ">= 8.1.3"
tqdm = ">= 4.65.0"
aiohttp = ">= 3.9.0"
click = ">= 8.1.7"
tqdm = ">= 4.66.1"
yarl = ">= 1.9.2"

attrs = ">= 23.1.0"
cattrs = "22.2.0" # ">= 23.1.3"
cattrs = ">= 23.2.1"

pendulum = ">= 2.1.2"

Expand All @@ -55,24 +55,26 @@ colors-core = ">= 1.0.1"
async-extensions = ">= 1.4.1"
iters = ">= 0.13.1"

funcs = ">= 0.8.0"

[tool.poetry.dependencies.lxml]
version = ">= 4.9.2"
version = ">= 4.9.3"
optional = true

[tool.poetry.dependencies.pillow]
version = ">= 9.5.0"
version = ">= 10.1.0"
optional = true

[tool.poetry.dependencies.pycryptodome]
version = ">= 3.18.0"
version = ">= 3.19.0"
optional = true

[tool.poetry.dependencies.fastapi]
version = ">= 0.95.2"
version = ">= 0.104.1"
optional = true

[tool.poetry.dependencies.uvicorn]
version = ">= 0.22.0"
version = ">= 0.24.0"
optional = true
extras = ["standard"]

Expand All @@ -86,45 +88,44 @@ server = ["fastapi", "uvicorn"]
optional = true

[tool.poetry.group.format.dependencies]
black = "23.3.0"
black = "23.11.0"
flake8-pyproject = "1.2.3"

[tool.poetry.group.format.dependencies.flake8]
version = "6.0.0"
version = "6.1.0"
python = ">= 3.8.1"

[tool.poetry.group.format.dependencies.isort]
version = "5.12.0"
python = ">= 3.8"

[tool.poetry.group.check]
optional = true

[tool.poetry.group.check.dependencies]
mypy = "1.3.0"
mypy = "1.7.0"

types-pillow = "9.5.0.4"
types-tqdm = "4.65.0.1"
types-pillow = "10.1.0.2"
types-tqdm = "4.66.0.1"
lxml-stubs = "0.4.0"

[tool.poetry.group.test]
optional = true

[tool.poetry.group.test.dependencies]
pytest = "7.3.1"
pytest = "7.4.3"
pytest-cov = "4.1.0"
pytest-benchmark = "4.0.0"
pytest-asyncio = "0.21.0"
pytest-asyncio = "0.21.1"

[tool.poetry.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
mkdocs = "1.4.3"
mkdocs-material = "9.1.15"
mkdocs = "1.5.3"
mkdocs-material = "9.4.9"

[tool.poetry.group.docs.dependencies.mkdocstrings]
version = "0.22.0"
version = "0.24.0"
extras = ["python"]

[tool.poetry.group.dev]
Expand All @@ -137,7 +138,7 @@ changelogging = "1.3.0"
optional = true

[tool.poetry.group.build.dependencies]
maturin = "1.1.0"
maturin = "1.3.2"

[tool.flake8]
max_line_length = 100
Expand Down Expand Up @@ -205,7 +206,7 @@ warn_unused_ignores = false # compatibility

[tool.changelogging]
name = "gd.py"
version = "1.0.1"
version = "1.0.2"
url = "https://github.com/nekitdev/gd.py"
directory = "changes"
output = "CHANGELOG.md"
Expand All @@ -222,5 +223,5 @@ wrap_size = 100
display = ["feature", "change", "fix", "security", "deprecation", "removal", "internal"]

[build-system]
requires = ["poetry-core >= 1.6.1", "maturin >= 1.1.0", "entrypoint >= 1.4.0"]
requires = ["poetry-core >= 1.8.1", "maturin >= 1.3.2", "entrypoint >= 1.4.0"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 9837d5f

Please sign in to comment.