1

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

phd
  • 82,685
  • 13
  • 120
  • 165
Dodo Polo
  • 37
  • 3
  • probably related to https://stackoverflow.com/q/9617336/3521116 – warl0ck May 02 '19 at 19:15
  • @warl0ck Not related at all. – phd May 02 '19 at 19:26
  • @warl0ck Do you have any idea to solve this problem? – Dodo Polo May 02 '19 at 19:28
  • https://stackoverflow.com/search?q=%5Bgithub%5D+%5Bpip%5D+pull+request – phd May 02 '19 at 19:29
  • See [the second answer](https://stackoverflow.com/a/50095199/7976758) about preemptively merged pull requests and their hidden refs. – phd May 02 '19 at 19:30
  • @phd I've tried it. In my local venv repo it worked, although there was a "WARNING: Did not find branch or tag '...' ". But when i try to deploy it on Heroku, it showed me the same error but didn't work. I don't even know what is the problem. – Dodo Polo May 02 '19 at 19:48

1 Answers1

0

In your requirements.txt put the URL:

git+https://github.com/ramusus/kinopoiskpy@refs/pull/47/merge#egg=kinopoiskpy
phd
  • 82,685
  • 13
  • 120
  • 165