Upstream switched the build backend from setuptools to uv_build and dropped
setup.cfg, so use DISTUTILS_USE_PEP517=uv-build and pass -o addopts= to epytest in
place of the removed setup.cfg sed.
Signed-off-by: Zakk <zakk@gentoozh.org>
autopxd2 4.2.0 passes stub_mode to headerkit write_pxd() and its
pyproject.toml requires headerkit>=0.51.0. headerkit 0.46.2 rejects the
argument with a TypeError, so every autopxd call fails and
dev-python/pyrime fails to build.
Signed-off-by: Zakk <zakk@gentoozh.org>
Upstream replaced the multi-line "License ::" classifier in setup.py
with a plain license string, so the sed in python_prepare_all no longer
matches anything and is dropped.
Signed-off-by: Zakk <zakk@gentoozh.org>
Because the tests import media-sound/feeluown, which is a PDEPEND, and
query the live QQ Music API, they cannot run in the build sandbox, so
set RESTRICT="test".
Signed-off-by: Zakk <zakk@gentoozh.org>
Because the tests import media-sound/feeluown, which is a PDEPEND, and
query the live NetEase Cloud Music API, they cannot run in the build
sandbox, so set RESTRICT="test".
Signed-off-by: Zakk <zakk@gentoozh.org>
setup.py imports build_py from distutils and still lists the deprecated License
classifier, so setuptools warns about both and the install leaves a QA notice. Import
build_py from setuptools and drop the classifier; LICENSE already states MIT.
Signed-off-by: Zakk <zakk@gentoozh.org>
Because upstream ships its tests as plain scripts that assert at import
and define no test functions, pytest would collect nothing; run each
test/test_*.py with ${EPYTHON} instead. test_sqlite.py needs the sqlite3
module, so add it to the test dependencies.
Signed-off-by: Zakk <zakk@gentoozh.org>
Because the bytes from .encode() were freed right after RimeTraits was
built, librime read freed memory; prebuilt_data_dir and staging_dir
were also left uninitialized. Apply the fix submitted upstream, which
is not merged yet.
Upstream: https://github.com/rimeinn/pyrime/pull/14
Signed-off-by: Zakk <zakk@gentoozh.org>
The tests failed on the `--cov` options in setup.cfg and on the missing pytest-
asyncio plugin. Drop the License classifier because setuptools deprecates it and the
CI fails on that QA notice.
Signed-off-by: Zakk <zakk@gentoozh.org>
The runtime dependencies lacked `[${PYTHON_USEDEP}]`, so they could be installed for
a different Python target. `dev-python/mock` is only imported by the tests, so it
moves to the test dependencies. `license_files = file: LICENSE.txt` is not a valid
glob, and the long description named a CHANGES.rst that the sdist does not ship.
Signed-off-by: Zakk <zakk@gentoozh.org>