5

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.

Johannes Bauer
  • 402
  • 4
  • 15

1 Answers1

5

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.

Johannes Bauer
  • 402
  • 4
  • 15