arcesium / poetry-plugin-pypi-mirror

Poetry plugin that adds support for pypi.org mirrors and pull-through caches
BSD 3-Clause "New" or "Revised" License
43 stars 11 forks source link

Fix unauthorized error during package installation #13

Closed pkrueger-cariad closed 11 months ago

pkrueger-cariad commented 11 months ago

Due to reasons, the mirror URL is only propagated to the Authenticator of the Repository class created by this plugin. All other instances of the Authenticator still fall back to empty user and password for the default PyPI URL.

To fix this I've added the repository url to the config. The config is used by the Authenticator to determin which credentials to read via Keyring.

pkrueger-cariad commented 11 months ago

@JacobHenner could you please review the changes? Let me know if there is something missing.

pkrueger-cariad commented 11 months ago

I've also fixed some typos in the previous commits, hence the force push.

JacobHenner commented 11 months ago

Thanks for the contribution!