You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🎛️ Running in non-interactive mode on CI
💥 maturin failed
Caused by: Credentials not found and non-interactive mode is enabled
As best as I can tell, this is caused by this bit of code that will exit with an error if in non-interactive mode, without first checking if username and password were provided via CLI flags or env vars.
I think this should check if both are set (e.g. if let (Some(username), Some(password)) = (username, password) {}before checking if in non-interactive mode.
For now, we are working around this by providing the username/password on CLI and setting $CI to something other than true (to work around maturinauto-enabling non-interactive mode), as it looks like we cannot use token-based auth with GitLab (all of the docs use username/password).
Your maturin version (maturin --version)
1.2.1
Your Python version (python -V)
3.9.17
Your pip version (pip -V)
23.0.1
What bindings you're using
pyo3
Does cargo build work?
Yes, it works
If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?
Yes
Steps to Reproduce
Create a project on GitLab that uses Maturin
In CI, use maturin build to build one or more wheels
Attempt to upload to GitLab's Package Registry using the command provided above
The text was updated successfully, but these errors were encountered:
Bug Description
When using the
maturin
CLI in Gitlab CI to upload wheels to GitLab PyPI, we are using the following command:But we get the error
As best as I can tell, this is caused by this bit of code that will exit with an error if in non-interactive mode, without first checking if username and password were provided via CLI flags or env vars.
I think this should check if both are set (e.g.
if let (Some(username), Some(password)) = (username, password) {}
before checking if in non-interactive mode.For now, we are working around this by providing the username/password on CLI and setting
$CI
to something other thantrue
(to work aroundmaturin
auto-enabling non-interactive mode), as it looks like we cannot use token-based auth with GitLab (all of the docs use username/password).Your maturin version (
maturin --version
)1.2.1
Your Python version (
python -V
)3.9.17
Your pip version (
pip -V
)23.0.1
What bindings you're using
pyo3
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
maturin build
to build one or more wheelsThe text was updated successfully, but these errors were encountered: