-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from asherf/dups
Prepare 2.0.0 release.
- Loading branch information
Showing
4 changed files
with
34 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Changelog | ||
|
||
## v2.0.0 - Jan 20, 2020 | ||
|
||
* Added support for newer Django and Python versions | ||
* Added an extensibility that applications to add their own labels to middleware (request/response) metrics | ||
* Allow overriding and setting custom bucket values for request/response latency histogram metric | ||
* Internal improvements: | ||
* use tox | ||
* Use pytest | ||
* use Black | ||
* Automate pre-releases on every commit ot master | ||
* Fix flaky tests. | ||
|
||
## v1.1.0 - Sep 28, 2019 | ||
|
||
* maintenance release that updates this library to support recent and supported version of python & Django |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,37 @@ | ||
import re | ||
from setuptools import find_packages, setup | ||
|
||
LONG_DESCRIPTION = """Django-Prometheus | ||
with open("README.md") as fl: | ||
LONG_DESCRIPTION = fl.read() | ||
|
||
This library contains code to expose some monitoring metrics relevant | ||
to Django internals so they can be monitored by Prometheus.io. | ||
See https://github.com/korfuri/django-prometheus for usage | ||
instructions. | ||
""" | ||
|
||
def get_version(): | ||
version_file = open('django_prometheus/__init__.py', 'r').read() | ||
version_match = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', version_file, re.MULTILINE) | ||
version_file = open("django_prometheus/__init__.py", "r").read() | ||
version_match = re.search( | ||
r'^__version__ = [\'"]([^\'"]*)[\'"]', version_file, re.MULTILINE | ||
) | ||
if version_match: | ||
return version_match.group(1) | ||
raise RuntimeError('Unable to find version string.') | ||
raise RuntimeError("Unable to find version string.") | ||
|
||
|
||
setup( | ||
name="django-prometheus", | ||
version=get_version(), | ||
author="Uriel Corfa", | ||
author_email="[email protected]", | ||
description=( | ||
"Django middlewares to monitor your application with Prometheus.io."), | ||
description=("Django middlewares to monitor your application with Prometheus.io."), | ||
license="Apache", | ||
keywords="django monitoring prometheus", | ||
url="http://github.com/korfuri/django-prometheus", | ||
packages=find_packages(), | ||
packages=find_packages(exclude=["tests",]), | ||
test_suite="django_prometheus.tests", | ||
long_description=LONG_DESCRIPTION, | ||
tests_require=['pytest', 'pytest-django'], | ||
long_description_content_type="text/markdown", | ||
tests_require=["pytest", "pytest-django"], | ||
setup_requires=["pytest-runner"], | ||
options={"bdist_wheel": {"universal": "1"}}, | ||
install_requires=[ | ||
"prometheus-client>=0.7", | ||
], | ||
install_requires=["prometheus-client>=0.7",], | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters