JetBrains / requirements

Intellij plugin for requirements.txt file
https://meanmail.dev/plugin/1
GNU Lesser General Public License v3.0
74 stars 23 forks source link

Option "--extra-index-url" is not recognized #49

Open haiddablitz opened 3 years ago

haiddablitz commented 3 years ago

Describe the bug In our dev environment we have a self hosted Gitlab instance and a project with a PyPi repository. After successfully building and pushing a custom Python wheel to that repository we are able to install that wheel via terminal (pip install -r requirements.txt). Trying to install that package via the Requirements plugin is not possible.

To Reproduce Steps to reproduce the behavior:

  1. Add --extra-index-url https://__token__:<api-read-token>@<gitlab-url>/api/v4/projects/<project-id>/packages/pypi/simple to requirements.txt
  2. Open requirements.txt with PyCharm
  3. Try to install the packages via the lightbulb
  4. See error (Screenshots)

Expected behavior As other packages the --extra-index-url should be recognized and the package should be installed.

Screenshots requirements.txt Event Log Error

IDE

Plugin

Additional Information

meanmail commented 3 years ago

related to #48

meanmail commented 3 years ago

Plugin version 2021.4 supports additional repositories.

https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html#install-package

In the Manage Repositories dialog that opens, click Add a repository to add https://__token__:api-read-token>@<gitlab-url/api/v4/projects//packages/pypi/simple/, then click OK.

riros commented 3 years ago

I added a new repository https://shelf.int.nic.ru/repository/pypi/simple/ but the plugin didn't see it. red string, package not found. Снимок экрана от 2021-07-27 16-36-44 Снимок экрана от 2021-07-27 16-36-04