Open NeroCube opened 1 year ago
需要做以下幾個步驟:
poetry source add --priority=supplemental foo https://pypi.example.org/simple/
poetry config http-basic.foo <username> <password>
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/.
https://www.maxlist.xyz/2022/05/08/python-poetry/
需要做以下幾個步驟:
poetry source add --priority=supplemental foo https://pypi.example.org/simple/
²poetry config http-basic.foo <username> <password>
²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/.