Skip to content

Commit c635b31

Browse files
authored
Merge pull request #226 from asherf/cleanup
Remove support for Django 2.1 & Python 3.5
2 parents 5789038 + 02656b6 commit c635b31

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
dist: bionic
22
language: python
33
python:
4-
- "3.5"
54
- "3.6"
65
- "3.7"
76
- "3.8"

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## DEV
4+
5+
* Remove support for older django and python versions
6+
37
## v2.0.0 - Jan 20, 2020
48

59
* Added support for newer Django and Python versions

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# django-prometheus
2+
23
Export Django monitoring metrics for Prometheus.io
34

45
[![Join the chat at https://gitter.im/django-prometheus/community](https://badges.gitter.im/django-prometheus/community.svg)](https://gitter.im/django-prometheus/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -13,7 +14,7 @@ Export Django monitoring metrics for Prometheus.io
1314

1415
### Requirements
1516

16-
* Django >= 1.11
17+
* Django >= 2.2
1718

1819
### Installation
1920

@@ -61,13 +62,14 @@ urlpatterns = [
6162
```
6263

6364
### Configuration
65+
6466
Prometheus uses Histogram based grouping for monitoring latencies. The default
6567
buckets are here: https://github.com/prometheus/client_python/blob/master/prometheus_client/core.py
6668

6769
You can define custom buckets for latency, adding more buckets decreases performance but
6870
increases accuracy: https://prometheus.io/docs/practices/histograms/
6971

70-
```
72+
```python
7173
PROMETHEUS_LATENCY_BUCKETS = (.1, .2, .5, .6, .8, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.5, 9.0, 12.0, 15.0, 20.0, 30.0, float("inf"))
7274
```
7375

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,9 @@ def get_version():
3838
"Intended Audience :: Information Technology",
3939
"Intended Audience :: System Administrators",
4040
"Programming Language :: Python :: 3",
41-
"Programming Language :: Python :: 3.5",
4241
"Programming Language :: Python :: 3.6",
4342
"Programming Language :: Python :: 3.7",
4443
"Programming Language :: Python :: 3.8",
45-
"Framework :: Django :: 2.1",
4644
"Framework :: Django :: 2.2",
4745
"Topic :: System :: Monitoring",
4846
"License :: OSI Approved :: Apache Software License",

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
[tox]
2-
envlist = {py35,py36,py37,py38}-django{210,220}-{end2end,unittests},py38-lint
2+
envlist = {py36,py37,py38}-django{220}-{end2end,unittests},py38-lint
33

44
[testenv]
55
deps =
6-
django210: Django>=2.1,<2.2
76
django220: Django>=2.2,<2.3
87
coverage
98
-rrequirements.txt

0 commit comments

Comments
 (0)