v2.1.0
π₯ BREAKING CHANGES
-
due to
74e6172
- reimplement v1 API with FastAPI (commit by @dhdaines):/api/v1 error status code for validation errors is always 422, no longer 400 or 404
β¨ Major New Features
74e6172
- reimplement v1 API with FastAPI (commit by @dhdaines)605ccd3
- reimplement Studio app with FastAPI (commit by @dhdaines)c214c6f
- add /api/v2 to studio but also make it standaloneable (commit by @dhdaines)
β¨ New Features
36e4dcc
- switch to hatch and dynamic versioning (commit by @dhdaines)e0a0219
- build: autogenerate requirements.txt with hatch-pip-compile (commit by @dhdaines)1fe3385
- add a G2P_LOGLEVEL environment variable (commit by @dhdaines)bd33314
- add redirections for backward compatibility (commit by @dhdaines)74c5c47
- new API supporting textual alignments (commit by @dhdaines)7909e6e
- Add sal-apa generic mapping for APA-based Salish writing systems (commit by @joanise)077afc2
- add logic to auto-delete as_is support in g2p 3 (commit by @joanise)d4bffad
- g2p convert accepts - for stdin and linux /dev/ pipes (commit by @joanise)f0cf073
- g2p convert now accepts --file option to read a file (commit by @joanise)a938917
- bump the current major.minor version to 2.1 (commit by @joanise)
π Bug Fixes
1cc2afe
- ci: eventlet 0.36.0 considered harmful (commit by @dhdaines)d6004f9
- style: bump black to 24.3.0 to fix black's first CVE (commit by @joanise)05f51f9
- do not try to send whole lexicon over the wire (commit by @dhdaines)49ad2ff
- port 5000 is used by MacOS on external interfaces (commit by @dhdaines)629209b
- test: use 127.0.0.1 explicitly to avoid ipv6 confusion (commit by @dhdaines)d105e5f
- allow other mapping arguments, use on-disk alignments (commit by @dhdaines)b29b23f
- ci: eventlet 0.36.0 considered harmful (commit by @dhdaines)baef8fd
- ci: remove bogus sleep (commit by @dhdaines)52b3bfd
- needed apply-longest-first for atj (since the beginning (commit by @dhdaines)d9a07e5
- do not copy the input mapping filename when generating (commit by @dhdaines)ea04262
- do not try to generate mappings for empty outputs (commit by @dhdaines)f50768e
- g2p convert should not add newline when input is a file (commit by @joanise)561817c
- deps: specific anti-dependency on broken coloredlogs version (commit by @dhdaines)9f92f65
- deps: use optional dependencies correctly (for docs too) (commit by @dhdaines)c8cba5f
- test: no longer require flask needlessly for some tests (commit by @dhdaines)1a602ca
- build: various build fixes (commit by @dhdaines)9543c96
- deps: old versions of eventlet are also broken (commit by @dhdaines)4e6c3ab
- docs: add install link for hatch (commit by @dhdaines)656f07a
- ci: ensure version matches schema (commit by @dhdaines)4e23d76
- docs: mention conda (commit by @dhdaines)38d5290
- build: add a hook to make sure we have g2p/_version.py on heroku (commit by @dhdaines)1bba827
- update API for newer FastAPI (commit by @dhdaines)5922f6f
- get Studio working with FastAPI (commit by @dhdaines)98a07f1
- restore compatible 404 response and enable api tests (commit by @dhdaines)89bd9b3
- deps: fix deps for api (commit by @dhdaines)cfc50c6
- update prod environment and workflow (commit by @dhdaines)ebc16ff
- now need python 3.8 on windows (commit by @dhdaines)0a7c78b
- not sure why we need to disable sendfile (commit by @dhdaines)4bcd948
- remove fastapi-socketio (commit by @dhdaines)d5d2086
- make the g2p library tests still run on Python 3.7 (commit by @joanise)f55e6bb
- ci: make coverage work again (commit by @dhdaines)9bc3855
- test: fix coverage (commit by @dhdaines)ff6c92d
- more specific dependency to avoid gnashing of teeth (commit by @dhdaines)2d68577
- deps: correct the gunicorn dependency... again (commit by @dhdaines)5e3c0f1
- split /langs and /nodes as they are not the same thing (commit by @dhdaines)a88df6a
- build: depend on gitlint-core, not gitlint (commit by @joanise)f126e1d
- studio: studio is same-origin so no CORS, also add debug option (commit by @dhdaines)9f88fbf
- studio: make deleting entire input work right (commit by @dhdaines)2a18cdd
- ci: enable G2P_STUDIO_DEBUG to satisfy coverage (commit by @dhdaines)30b572a
- normalize Γ³ in mohawk (commit by @MENGZHEGENG)e6a1280
- app: do not rely on running at the g2p root dir (commit by @joanise)627ca2e
- tests: silence the logs in test_api_resources tests (commit by @joanise)54fc772
- deps: pin panphon to 0.19-0.20 as 0.21 breaks many things (commit by @dhdaines)3323eb4
- ci: remove stale job dependency in pythonpublish workflow (commit by @joanise)f0c744b
- ci: remove broken fetch-tags from test workflow (commit by @joanise)80b55a2
- ci: drop python 3.7 unsupported EOL from matrix testing (commit by @joanise)95a773e
- test: remove expired deprecation test (commit by @joanise)6843fd8
- ci: update stale actions in python publish script (commit by @joanise)
β‘ Performance Improvements
b772bd6
- make g2p convert line-oriented when processing a file (commit by @joanise)e6c006d
- read files as you process them, not up front (commit by @joanise)
β»οΈ Refactors
13b2f81
- simplify and clarify the failure output of test_langs.py (commit by @joanise)5351133
- rename types->shared_types to avoid collision (commit by @joanise)
β Tests
55a8694
- studio: make sure we test one lexicon mapping (commit by @joanise)b971231
- add coverage for xsampa mapping (commit by @dhdaines)0e4dc75
- fix tests (and put api2 in a separate env) (commit by @dhdaines)a0aa8c5
- exercise g2p-studio switching output langs (commit by @joanise)fc43dbd
- moh: add moh tests for Γ³ normalization (commit by @roedoejet)3405626
- add a (near) pep440 unit test (commit by @joanise)
π§ Chores
9826ceb
- g2p update (commit by @dhdaines)ff7de51
- add ignores for untyped modules (commit by @dhdaines)24ada71
- deps: remove dependencies that were never used directly (commit by @dhdaines)fdacd74
- delete deprecated code (commit by @joanise)f4683a9
- deps: update pyproject and requirements (commit by @dhdaines)a6aeb2f
- g2p update (commit by @joanise)8dafbeb
- run g2p update (commit by @roedoejet)