Skip to content

Instantly share code, notes, and snippets.

@altendky

altendky/x.bash Secret

Last active May 15, 2018 17:32
Show Gist options
  • Save altendky/9a8cc1c7bec9f44911a2d904c09eb8b1 to your computer and use it in GitHub Desktop.
Save altendky/9a8cc1c7bec9f44911a2d904c09eb8b1 to your computer and use it in GitHub Desktop.
altendky@lt:~/t$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.4 (stretch)
Release: 9.4
Codename: stretch
altendky@lt:~/t$ ll -a
total 8
drwxr-xr-x 2 altendky altendky 4096 May 15 13:29 .
drwxr-xr-x 93 altendky altendky 4096 May 15 08:26 ..
altendky@lt:~/t$ python3 -m venv venv
altendky@lt:~/t$ venv/bin/python --version
Python 3.6.5
altendky@lt:~/t$ venv/bin/python -m pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 9.0.3
Uninstalling pip-9.0.3:
Successfully uninstalled pip-9.0.3
Successfully installed pip-10.0.1
altendky@lt:~/t$ export PIP_SRC=$PWD/src
altendky@lt:~/t$ venv/bin/pip install -e git+https://github.com/altendky/gitignoreio#egg=gitignoreio
Obtaining gitignoreio from git+https://github.com/altendky/gitignoreio#egg=gitignoreio
Cloning https://github.com/altendky/gitignoreio to ./src/gitignoreio
Collecting click (from gitignoreio)
Using cached https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl
Collecting requests (from gitignoreio)
Using cached https://files.pythonhosted.org/packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests->gitignoreio)
Using cached https://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->gitignoreio)
Using cached https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests->gitignoreio)
Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests->gitignoreio)
Using cached https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl
Installing collected packages: click, urllib3, certifi, chardet, idna, requests, gitignoreio
Running setup.py develop for gitignoreio
Successfully installed certifi-2018.4.16 chardet-3.0.4 click-6.7 gitignoreio idna-2.6 requests-2.18.4 urllib3-1.22
altendky@lt:~/t$ git -C src/gitignoreio/ status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
altendky@lt:~/t$ echo '#blah' >> src/gitignoreio/setup.py
altendky@lt:~/t$ git -C src/gitignoreio/ status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: setup.py
no changes added to commit (use "git add" and/or "git commit -a")
altendky@lt:~/t$ venv/bin/pip install -e git+https://github.com/altendky/gitignoreio#egg=gitignoreio
Obtaining gitignoreio from git+https://github.com/altendky/gitignoreio#egg=gitignoreio
Updating ./src/gitignoreio clone
Requirement already satisfied: click in ./venv/lib/python3.6/site-packages (from gitignoreio) (6.7)
Requirement already satisfied: requests in ./venv/lib/python3.6/site-packages (from gitignoreio) (2.18.4)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./venv/lib/python3.6/site-packages (from requests->gitignoreio) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.6/site-packages (from requests->gitignoreio) (2018.4.16)
Requirement already satisfied: idna<2.7,>=2.5 in ./venv/lib/python3.6/site-packages (from requests->gitignoreio) (2.6)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in ./venv/lib/python3.6/site-packages (from requests->gitignoreio) (1.22)
Installing collected packages: gitignoreio
Found existing installation: gitignoreio 0.1.5
Uninstalling gitignoreio-0.1.5:
Successfully uninstalled gitignoreio-0.1.5
Running setup.py develop for gitignoreio
Successfully installed gitignoreio
altendky@lt:~/t$ git -C src/gitignoreio/ status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
altendky@lt:~/t$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment