Skip to content

Instantly share code, notes, and snippets.

View karantan's full-sized avatar
💭
❤️✖️❓🤖

Gasper Vozel karantan

💭
❤️✖️❓🤖
View GitHub Profile
@karantan
karantan / gist:4ae73250fb269d8667c9df282ee3607e
Created August 31, 2018 10:21
Poetry pyproject.toml github dep example
[tool.poetry]
name = "foo"
version = "0.1.0"
description = "Foo"
authors = ["Gasper Vozel <karantan@gmail.com>"]
[tool.poetry.dependencies]
python = "3.6.5"
ansible = { git = "https://github.com/karantan/ansible", branch = "stable-2.6" }
@karantan
karantan / problem.py
Last active February 24, 2017 15:37 — forked from Sorseg/problem.py
Mocking await calls in python 3.5 is a problem
async def some_coroutine():
await async.sleep(10.0)
await another_coroutine()
return 'test'
async def another_coroutine():
pass
@karantan
karantan / build-python-2.7.9.sh
Created February 1, 2016 07:22
upgrade Python 2.7.6 -> 2.7.9 on Ubuntu 14.04
#!/bin/sh
#
# Installs Python 2.7.9 on Ubuntu 14.04 to include security updates
# Run this script with superuser privileges.
#
BASEDEPS="build-essential python-pip"
BUILDDEPS="libbz2-dev \
libc6-dev \
libgdbm-dev \