This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rwt pylint | |
Collecting pylint | |
Using cached pylint-1.6.5-py2.py3-none-any.whl | |
Collecting six (from pylint) | |
Using cached six-1.10.0-py2.py3-none-any.whl | |
Collecting astroid<1.5.0,>=1.4.5 (from pylint) | |
Using cached astroid-1.4.9-py2.py3-none-any.whl | |
Collecting mccabe (from pylint) | |
Using cached mccabe-0.6.0-py2.py3-none-any.whl | |
Collecting isort>=4.2.5 (from pylint) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python -m virtualenv --python python2.7 ~/.virtualenvs/issue-967 | |
Running virtualenv with interpreter /usr/local/bin/python2.7 | |
New python executable in /Users/jaraco/.virtualenvs/issue-967/bin/python2.7 | |
Also creating executable in /Users/jaraco/.virtualenvs/issue-967/bin/python | |
Installing setuptools, pip, wheel...done. | |
$ ~/.virtualenvs/issue-967/bin/easy_install --version | |
setuptools 34.2.0 from /Users/jaraco/.virtualenvs/issue-967/lib/python2.7/site-packages (Python 2.7) | |
$ ~/.virtualenvs/issue-967/bin/pip install setuptools==28.8.0 | |
Collecting setuptools==28.8.0 | |
Using cached setuptools-28.8.0-py2.py3-none-any.whl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ virtualenv --python /usr/bin/python2.7 --system-site-packages env | |
Running virtualenv with interpreter /usr/bin/python2.7 | |
New python executable in /Users/jaraco/env/bin/python | |
Installing setuptools, pip, wheel...done. | |
$ env/bin/pip install -U tensorflow | |
Collecting tensorflow | |
Downloading tensorflow-1.0.0-cp27-cp27m-macosx_10_11_x86_64.whl (39.3MB) | |
100% |████████████████████████████████| 39.4MB 26kB/s | |
Collecting mock>=2.0.0 (from tensorflow) | |
Using cached mock-2.0.0-py2.py3-none-any.whl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@vagrant-ubuntu-trusty-64:~$ sudo apt-get install -y python python-dev build-essential libffi-dev libssl-dev python-setuptools python-virtualenv | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
python is already the newest version. | |
The following extra packages will be installed: | |
dpkg-dev g++ g++-4.8 libalgorithm-diff-perl libalgorithm-diff-xs-perl | |
libalgorithm-merge-perl libdpkg-perl libexpat1-dev libfile-fcntllock-perl | |
libpython-dev libpython2.7-dev libssl-doc libstdc++-4.8-dev | |
python-chardet-whl python-colorama python-colorama-whl python-distlib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat > test-warnings.py | |
import warnings | |
def test_deprecated(): | |
warnings.warn("deprecated", DeprecationWarning) | |
$ rwt git+https://github.com/pytest-dev/pytest -- -m pytest test-warnings.py | |
Collecting git+https://github.com/pytest-dev/pytest | |
Cloning https://github.com/pytest-dev/pytest to /private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-mnbpyk5d-build | |
Collecting py>=1.4.29 (from pytest==3.0.8.dev0) | |
Using cached py-1.4.33-py2.py3-none-any.whl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rwt -q pytest pytest-warnings -- -m pytest -rw test-warnings.py | |
====================================== test session starts ======================================= | |
platform darwin -- Python 3.6.1, pytest-3.0.7, py-1.4.33, pluggy-0.4.0 | |
rootdir: /Users/jaraco, inifile: | |
plugins: warnings-0.2.0 | |
collected 1 items | |
test-warnings.py . | |
===================================== pytest-warning summary ===================================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__requires__ = ['httpagentparser', 'jaraco.itertools', 'more_itertools'] | |
import sys | |
import httpagentparser | |
from jaraco.itertools import Counter | |
from more_itertools.recipes import consume | |
def is_IE10(agent): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jaraco@kafka:~$ sudo adduser --ingroup staff --disabled-password --gecos "Alex Clark" aclark | |
Adding user `aclark' ... | |
Adding new user `aclark' (1002) with group `staff' ... | |
Creating home directory `/home/aclark' ... | |
Copying files from `/etc/skel' ... | |
jaraco@kafka:~$ sudo usermod -a -G sudo aclark | |
jaraco@kafka:~$ sudo mkdir ~aclark/.ssh | |
jaraco@kafka:~$ cat > authorized_keys | |
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHWHM8qqi9Sosgqj9cZzkFBQ015CDmELWB7V8LqbM6A4 [email protected] | |
jaraco@kafka:~$ sudo mv authorized_keys ~aclark/.ssh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install azure-cli | |
==> Downloading https://homebrew.bintray.com/bottles/azure-cli-0.10.14.sierra.bottle.tar.gz | |
Already downloaded: /Users/jaraco/Library/Caches/Homebrew/azure-cli-0.10.14.sierra.bottle.tar.gz | |
==> Pouring azure-cli-0.10.14.sierra.bottle.tar.gz | |
Warning: azure-cli dependency icu4c was built with a different C++ standard | |
library (libc++ from clang). This may cause problems at runtime. | |
==> Using the sandbox | |
==> Caveats | |
Bash completion has been installed to: | |
/usr/local/etc/bash_completion.d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ azure login | |
info: Executing command login | |
\info: To sign in, use a web browser to open the page https://aka.ms/devicelogin and enter the code AQY7LD5EG to authenticate. | |
-info: Added subscription Visual Studio Enterprise: BizSpark | |
info: Setting subscription "Visual Studio Enterprise: BizSpark" as default | |
+ | |
info: login command OK |