Fixed
hostctl<0.2made the dependency set unresolvable.pathlib_next
0.9.0'suriextra requiresnetimps>=0.2.0, andhostctlwidened its own
ranges to admit that in 0.2.2 — so pinninghostctl<0.2left no solution for
apip install pytruenasthat also pulledpathlib_next[uri].os.fspath()on aTruenasPath/TnasWsPathraised
NotImplementedError. Both now set_host_filesystem_path, sofspath
returns the host-local path (/usr/lib/x, not
truenas://root@nas/usr/lib/x). Requirespathlib_next>=0.9.0.
Changed
patch.zfs.host_pathusesos.fspath()only. It previously fell back to
.path, thenas_posix(), thenstr(), forpathlib_next<0.9where
fspathraised for every non-filescheme. A URI scheme with no host-local
path now raises rather than yielding a string that is not a path.
Dependencies
hostctl>=0.1.2,<0.3(from<0.2). Nothing pytruenas imports changed;
the floor stays at 0.1.2 because no 0.2 API is used here. Validated on 0.2.2.pathlib_next[uri]>=0.9.0,<0.10(from>=0.8.2, uncapped) — for
UriPath.__fspath__on host-filesystem schemes, and for
Source.__str__/__repr__no longer emitting the password. Thessh
extra'spathlib_next[sftp-async]moves to>=0.9.0,<0.10alongside it.netimps>=0.0.2,<0.3— ceiling added; 0.2.0 reworkedresolve()and
madednspythonoptional, neither of which touchesget_default_port, the
only function used here. Validated on 0.2.0.
Full Changelog: v0.3.0...v0.3.1