Changelog¶
To install the unreleased unihan-db version, see developmental releases.
pip:
$ pip install --user --upgrade --pre unihan-db
unihan-db 0.19.x (unreleased)¶
- Add your latest changes from PRs here 
Development¶
chore: Implement PEP 563 deferred annotation resolution (#348)¶
- Add - from __future__ import annotationsto defer annotation resolution and reduce unnecessary runtime computations during type checking.
- Enable Ruff checks for PEP-compliant annotations: 
For more details on PEP 563, see: https://peps.python.org/pep-0563/
unihan-db 0.18.0 (2024-12-21)¶
Maintenance only, no bug fixes, or new features
Breaking changes¶
Development¶
unihan-db 0.17.0 (2024-11-26)¶
Maintenance only, no bug fixes, or new features
Development¶
Project and package management: poetry to uv (#344)¶
uv is the new package and project manager for the project, replacing Poetry.
Build system: poetry to hatchling (#344)¶
Build system moved from poetry to hatchling.
unihan-db 0.16.0 (2024-11-25)¶
Breaking Changes: UNIHAN Revision 37 (#345)¶
Updates for UNIHAN Revision 37:
- Bump unihan-etl 0.34.0 -> 0.35.0 
Updated fields¶
- kRSUnicode: Support for double and triple apostrophes for simplified radicals.
Removed fields¶
Documentation¶
- Automatically linkify links that were previously only text. 
unihan-db 0.15.0 (2024-04-01)¶
Breaking changes: UNIHAN Revision 35 (#330)¶
- Bump unihan-etl 0.27.0 -> 0.34.0 
Removed fields¶
- 15.1.0: kHKSCS, kIRGDaiKanwaZiten, kKPS0, kKPS1, kKSC0, kKSC1, kRSKangXi 
- 13.0.0: kRSJapanese, kRSKanWa, kRSKorean 
- 12.0.0: kDefaultSortKey (private property) 
Development¶
- Project and package management: poetry to uv (#344) - uv is the new package and project manager for the project, replacing Poetry. 
- Aggressive automated lint fixes via - ruff(#333)- via ruff v0.3.4, all automated lint fixes, including unsafe and previews were applied: - ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; ruff format . - Branches were treated with: - git rebase \ --strategy-option=theirs \ --exec 'poetry run ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; poetry run ruff format .; git add src tests; git commit --amend --no-edit' \ origin/master 
- 
Related formattings. Update CI to use ruff check .instead ofruff ..See also: https://github.com/astral-sh/ruff/blob/v0.3.0/CHANGELOG.md 
- 
- Add flake8-commas (COM) 
- Add flake8-builtins (A) 
- Add flake8-errmsg (EM) 
 
unihan-db 0.14.0 (2023-12-10)¶
Bug fixes¶
Development¶
- unihan-etl: 0.29.0 -> 0.30.0post0 - Documentation updates 
CI¶
Documentation¶
Tests¶
- 
These are high-level integrative tests of the same example code the project uses in documentation. This brings code coverage from 69.77 to 93.92%. A note on test times - CI (GitHub Actions) can take 5-6 minutes per test - This may change in future cases when UNIHAN is cached. 
- Initial (cold) py.tests on local environments won’t be cached and will take similar times. Subsequent tests can be <0.6 seconds. 
 
unihan-db 0.13.0 (2023-11-19)¶
Packaging¶
- unihan-etl: 0.28.0 -> 0.29.0 
- Add Python 3.12 to trove classifiers 
- Packaging (poetry): Fix development dependencies - Per Poetry’s docs on managing dependencies and - poetry check, we had it wrong: Instead of using extras, we should create these:- [tool.poetry.group.group-name.dependencies] dev-dependency = "1.0.0" - Which we now do. 
Development¶
- ruff: Remove ERA / - eradicateplugin- This rule had too many false positives to trust. Other ruff rules have been beneficial. 
- Poetry: 1.6.1 -> 1.7.0 - See also: https://github.com/python-poetry/poetry/blob/1.7.0/CHANGELOG.md 
- Move formatting from - blackto- ruff format(#321)- This retains the same formatting style of - blackwhile eliminating a dev dependency by using our existing rust-based- rufflinter.
- CI: Update action packages to fix warnings - dorny/paths-filter: 2.7.0 -> 2.11.1 
 
unihan-db 0.12.0 (2023-07-18)¶
Development¶
unihan-db 0.11.0 (2023-07-01)¶
Maintenance only, no bug fixes, or new features
Development¶
unihan-db 0.10.0 (2023-06-24)¶
Maintenance only, no bug fixes, or new features
Development¶
- unihan-etl: - 
Subdependency updated for zhon: 1.1.5 -> 2.0.0 (#289, fixes #282) Fixes pytest warning related to regular expressions. 
- 
Package introduces configurable application directories (for test purposes) 
- 
dataclasses.dataclass-based configuration
- 0.19.2 -> 0.20.0 - Drops python 3.7, normalizes - typingimports
 
- 
unihan-db 0.9.0 (2023-06-10)¶
Breaking changes¶
- SQLAlchemy: Upgraded to v2 (#311) - Downstream packages will require SQLAlchemy v2 at a minimum. - Benefits in include: Built-in types for mypy, being able to use SQLAlchemy core API against ORM entities. - See also: What’s new in SQLAlchemy 2.0, Migrating to SQLAlchemy 2.0 
- Python 3.7 Dropped - Python 3.7 support has been dropped (#309) - Its end-of-life is June 27th, 2023 and Python 3.8 will add support for - typing.TypedDictand- typing.Protocolout of the box without needing- typing_extensions.
Development¶
unihan-db 0.8.0 (2023-05-13)¶
Maintenance only, no bug fixes or features
Breaking¶
- Final Python 3.7 release 
Internal improvements¶
- Move formatting, import sorting, and linting to ruff. - This rust-based checker has dramatically improved performance. Linting and formatting can be done almost instantly. - This change replaces isort, flake8 and flake8 plugins. 
- poetry: 1.4.0 -> 1.5.0 - See also: https://github.com/python-poetry/poetry/releases/tag/1.5.0 
unihan-db 0.7.2 (2023-05-13)¶
Packaging¶
- Bump unihan-etl from 0.18.1 -> 0.18.2 - Typing update for - merge_dict
unihan-db 0.7.1 (2022-10-01)¶
Packaging¶
- Update unihan-etl to v0.18.1+ (Add missing PyYAML dependency) 
Infrastructure¶
Development¶
- mypy: Unignore unihan-etl package (which is now typed) 
unihan-db 0.7.0 (2022-09-11)¶
Maintenance only release, no fixes or features
Development¶
Documentation¶
- Render changelog in - linkify_issues(#303)
- Fix Table of contents rendering with sphinx autodoc with - sphinx_toctree_autodoc_fix(#303)
- Test doctests in our docs via - pytest_doctest_docutils(built on- doctest_docutils) (#303)
unihan-db 0.6.0 (2022-08-21)¶
Internal¶
- Update unihan-etl 0.16.0 -> 0.17.2: - unihan-etl 0.16.0 adds - --no-cache/- cacheas an option
- unihan-etl 0.17.0 adds type annotations ( - mypy --strict)
- unihan-etl 0.17.1 fixes bugs from 0.17.0’s annotations 
- unihan-etl 0.17.2 docs / changelog issue linking update 
 
unihan-db 0.5.0 (2022-08-20)¶
Breaking changes¶
- Bump in unison with other cihai projects deprecating compat modules, via #299. - Python 2.x was already dropped in 0.2.0 (2021-06-15). There was no compat module in this project, and it only only removed a duplicate function ( - merge_dict()) and imported the one from- unihan_etl.- Bump unihan-etl to 0.15.0+ (to avoid any chance of using compat imports from it in the future) 
 
unihan-db 0.4.0 (2022-08-16)¶
Compatibility¶
Development¶
Infrastructure updates for static type checking and doctest examples.
Documentation¶
- Move to - furotheme
unihan-db 0.3.0 (2021-06-15)¶
- #269: Convert to markdown 
unihan-db 0.2.0 (2021-06-15)¶
- Update - blackto 21.6b0
- Update trove classifiers to 3.9 
- #267 Drop python 2.7, 3.5. Remove unused - __future__and modesets.
unihan-db 0.1.0 (2020-08-09)¶
- Major overhaul of docs (self-host + add icons and metadata) #262 
- Move from travis to github actions #262 
- Move build / publish of packaging to poetry #263 
- Add README docs on publishing versions, linting, and development 
- Move from Pipfile to Poetry (https://github.com/cihai/unihan-db/pull/261) 
- Speed up importing initial data 
- Support for more fields 
- Support for appdirs (XDG directory specification) 
- Zero-config sqlite default 
- Bump unihan-etl to 0.9.5 
- Add - project_urlsto setup.py
- Use - collectionsimport that’s compatible with python 2 and 3
- Loosen version constraints 
unihan-db 0.0.0 (2017-05-29)¶
This had no pypi release
- Initial commit