devpi-client is a command-line tool for managing devpi-server instances, facilitating Python packaging workflows. It enables users to upload, test, and install packages from devpi indexes. As of version 7.2.1, it continues to support essential package management operations and is actively maintained with regular releases, typically used in conjunction with a running devpi-server.
pip install devpi-clientNo compatibility data collected yet for this library.
This quickstart demonstrates basic `devpi-client` operations: pointing to a server, creating a user and index, logging in, and preparing for package uploads. Replace placeholder values for actual usage. Note that `devpi-client` is primarily a command-line tool and direct Python `import` statements for general use are not common.
Upgrade your Python environment to 3.7 or higher.
Update any custom plugins or scripts to use Python's built-in `pathlib.Path` instead of `py.path.local`.
Consult the official `devpi-server` security documentation and ensure proper access controls, HTTPS, and authentication are in place before exposing to external networks.
Be mindful of exact version specifications when using commands that parse package versions, especially for older, non-PEP 440 compliant versions. Test `remove` operations carefully.
Refer to current quickstart documentation using explicit commands like `devpi use`, `devpi user`, `devpi login`.
Ensure the server's SSL certificate is valid and trusted by your system's CA store. Alternatively, configure `devpi` to trust the host, e.g., `devpi use --set-cfg --url https://your.devpi.server/` which automatically adds `trusted-host` for pip. For self-signed certificates, you might need to manually trust them or pass `--client-cert` if configured on the server.
Consider setting `setupdirs-only = 1` in the `[devpi:upload]` section of `setup.cfg` or using the `devpi upload --setupdir-only` option to ensure only the directory containing `setup.py` is exported. Ensure all necessary files are tracked by Git.
Remove old authentication data (`~/.devpi/client/accounts.json`) and re-login using `devpi login` to generate new, compatible credentials. Ensure both client and server are on compatible versions.
This was a bug fixed in `devpi-client 7.2.0`. Upgrade to `devpi-client` version 7.2.0 or higher. `pip install --upgrade devpi-client`