Skip to content

Commit b0d15cc

Browse files
authored
Add how to install python deps from git (#6)
1 parent 0e44282 commit b0d15cc

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# how to install dependencies from git
2+
3+
Sometimes you want to install a Python package from a branch or a specific commit.
4+
5+
Install che `refurbished` package from its GitHub repository, branch `zmoog/loosen-setup-requirements`:
6+
7+
```
8+
$ pip install git+https://github.com/zmoog/refurbished.git@zmoog/loosen-setup-requirements#egg=refurbished
9+
Collecting refurbished
10+
Cloning https://github.com/zmoog/refurbished.git (to revision zmoog/loosen-setup-requirements) to /private/var/folders/kf/3wt1srds50v37j0z6c7m1kg40000gn/T/pip-install-4n6s0d4p/refurbished_02ff96664da94ca3a4bfa495b0caa2be
11+
Running command git clone --filter=blob:none --quiet https://github.com/zmoog/refurbished.git /private/var/folders/kf/3wt1srds50v37j0z6c7m1kg40000gn/T/pip-install-4n6s0d4p/refurbished_02ff96664da94ca3a4bfa495b0caa2be
12+
Running command git checkout -b zmoog/loosen-setup-requirements --track origin/zmoog/loosen-setup-requirements
13+
Switched to a new branch 'zmoog/loosen-setup-requirements'
14+
Branch 'zmoog/loosen-setup-requirements' set up to track remote branch 'zmoog/loosen-setup-requirements' from 'origin'.
15+
Resolved https://github.com/zmoog/refurbished.git to commit 871feb67a479d3a02083440554112716648c59d5
16+
Preparing metadata (setup.py) ... done
17+
Requirement already satisfied: beautifulsoup4>=4.9.3 in ./venv/lib/python3.9/site-packages (from refurbished) (4.10.0)
18+
Requirement already satisfied: requests>=2.25.1 in ./venv/lib/python3.9/site-packages (from refurbished) (2.27.1)
19+
Requirement already satisfied: price-parser>=0.3.3 in ./venv/lib/python3.9/site-packages (from refurbished) (0.3.3)
20+
Requirement already satisfied: click>=7.1.2 in ./venv/lib/python3.9/site-packages (from refurbished) (8.0.4)
21+
Requirement already satisfied: soupsieve>1.2 in ./venv/lib/python3.9/site-packages (from beautifulsoup4>=4.9.3->refurbished) (2.3.1)
22+
Requirement already satisfied: attrs>=17.3.0 in ./venv/lib/python3.9/site-packages (from price-parser>=0.3.3->refurbished) (21.4.0)
23+
Requirement already satisfied: idna<4,>=2.5 in ./venv/lib/python3.9/site-packages (from requests>=2.25.1->refurbished) (3.3)
24+
Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.9/site-packages (from requests>=2.25.1->refurbished) (2021.10.8)
25+
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./venv/lib/python3.9/site-packages (from requests>=2.25.1->refurbished) (1.26.8)
26+
Requirement already satisfied: charset-normalizer~=2.0.0 in ./venv/lib/python3.9/site-packages (from requests>=2.25.1->refurbished) (2.0.12)
27+
Using legacy 'setup.py install' for refurbished, since package 'wheel' is not installed.
28+
Installing collected packages: refurbished
29+
Attempting uninstall: refurbished
30+
Found existing installation: refurbished 0.7.1
31+
Uninstalling refurbished-0.7.1:
32+
Successfully uninstalled refurbished-0.7.1
33+
Running setup.py install for refurbished ... done
34+
Successfully installed refurbished-0.7.1
35+
```
36+

0 commit comments

Comments
 (0)