NeroCube / bookmark

Place some learning resources
0 stars 0 forks source link

如何透過 poetry add bitbucket dependency #412

Open NeroCube opened 1 year ago

NeroCube commented 1 year ago

需要做以下幾個步驟:

  1. 為您的項目配置包源,並指定優先級為補充或顯式。例如:poetry source add --priority=supplemental foo https://pypi.example.org/simple/²
  2. 如果包源需要身份驗證,請配置相應的用戶名和密碼。例如:poetry config http-basic.foo <username> <password>²
  3. 從包源添加依賴項到您的項目中。例如:poetry add --source foo private-package²

如果您想要發布您的項目到私有倉庫,您還需要配置上傳 API 端點和相應的身份驗證信息。詳情請參考這裡

希望這能幫助到您。如果您還有其他問題,歡迎隨時聯繫我。😊

Source: Conversation with Bing, 2023/7/20 (1) Repositories | Documentation | Poetry - Python dependency management and packaging made easy. https://python-poetry.org/docs/repositories/. (2) It is possible to add a dependency of a private git repo? · Issue #835 · python-poetry/poetry · GitHub. https://github.com/python-poetry/poetry/issues/835. (3) Dependency Management With Python Poetry – Real Python. https://realpython.com/dependency-management-python-poetry/.

NeroCube commented 1 year ago

https://www.maxlist.xyz/2022/05/08/python-poetry/