Setup
pip install pytest==5.0.1 eventlet
See error
pytest --help | cat
import math | |
from collections import Counter | |
from funcy import post_processing | |
from parse import parse | |
from scipy.optimize import minimize_scalar | |
@post_processing(dict) | |
def parse_input(input_str): |
FROM python:3.7-slim-stretch AS builder | |
RUN python -m pip install -U pip setuptools wheel pip-tools | |
CMD ["/reqs/compile-all.sh"] |
Setup
pip install pytest==5.0.1 eventlet
See error
pytest --help | cat
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
# Distribution / packaging | |
.Python |
Clone
git clone git@gist.github.com:faf373e5c05a8cb4bc49c048504dbea6.git git-hook-prepare-commit-msg
import os | |
import time | |
import random | |
FN = 'my-tmp-file.txt' | |
SIZE = (2 ** 10) # 1K | |
if not os.path.exists(FN): | |
with open(FN, 'wb') as f: |
. |
from itertools import count, takewhile | |
from math import sqrt | |
import time | |
try: | |
# Python 2 compat | |
from itertools import ifilter as filter | |
except ImportError: | |
pass |
(nw034)tom:~/dev/networkzero$ tox | |
GLOB sdist-make: /home/tom/dev/networkzero/setup.py | |
py27 inst-nodeps: /home/tom/dev/networkzero/.tox/dist/networkzero-0.1.zip | |
py27 installed: netifaces==0.10.4,networkzero==0.1,py==1.4.31,pytest==2.9.1,pytest-timeout==1.0.0,pyzmq==15.2.0 | |
py27 runtests: PYTHONHASHSEED='4147297411' | |
py27 runtests: commands[0] | py.test tests/ | |
============================================================== test session starts =============================================================== | |
platform linux2 -- Python 2.7.10, pytest-2.9.1, py-1.4.31, pluggy-0.3.1 | |
rootdir: /home/tom/dev/networkzero, inifile: tox.ini | |
plugins: timeout-1.0.0 |
from __future__ import division, print_function | |
from collections import defaultdict | |
from operator import itemgetter | |
get_values = itemgetter(1) | |
last_few_herders = """ | |
Nicholas | |
Gautier |