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>
Drop the License classifier and the `universal` wheel option because setuptools
deprecates both and the CI fails on that QA notice.
Signed-off-by: Zakk <zakk@gentoozh.org>
`license_files = file: LICENSE.txt` is not a valid glob, so the license file was left
out of the installed metadata. Also drop the deprecated `universal` wheel option.
Signed-off-by: Zakk <zakk@gentoozh.org>
Add `dev-python/tomli-w` to `RDEPEND` because `menuinst/utils.py` imports `tomli_w`
and upstream `pyproject.toml` lists it in `dependencies`.
Signed-off-by: Zakk <zakk@gentoozh.org>