diff --git a/.circleci/config.yml b/.circleci/config.yml index 812bc16..f8cbe31 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -36,7 +36,7 @@ jobs: steps: - checkout - run: echo 'export PATH=$HOME/.local/bin:$PATH' >> $BASH_ENV - - run: pip install --user tox + - run: pip install --user tox "virtualenv<20.22.0" - run: tox test_nooptionals: parameters: diff --git a/README.md b/README.md index 3242702..0f3cb45 100644 --- a/README.md +++ b/README.md @@ -434,7 +434,7 @@ metrics_app = make_asgi_app() app.mount("/metrics", metrics_app) ``` -For Multiprocessing support, use this modified code snippet. Full multiprocessing intstructions are provided [here](https://github.com/prometheus/client_python#multiprocess-mode-eg-gunicorn). +For Multiprocessing support, use this modified code snippet. Full multiprocessing instructions are provided [here](https://github.com/prometheus/client_python#multiprocess-mode-eg-gunicorn). ```python from fastapi import FastAPI diff --git a/prometheus_client/bridge/graphite.py b/prometheus_client/bridge/graphite.py index 3000980..8cadbed 100755 --- a/prometheus_client/bridge/graphite.py +++ b/prometheus_client/bridge/graphite.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import logging import re diff --git a/setup.py b/setup.py index c5eea5e..4b320dc 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name="prometheus_client", - version="0.17.0", + version="0.17.1", author="Brian Brazil", author_email="brian.brazil@robustperception.io", description="Python client for the Prometheus monitoring system.", diff --git a/tox.ini b/tox.ini index f1d4d1c..3a5e23b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,17 +1,15 @@ [tox] envlist = coverage-clean,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,pypy3.7,py3.9-nooptionals,coverage-report,flake8,isort,mypy -[base] +[testenv] deps = coverage pytest attrs - -[testenv] -deps = - {[base]deps} {py3.7,pypy3.7}: twisted - {py3.7,pypy3.7}: asgiref + py3.7: asgiref + # See https://github.com/django/asgiref/issues/393 for why we need to pin asgiref for pypy + pypy3.7: asgiref==3.6.0 commands = coverage run --parallel -m pytest {posargs} [testenv:py3.9-nooptionals]