Changelog#

You can test the unpublished version of cihai-cli before its released, see developmental releases.

  • pip:

    $ pip install --user --upgrade --pre cihai-cli
    
  • pipx:

    $ pipx install --suffix=@next cihai-cli --pip-args '\--pre' --include-deps --force
    

    Then use cihai@next info .

cihai-cli 0.27.x (unreleased)#

Development#

  • poetry: 1.7.1 -> 1.8.1

    See also: https://github.com/python-poetry/poetry/blob/1.8.1/CHANGELOG.md

  • ruff 0.2.2 -> 0.3.0 (#309)

    Related formattings. Update CI to use ruff check . instead of ruff ..

    See also: https://github.com/astral-sh/ruff/blob/v0.3.0/CHANGELOG.md

cihai-cli 0.26.0 (2024-02-09)#

What’s new#

  • cihai: 0.30.0 -> 0.31.0 (#308):

    Bump UNIHAN compatibility from 11.0.0 to 15.1.0 (released 2023-09-01, revision 35).

    • unihan-etl: 0.29.0 -> 0.33.1

      • 0.30.1 -> 0.33: UNIHAN compatibility bumped to 15.1.0.

      • 0.29.0 -> 0.30.1: Fix kRSUnicode double apostrophes.

Development#

  • Strengthen linting (#307)

    • Add flake8-commas (COM)

      • https://docs.astral.sh/ruff/rules/#flake8-commas-com

      • https://pypi.org/project/flake8-commas/

    • Add flake8-builtins (A)

      • https://docs.astral.sh/ruff/rules/#flake8-builtins-a

      • https://pypi.org/project/flake8-builtins/

    • Add flake8-errmsg (EM)

      • https://docs.astral.sh/ruff/rules/#flake8-errmsg-em

      • https://pypi.org/project/flake8-errmsg/

cihai-cli 0.25.0 (2023-12-09)#

Maintenance only, no bug fixes, or new features

Development#

  • cihai: 0.29.0 -> 0.30.0

    • pydocstyle docstrings

    • Bug fixes for unused character utility functions

CI#

  • Move CodeQL from advanced configuration file to GitHub’s default

  • ci: Add pydocstyle rule to ruff (#304)

Documentation#

  • Add docstrings to functions, methods, classes, and packages (#304)

cihai-cli 0.24.0 (2023-11-19)#

Maintenance only, no bug fixes, or new features

Packaging#

  • Move pytest configuration to pyproject.toml (#301)

  • 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#

  • unihan-etl: 0.28.0 -> 0.29.0 (maintenance release)

  • ruff: Remove ERA / eradicate plugin

    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 black to ruff format (#302)

    This retains the same formatting style of black while eliminating a dev dependency by using our existing rust-based ruff linter.

  • CI: Update action packages to fix warnings

cihai-cli 0.23.0 (2023-07-22)#

Maintenance only, no bug fixes, or new features

Development#

  • cihai: 0.27.0 -> 0.28.0

    Update pytest plugin

cihai-cli 0.22.0 (2023-07-18)#

Maintenance only, no bug fixes, or new features

Development#

  • cihai: 0.26.0 -> 0.27.0 (#300)

    Includes unihan-etl 0.25.2 -> 0.27.0 pytest fixes

cihai-cli 0.21.2 (2023-07-18)#

Maintenance only, no bug fixes, or new features

Development#

  • Ruff: Code quality fixes (#299)

cihai-cli 0.21.1 (2023-07-02)#

Bug Fixes#

  • Fix cihai info and cihai reverse (#297, #298)

cihai-cli 0.21.0 (2023-07-01)#

Maintenance only, no bug fixes, or new features

Development#

  • ruff: Increase code quality strictness, implement code improvements (#295)

  • cihai: 0.25.0 -> 0.26.0 (linting updates through stricter ruff settings)

    unihan-etl: 0.24.0 -> 0.25.0 (linting improvements in the same way)

cihai-cli 0.20.0 (2023-06-25)#

Maintenance only, no bug fixes, or new features

Development#

  • cihai: 0.23.0 -> 0.25.0 (#298)

    • Subdependency unihan-etl: 0.23.1 -> 0.24.0

cihai-cli 0.19.0 (2023-06-24)#

Maintenance only, no bug fixes, or new features

Development#

  • cihai: 0.21.0 to 0.22.1

    Sub-dependency unihan-etl to 0.21.1 -> 0.22.2, which has dataclasses.dataclass-based configuration.

cihai-cli 0.18.0 (2023-06-19)#

Development#

  • cihai: Bumps to 0.22.1

    Reliance on pathlib-based file paths, typings.

cihai-cli 0.17.0 (2023-06-04)#

Maintenance only, no bug fixes, or new features

Breaking changes#

  • Python 3.7 Dropped

    Python 3.7 support has been dropped (#290)

    Its end-of-life is June 27th, 2023 and Python 3.8 will add support for typing.TypedDict and typing.Protocol out of the box without needing typing_extensions.

Internal improvements#

  • Typings: Add --strict mypy compliance (#277)

  • Move from pytest’s tmp_dir (py.path.local) to tmp_path (pathlib.Path), #292

  • Remove unnecessary use of typing_extension’s TypedDict (#292)

    Note: typing_extension’s TypedDict is still used for NotRequired TypedDicts until the minimum python version supports them (3.11 via PEP-655)

  • cihai:

    • Update 0.19.0 -> 0.20.0: Add mypy strict typings

    • Update 0.20.0 -> 0.21.0: SQLAlchemy 2.0 (#292)

cihai-cli 0.16.0 (2023-05-29)#

Maintenance only, no bug fixes, or new features

Breaking changes#

0.16.0 will be the 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

  • Update cihai 0.18.3 -> 0.19.0 and unihan-etl 0.18.2 -> 0.19.1

    Moved to linting ruff (no changes to the production package itself)

cihai-cli 0.15.2 (2022-10-02)#

Maintenance only, no bug fixes or new features

Development#

  • Update cihai 0.18.1 -> 0.18.3

    • Sub-dependency updated: unihan-etl 0.18.1 -> 0.18.2

      Typing update for merge_dict

Documentation#

  • Add migrations page

  • Add back page on completions

cihai-cli 0.15.1 (2022-10-02)#

Bug fix#

  • CLI: Fix help text descriptions

cihai-cli 0.15.0 (2022-10-02)#

Internal#

Packaging#

  • Drop click dependency (#286)

cihai-cli 0.14.0 (2022-10-01)#

Packages#

  • Update to cihai v0.18.1+ (kaptan dependency removed)

cihai-cli 0.13.1 (2022-10-01)#

Infrastructure#

  • CI speedups (#285)

    • Split out release to separate job so the PyPI Upload docker image isn’t pulled on normal runs

    • Clean up CodeQL

  • Poetry: Bump 1.1.x to 1.2.x

    • Fix click constraint for poetry 1.2 (was missing a comma)

cihai-cli 0.13.0 (2022-09-11)#

This is a maintenance only release, no bugfixes or features.

Development#

Documentation#

cihai-cli 0.12.0 (2022-08-21)#

Internal#

  • cihai v0.16.0 (with strict typings from unihan-etl v0.17.x)

cihai-cli 0.11.0 (2022-08-20)#

Breaking changes#

The CLI version of cihai installed through cihai-cli again

Before (cihai 0.9 to 0.14, cihai-cli 0.5 to 0.10):

$ pip install cihai[cli]

After (cihai 0.15+, cihai-cli 0.11+):

$ pip install cihai-cli

This made deploying cihai + cihai-cli and pinning packages extremely laborious.

We can reinvestigate this model in the future.

via: cihai#326, cihai-cli#279

cihai-cli 0.10.x (2022-08-20)#

Breaking changes#

  • Python 2 compatibility module and imports removed. Python 2.x was officially dropped in 0.7.0 (2021-06-15) via #278

cihai-cli 0.9.0 (2022-08-16)#

Compatibility#

  • Remove python 3.6 support (#269)

  • Add python 3.10 support (#269)

Development#

Infrastructure updates for static type checking and doctest examples.

  • Update poetry to 1.1

    • CI: Use poetry 1.1.12 and install-poetry.py installer (#255 + #269)

    • Relock poetry.lock at 1.1 (w/ 1.1.7’s fix)

  • pyupgrade to python 3.7

  • Initial doctests support added, via #276

  • Initial mypy validation, via #276

  • CI (tests, docs): Improve caching of python dependencies via action/setup-python’s v3/4’s new poetry caching, via #276

  • CI (docs): Skip if no PUBLISH condition triggered, via #276

Tests#

  • Refactor tmpdir -> tmp_path

Documentation#

  • Use furo theme

cihai-cli 0.8.1 (2021-06-16)#

  • Update cihai to 0.12

cihai-cli 0.8.0 (2021-06-16)#

  • #252: Convert to markdown

cihai-cli 0.7.2 (2021-06-15)#

  • Set cihai to 0.11.1+ to fix sqlalchemy issue

cihai-cli 0.7.1 (2021-06-15)#

  • Fix README in packaging

cihai-cli 0.7.0 (2021-06-15)#

  • Update black to 21.6b0

  • Update trove classifiers to 3.9

  • #251 Drop python 2.7 and 3.5. Remove deprecated __future__ and modesets

cihai-cli 0.6.0 (2020-08-09)#

  • #249 Move packaging / publishing to poetry

  • #248 Self host docs

  • #248 Add metadata / icons / etc. for doc site

  • #248 Move travis -> github actions

  • #248 Overhaul Makefiles

cihai-cli 0.5.1 (2020-07-03)#

  • #247 - Move from Pipfile to Poetry

  • Fixed bug in Python 2.x when showing help / “cihai”

cihai-cli 0.5.0 (2019-08-18)#

  • Add project_urls to setup.py

  • Installation is now done via pip --user install cihai[cli]

  • README Fixed to use plain reStructuredText

  • Miscellaneous package updates for pytest, other support packages

  • Loosening of version requirements

cihai-cli 0.5.0a (2018-09-08)#

  • #91 -V / -version now shows the cihai backend version.

cihai-cli 0.4.1 (2018-07-21)#

  • Update Sphinx 1.7.5. to 1.7.6

  • Update cihai 0.8.0 to 0.8.1

    This should fix dependency issues with kaptan / pyyaml

cihai-cli 0.4.0 (2018-06-24)#

  • Add vietnamese phonetic to default output in info command

  • Switch tmuxp config to use pipenv

  • Add configuration / make tests for isort, flake8

  • Add Pipfile

  • Add make sync_pipfile task to sync requirements/.txt* files with *Pipfile*

  • Base package updates

    • cihai 0.7.4 to 0.8.0

  • Developer package updates (linting / docs / testing)

    New:

    • sphinx-click 1.2.0

    • sphinxcontrib-napoleon 0.6.1

    Updated:

    • isort 4.2.5 to 4.3.4

    • flake8 3.3.0 to 3.5.0

    • vulture 0.14 to 0.27

    • sphinx 1.5.6 to 1.7.5

    • alagitpull 0.0.4 to 0.0.21

    • releases 1.3.1 to 1.6.0

    • pytest 3.0.7 to 3.6.2

  • Move documentation over to numpy-style

  • Update LICENSE New BSD to MIT

  • All future commits and contributions are licensed to the cihai software foundation. This includes commits by Tony Narlock (creator).

cihai-cli 0.3.2 (2017-05-26)#

  • Bump cihai version to 0.7.4

cihai-cli 0.3.1 (2017-05-20)#

  • Bump cihai version to 0.7.2

cihai-cli 0.3.0 (2017-05-20)#

  • Output human-friendly fields only by default

  • Use -a or --all to show all fields

  • Rename lookup command to reverse

  • Remove newlines, use click.echo for printing to CLI

  • Fix unicode issues on 2.7 in tests and cli

cihai-cli 0.2.1 (2017-05-20)#

  • CLI variable tweaks

  • Fix package dependency

cihai-cli 0.2.0 (2017-05-20)#

  • Initial project