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

Implemented changes to support several mirrors (see #6) #7

Open lucharo opened 1 year ago

lucharo commented 1 year ago

Let me know if you like the implementation. I could not properly test the plugin as I do not know how to do that but I did try to maintain your pre-existing logic, i.e. if no env variable or config is found the file still returns at line https://github.com/arcesium/poetry-plugin-pypi-mirror/blob/b650dc5e97945e0c9d52483da3a93ed08ce759ad/src/poetry_plugin_pypi_mirror/plugins.py#L36

and also I still add the first repo of the config (if several are provided) as the "PyPi" repo.