Skip to content

Fix wdc startup and add Python 3.14 regression coverage - #170

Open
jmcarcell wants to merge 1 commit into
ezhov-evgeny:developfrom
jmcarcell:fix-wdc-startup
Open

jmcarcell wants to merge 1 commit into
ezhov-evgeny:developfrom
jmcarcell:fix-wdc-startup

Conversation

@jmcarcell

Copy link
Copy Markdown

wdc --help fails before argument parsing on Python 3.14 because the script imports distutils.util.strtobool. Fixing that exposes further startup failures: argcomplete is undeclared, and WebDavException, NotConnection, and __version__ are no longer exported by webdav3.client.

This replaces the distutils helper, imports exceptions from their defining module, and reads the installed distribution version through importlib metadata (with a conditional backport dependency for Python <3.8). Shell completion becomes optional and is available through the documented cli extra. It also fixes an invalid regex escape reported by newer Python versions.

Regression tests cover help/version startup with and without completion, the installed executable, and boolean parsing. Python 3.14 is added to the existing CI matrix. The existing requires-python = ">=3.6" constraint is preserved.

Validation on Python 3.14.8:

  • 77 CLI and library unit tests passed.
  • Ruff lint and formatting checks passed.
  • Built and installed a wheel in a separate environment without setuptools/distutils or argcomplete; wdc --help, wdc -h, and wdc --version all exited 0 with no stderr.

The server integration suite requires the WebDAV Docker container and was not run locally because Docker is not accessible. The existing CI jobs and the new Python 3.14 job run that suite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant