Skip to content

Commit

Permalink
version bump and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
AbstractUmbra committed Mar 15, 2022
1 parent 5357aa5 commit 2391b7e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
2.0.12
2.0.13

API Version 5.5.6!

Expand All @@ -7,14 +7,25 @@ API Version 5.5.6!
## Added
- `hondana.Relationship` type was added as a container type to relationship keys in payloads. (684447e75088302d42ca803ca31eee190a4aafdd)
- Added `.relationship` property to all relevant types to use the new `Relationship` container. (8d2c7584879a14a0e47fdcbe23497efe1ac8b7e7)
- `Manga.raw_description` property added to access raw payload to resolve #20. (d1b5a9824e3d926a52ea319aaa89d29eacc03d10)
- `Manga.localized_title` and `Manga.localized_description` locale alternative methods. (2b1091000fb373dc72d283458464d05e60bc93ca)
- (#18) Mostly internal change with how collection types work from the API. Mostly `XFeed` classes. Also add a `.items()` method to these. (f8cf30d523e9b9264e818bad467515297c718c8a)
- Add missing `fan_box` attribute on `Author` and `Artist`. (7ab0ef0ac4c08b01a579e33a095c0578c8fdb8c9)
- Expose `Manga.alt_titles`. (dbae6aeb36022b7b8e7fcecaf9a8c9836ff31fbb)
- Added missing attributes of `ScanlatorGroup` as well as a new util for creating string formats that MangaDex accepts for publish delays. (2d15d9cc2b4573015a71250821ce9f56f4024fc1)
- First attempt at a testing suite for the library. (1755fffde40faaeed35710f9df6dcfac630bbddf)

## Changes
- `Client.dump_refresh_token` is now kwarg only, and now accepts a `file` kwarg, which controls if it dumps to a file or not. (c5a348eaeb1a650c5ddd3efc29b3cdd8a3899772)
- Reworked internals of `Client.update_tags` to use the new `Client.get_tags`. (f4dc77aab922e8a33537be09af80763a1d40171d)
- Internal change to how datetime strings are sent to MangaDex. (b9c964bcc97964b2146149469710d726bff54026)
- Flatten attributes `Manga.alternate_titles` and `Tag.descriptions` to one `LocalisedString` instead of a list of them. (278651f3bcc3397dcfe75b7ce5cf061a0227005d and 4a149d7c1b2373439a70b8779f9bab0fc28c44cf)

## Fixes
- Rare case where `Manga.description` can `AttributeError` due to PHP-isms. (6bc91d03ca10052038397205e8bced35734434fe)
- (#19) Rare case where `Manga.description` can `AttributeError` due to PHP-isms. (6bc91d03ca10052038397205e8bced35734434fe and e56e9ce7557c330fefb1bf9964608a6bad8048e3)
- Add extra layer of http request handling. (18434dcd3be880660828dd3d3503f74c926fe1de)
- (#21) `Chapter.scanlator_groups` would only return one instance, even if many were present. `Chapter.get_scanlator_groups()` filtered for the wrong type name, so would never return results. (45b54bfaff9f611e9c21fb3c582623ff8ec4505a)
- `Manga.localised_title` now checks the correct attribute, not a single element dict. (e364dc8ec617b386ff89e6d93ef9b532db42a4ee)

### Notes
- `Client.view_manga` method has been marked as deprecated in favour of `Client.view_manga` and will be removed in version 3.0. (588c2fdc2956db5435c2aa5792281d3a78ef7396)
4 changes: 2 additions & 2 deletions hondana/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
__author__ = "AbstractUmbra"
__license__ = "MIT"
__copyright__ = "Copyright 2021-present AbstractUmbra"
__version__ = "2.0.12"
__version__ = "2.1.0"

import logging
from typing import Literal, NamedTuple
Expand Down Expand Up @@ -63,6 +63,6 @@ class VersionInfo(NamedTuple):
serial: int


version_info: VersionInfo = VersionInfo(major=2, minor=0, micro=12, releaselevel="final", serial=0)
version_info: VersionInfo = VersionInfo(major=2, minor=1, micro=0, releaselevel="final", serial=0)

logging.getLogger(__name__).addHandler(logging.NullHandler())
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Hondana"
version = "2.0.12"
version = "2.1.0"
description = "An asynchronous wrapper around the MangaDex v5 API"
authors = ["Alex Nørgaard <Umbra@AbstractUmbra.dev>"]

Expand Down Expand Up @@ -40,6 +40,7 @@ furo = { version = "*", optional = true }
[tool.poetry.dev-dependencies]
black = "^21.6b0"
poethepoet = "^0.11.0"
pytest = "^7.0.1"

[tool.poetry.extras]
docs = ["sphinx", "sphinxcontrib-trio", "furo"]
Expand Down Expand Up @@ -80,10 +81,11 @@ spec = "poetry run python _api_dl.py"
install = "poetry install"
format = "poetry run black ."
types = "poetry run pyright --ignoreexternal --lib --verifytypes hondana"
tests = "poetry run pytest"
docs = "poetry run sphinx-build -a -E -n -T -W --keep-going docs/ docs/build"
tags = { script = "hondana.utils:__build_tags()" }
uninstall = "poetry run pip uninstall hondana -y"
pre = ["install", "format", "types", "docs", "tags", "uninstall"]
pre = ["install", "format", "types", "tests", "docs", "tags", "uninstall"]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 2391b7e

Please sign in to comment.