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__ = ['jsonpickle', 'pymongo'] | |
| import json | |
| import datetime | |
| import jsonpickle | |
| import bson.tz_util | |
| ob = datetime.datetime( |
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.functools master $ tox -e py27 | |
| py27 recreate: /Users/jaraco/code/main/jaraco.functools/.tox/py27 | |
| py27 installdeps: setuptools>=31.0.1 | |
| py27 develop-inst: /Users/jaraco/code/main/jaraco.functools | |
| py27 installed: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.,atomicwrites==1.2.1,attrs==18.2.0,backports.functools-lru-cache==1.5,backports.unittest-mock==1.4,configparser==3.7.1,contextlib2==0.5.5,docutils==0.14,enum34==1.1.6,flake8==3.6.0,funcsigs==1.0.2,importlib-metadata==0.8,jaraco.classes==2.0,-e git+gh://jaraco/jaraco.functools@d84738ac9f0fcc7a6f175a9873f63a70b87881c4#egg=jaraco.functools,mccabe==0.6.1,mock==2.0.0,more-itertools==5.0.0,pathlib2==2.3.3,pbr==5.1.1,pluggy==0.8.1,py==1.7.0,pycodesty |
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
| draft $ cat test-pdb.py | |
| import sys | |
| def test_something(): | |
| assert 'pdb' not in sys.modules() | |
| draft $ pip-run -q pytest -- -m pytest test-pdb.py | |
| ================================================================================== test session starts ================================================================================== | |
| platform darwin -- Python 3.7.2, pytest-4.1.1, py-1.7.0, pluggy-0.8.1 | |
| rootdir: /Users/jaraco/draft, inifile: |
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
| ~ $ go/bin/hey http://localhost:57767 | |
| Summary: | |
| Total: 40.0799 secs | |
| Slowest: 10.0952 secs | |
| Fastest: 0.0012 secs | |
| Average: 0.8415 secs | |
| Requests/sec: 4.9900 | |
| Total data: 1488 bytes |
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@vdev-jaraco:~$ hey http://localhost:38870 | |
| Summary: | |
| Total: 40.0206 secs | |
| Slowest: 10.0754 secs | |
| Fastest: 0.0006 secs | |
| Average: 1.1396 secs | |
| Requests/sec: 4.9974 | |
| Total data: 1920 bytes |
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
| https://gist.github.com/dff4968715f64a2dae4fa8541670930b |
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__ = ['cherrypy'] | |
| import cherrypy | |
| class Server: | |
| @classmethod | |
| def run(cls): | |
| config = { |
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
| setuptools feature/pyopenssl-fallback $ python3.5 -m pip-run twisted | |
| Collecting twisted | |
| Downloading https://files.pythonhosted.org/packages/5d/0e/a72d85a55761c2c3ff1cb968143a2fd5f360220779ed90e0fadf4106d4f2/Twisted-18.9.0.tar.bz2 (3.1MB) | |
| 100% |████████████████████████████████| 3.2MB 7.0MB/s | |
| Complete output from command python setup.py egg_info: | |
| Download error on https://pypi.org/simple/incremental/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) -- Some packages may not be found! | |
| Couldn't find index page for 'incremental' (maybe misspelled?) | |
| Download error on https://pypi.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) -- Some packages may not be found! | |
| No local packages or working download links found for incremental>=16.10.1 | |
| Traceback (most recent call last): |
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
| Created temporary directory: /private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-ephem-wheel-cache-hxoe1j41 | |
| Created temporary directory: /private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-req-tracker-5tiry4h6 | |
| Created requirements tracker '/private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-req-tracker-5tiry4h6' | |
| Created temporary directory: /private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-install-yrwcx99r | |
| Processing /Users/jaraco/p/pypa/pep517 | |
| Created temporary directory: /private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-req-build-xj7pinv9 | |
| Added file:///Users/jaraco/p/pypa/pep517 to build tracker '/private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-req-tracker-5tiry4h6' | |
| Created temporary directory: /private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-build-env-r66if194 | |
| Installing build dependencies: started | |
| Running command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -m pip install --ignore-installed --no-user --pref |
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__ = ['pytest-responses', 'pytest'] | |
| import requests | |
| def test_paginated_request(responses): | |
| responses.add( | |
| responses.GET, | |
| 'https://service.test/api/paginated/', |