Skip to content

Instantly share code, notes, and snippets.

View wkornewald's full-sized avatar

Waldemar Kornewald wkornewald

View GitHub Profile
@wkornewald
wkornewald / pyproject.toml
Created October 17, 2019 09:23
poetry bug
[tool.poetry]
name = "mytest"
version = "2.0.0"
description = "My test"
authors = []
[tool.poetry.dependencies]
python = "^3.7"
flask = "^1.1"
protobuf = "^3.10"
@wkornewald
wkornewald / boot.py
Last active August 29, 2015 13:56
A per-package config system
# This is the initialization module for your project.
# It configures all python package settings and initializes packages if necessary.
# In manage.py and in your WSGI file you'd first import this module and then let Django do its work.
# Shut up noisy loggers
import logging
logging.getLogger('pycountry.db').setLevel(logging.CRITICAL)
# ...
# Configure Django