How to state in requirements.txt a direct github not merged Pull request [duplicate]

安稳与你 提交于 2019-12-13 04:11:16

问题


My English is bad.

I'm going to state some Python 3 library in requirements.txt, but there is a bug in original version of code. In Pull requests one user commited the new version with bug fix that wasn't merged by Author if it affects something.

The link looks like this: https://github.com/ramusus/kinopoiskpy/pull/47/commits/4c888bf4f6b330b115d11fac3e0b8bb177b597bb

How should i write to requirements.txt so that it installs without any problem?

I tried that: -e git+git://github.com/ramusus/kinopoiskpy.git@4c888bf4f6b330b115d11fac3e0b8bb177b597bb#egg=kinopoiskpy.

But there was an ERROR: "git checkout -q 4c888bf4f6b330b115d11fac3e0b8bb177b597bb" failed with error code 128


回答1:


In your requirements.txt put the URL:

git+https://github.com/ramusus/kinopoiskpy@refs/pull/47/merge#egg=kinopoiskpy


来源:https://stackoverflow.com/questions/55958482/how-to-state-in-requirements-txt-a-direct-github-not-merged-pull-request

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!