Closed antdking closed 1 year ago
Thanks for reporting this, this feels clowny... glob.glob works different as pathlib.Path.glob ....
>>> [*pathlib.Path().glob("pystemd/**/*.pyi")]
[PosixPath('pystemd/__init__.pyi'), PosixPath('pystemd/daemon.pyi'), PosixPath('pystemd/dbuslib.pyi'), PosixPath('pystemd/base.pyi'), PosixPath('pystemd/systemd1/manager.pyi'), PosixPath('pystemd/systemd1/unit.pyi')]
>>> glob.glob("pystemd/**/*.pyi")
['pystemd/systemd1/manager.pyi', 'pystemd/systemd1/unit.pyi']
i'll fix and submit a new version
has this PR (https://github.com/systemd/pystemd/pull/86) I think it fix the issue... also, I want to get rid of typestubs and just have them in code
Confirmed working in 0.13.2, thanks
Lost editor hints for modules like dbuslib, as the .pyi files are no longer included
pystemd/systemd1/*.pyi
files still appear intact, it's justpystemd/*.pyi
that's missin.https://github.com/systemd/pystemd/blob/53662f0b6a00ab7f94416ef9a07d19346e49ce9b/setup.py#L73
This line likely needs
glob(..., recursive=True)
, so that**
includes the base directory and not just child directories.