When running python setup.py bdist_wheel upload -r ournexus
I get "Repository path must have another '/' after initial '/'".
I'm trying to push to a private PyPi repository on a company nexus.
To start with repository management, you will have to sign in. The default username is admin. You will find the default password in the path mentioned on the sign-in page. Nexus has a few repositories by default.
You can change this port, by changing the value in the $NEXUS_HOME/conf/nexus. properties file shown in "Contents of conf/nexus. properties". To change the port, stop the repository manager, change the value of application-port in this file, and then restart it.
Nexus Repository OSS is an open source repository that supports many artifact formats, including Docker, Java™, and npm. With the Nexus tool integration, pipelines in your toolchain can publish and retrieve versioned apps and their dependencies by using central repositories that are accessible from other environments.
The problem was that, in my .pypirc, it said:
[ournexus]
repository=[my URL]/repository/[repositoryname]
username=[username]
password=[password]
where it should have said
[ournexus]
repository=[my URL]/repository/[repositoryname]/
username=[username]
password=[password]
(note the forward slash after [repositoryname])
Which, judging from the documentation and tutorials online seems to be fine for the public pypi, but doesn't seem to be accepted by nexus.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With