Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter van Bommel authored Sep 22, 2021
2 parents f97844e + cc3701c commit 70c9f62
Show file tree
Hide file tree
Showing 73 changed files with 138 additions and 430 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.20.0
current_version = 0.21.0
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python: [2.7, 3.5, 3.6, 3.7, 3.8]
python: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015-2018 Canonical, Ltd.
Copyright (c) 2015-2021 Canonical, Ltd.

Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements. See the NOTICE file distributed with this work for
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ VENV = $(VENV_PATH)/ready
BIN = $(VENV_PATH)/bin
PY3 = $(shell which python3)
PYTHON ?= $(shell readlink -f $(PY3))
TALISKER_EXTRAS=gunicorn,raven,flask,django,celery,prometheus,pg_wheel,dev,asyncio
TALISKER_EXTRAS=gunicorn,raven,flask,django,celery,prometheus,pg,dev,asyncio
LIMBO_REQUIREMENTS=tests/requirements.limbo.txt
REQUIREMENTS=$(shell ls requirements.*.txt)
PIP_REQUIREMENTS=
Expand Down Expand Up @@ -143,7 +143,7 @@ clean-pyc:
find . -name '__pycache__' | xargs rm -rf

clean-test:
rm .tox/ .pytest_cache .coverage* htmlcov/ results logstash-test-results tests/requirements.limbo.txt -rf
rm .tox/ .pytest_cache .coverage* htmlcov/ results logstash-test-results tests/requirements.limbo.txt -rf


# publishing
Expand Down Expand Up @@ -271,8 +271,8 @@ export REPORT_PY

define CONFIG
input { stdin { type => talisker }}
output {
file {
output {
file {
path => "$(LOGSTASH_PATTERNS_LXC)/$(LOGSTASH_RESULTS)"
codec => json_lines
}
Expand Down
1 change: 0 additions & 1 deletion dependencies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ build-essential
libpq-dev
postgresql
python3-dev
python2.7-dev
redis-server
virtualenv
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (c) 2015-2018 Canonical, Ltd.
# Copyright (c) 2015-2021 Canonical, Ltd.
#
# This file is part of Talisker
# (see http://github.com/canonical-ols/talisker).
Expand Down Expand Up @@ -67,13 +67,13 @@

# General information about the project.
project = u'talisker'
copyright = u'2016, Canonical Ltd'
copyright = u'2021, Canonical Ltd'

# The version info for the project you're documenting, acts as replacement
# for |version| and |release|, also used in various other places throughout
# the built documents.
# The short X.Y version.
version = '0.20.0'
version = '0.21.0'
# The full version, including alpha/beta/rc tags.
release = version

Expand Down
4 changes: 2 additions & 2 deletions scripts/build_setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2015-2018 Canonical, Ltd.
# Copyright (c) 2015-2021 Canonical, Ltd.
#
# This file is part of Talisker
# (see http://github.com/canonical-ols/talisker).
Expand Down Expand Up @@ -56,7 +56,7 @@ def print_line(k, v, indent=' '):

print("""#!/usr/bin/env python
#
# Copyright (c) 2015-2018 Canonical, Ltd.
# Copyright (c) 2015-2021 Canonical, Ltd.
#
# This file is part of Talisker
# (see http://github.com/canonical-ols/talisker).
Expand Down
2 changes: 1 addition & 1 deletion scripts/limbo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2015-2018 Canonical, Ltd.
# Copyright (c) 2015-2021 Canonical, Ltd.
#
# This file is part of Talisker
# (see http://github.com/canonical-ols/talisker).
Expand Down
38 changes: 18 additions & 20 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,27 @@ filterwarnings = ignore

[metadata]
name = talisker
version = 0.20.0
version = 0.21.0
description = A common WSGI stack
long_description = file: README.rst
author = Simon Davy
author_email = [email protected]
url = https://github.com/canonical-ols/talisker
keywords = talisker
classifiers =
classifiers =
License :: OSI Approved :: Apache Software License
Development Status :: 4 - Beta
Intended Audience :: Developers
Natural Language :: English
Topic :: Internet :: WWW/HTTP :: WSGI
Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware
Topic :: System :: Logging
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: Implementation :: CPython

[options]
Expand All @@ -41,45 +43,41 @@ include_package_data = True
packages = talisker
test_suite = tests
package_dir = talisker=talisker
install_requires =
install_requires =
Werkzeug>=0.10.4,<1.2
statsd>=3.2.1,<4.0
requests>=2.18.0,<3.0
future>=0.15.2,<=0.18.2
ipaddress>=1.0.16,<2.0;python_version<"3.3"
contextvars==2.4;python_version>="3.5" and python_version<"3.7"

[options.extras_require]
gunicorn = gunicorn>=19.7.0,<21.0
raven = raven>=6.4.0,<7.0
gunicorn = gunicorn>=19.7.0
raven = raven>=6.4.0
celery =
celery>=3.1.25.0,<4.4.7;python_version<"3.6"
celery>=3.1.25.0,<=5.0.5;python_version>="3.6"
django = django>=1.10,<2.0
celery>=3.1.25.0,<4.4.7;python_version<="3.5"
celery>=4,<5.3;python_version>"3.5"
django = django>=1.10,<4.0
prometheus = prometheus-client>=0.5.0,<0.8.0
flask =
flask =
flask>=0.11,<1.2
blinker>=1.4,<2.0
dev =
dev =
logging_tree>=1.7
pygments>=2.2
psutil>=5.0
objgraph>=3.0
pg =
sqlparse>=0.2
psycopg2>=2.7.3.2,<3.0
pg_wheel =
sqlparse>=0.2
psycopg2-binary>=2.7.3.2,<3.0
asyncio =
sqlparse>=0.3.1
psycopg2>=2.8,<3.0
asyncio =
aiocontextvars==0.2.2;python_version>="3.5" and python_version<"3.7"
gevent = gevent>=1.5.0

[options.package_data]
talisker = logstash/*

[options.entry_points]
console_scripts =
console_scripts =
talisker=talisker:run_gunicorn[gunicorn]
talisker.run=talisker:run
talisker.gunicorn=talisker:run_gunicorn[gunicorn]
Expand Down
31 changes: 16 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (c) 2015-2018 Canonical, Ltd.
# Copyright (c) 2015-2021 Canonical, Ltd.
#
# This file is part of Talisker
# (see http://github.com/canonical-ols/talisker).
Expand Down Expand Up @@ -59,6 +59,10 @@
It integrates with many standard python libraries to give you out-of-the-box
logging, metrics, error reporting, status urls and more.
Python version support
----------------------
This release of talisker (0.20.0) will be the last to support python 2.7
Quick Start
-----------
Expand Down Expand Up @@ -116,10 +120,12 @@
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
'Topic :: System :: Logging',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
],
description='A common WSGI stack',
Expand All @@ -139,8 +145,8 @@
'aiocontextvars==0.2.2;python_version>="3.5" and python_version<"3.7"',
],
celery=[
'celery>=3.1.25.0,<4.4.7;python_version<"3.6"',
'celery>=3.1.25.0,<=5.0.5;python_version>="3.6"',
'celery>=3.1.25.0,<4.4.7;python_version<="3.5"',
'celery>=4,<5.3;python_version>"3.5"',
],
dev=[
'logging_tree>=1.7',
Expand All @@ -149,7 +155,7 @@
'objgraph>=3.0',
],
django=[
'django>=1.10,<2.0',
'django>=1.10,<4.0',
],
flask=[
'flask>=0.11,<1.2',
Expand All @@ -159,21 +165,17 @@
'gevent>=1.5.0',
],
gunicorn=[
'gunicorn>=19.7.0,<21.0',
'gunicorn>=19.7.0',
],
pg=[
'sqlparse>=0.2',
'psycopg2>=2.7.3.2,<3.0',
],
pg_wheel=[
'sqlparse>=0.2',
'psycopg2-binary>=2.7.3.2,<3.0',
'sqlparse>=0.3.1',
'psycopg2>=2.8,<3.0',
],
prometheus=[
'prometheus-client>=0.5.0,<0.8.0',
],
raven=[
'raven>=6.4.0,<7.0',
'raven>=6.4.0',
],
),
include_package_data=True,
Expand All @@ -182,7 +184,6 @@
'statsd>=3.2.1,<4.0',
'requests>=2.18.0,<3.0',
'future>=0.15.2,<=0.18.2',
'ipaddress>=1.0.16,<2.0;python_version<"3.3"',
'contextvars==2.4;python_version>="3.5" and python_version<"3.7"',
],
keywords=[
Expand Down
10 changes: 2 additions & 8 deletions talisker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015-2018 Canonical, Ltd.
# Copyright (c) 2015-2021 Canonical, Ltd.
#
# This file is part of Talisker
# (see http://github.com/canonical-ols/talisker).
Expand All @@ -22,12 +22,6 @@
#

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import

from builtins import * # noqa
import logging
import sys
import textwrap
Expand All @@ -48,7 +42,7 @@
request_timeout,
)

__version__ = '0.20.0'
__version__ = '0.21.0'
__all__ = [
'initialise',
'get_config',
Expand Down
2 changes: 1 addition & 1 deletion talisker/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2015-2018 Canonical, Ltd.
# Copyright (c) 2015-2021 Canonical, Ltd.
#
# This file is part of Talisker
# (see http://github.com/canonical-ols/talisker).
Expand Down
9 changes: 1 addition & 8 deletions talisker/celery.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2015-2018 Canonical, Ltd.
# Copyright (c) 2015-2021 Canonical, Ltd.
#
# This file is part of Talisker
# (see http://github.com/canonical-ols/talisker).
Expand All @@ -22,13 +22,6 @@
# under the License.
#

from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import

from builtins import * # noqa

import logging
import time

Expand Down
7 changes: 1 addition & 6 deletions talisker/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2015-2018 Canonical, Ltd.
# Copyright (c) 2015-2021 Canonical, Ltd.
#
# This file is part of Talisker
# (see http://github.com/canonical-ols/talisker).
Expand All @@ -23,11 +23,6 @@
#

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import

from builtins import * # noqa
__metaclass__ = type

Expand Down
10 changes: 1 addition & 9 deletions talisker/context.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2015-2018 Canonical, Ltd.
# Copyright (c) 2015-2021 Canonical, Ltd.
#
# This file is part of Talisker
# (see http://github.com/canonical-ols/talisker).
Expand All @@ -22,14 +22,6 @@
# under the License.
#

from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import

from builtins import * # noqa
__metaclass__ = type

import future.utils
try:
from collections.abc import Mapping, Sequence
Expand Down
8 changes: 1 addition & 7 deletions talisker/django.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2015-2018 Canonical, Ltd.
# Copyright (c) 2015-2021 Canonical, Ltd.
#
# This file is part of Talisker
# (see http://github.com/canonical-ols/talisker).
Expand All @@ -22,12 +22,6 @@
# under the License.
#

from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import

from builtins import * # noqa
import logging

import talisker.sentry
Expand Down
Loading

0 comments on commit 70c9f62

Please sign in to comment.