Skip to content

Instantly share code, notes, and snippets.

# Copyright 2017, OpenCensus Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
import opentracing
import logging
import time
from jaeger_client import Config
if __name__ == "__main__":
log_level = logging.DEBUG
logging.getLogger('').handlers = []
logging.basicConfig(format='%(asctime)s %(message)s', level=log_level)
@wkiser
wkiser / howstale.py
Created August 30, 2017 14:34
Pants task for determining pypi package staleness
from __future__ import (nested_scopes, generators, division, absolute_import, with_statement,
print_function, unicode_literals)
import datetime
from distutils import version as disutils_version # pylint: disable=no-name-in-module
import requests
from pants.backend.python.targets import python_requirement_library # pylint: disable=no-name-in-module
from pants.task import console_task
from pants.util import memo