Skip to content

Commit 2c56bec

Browse files
committed
Run tests on python 3.12 and 3.13
1 parent 0f0ab1f commit 2c56bec

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
timeout-minutes: 10
88
strategy:
99
matrix:
10-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
10+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
1111

1212
steps:
1313
- name: Checkout repository code

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ s.labels(method="POST", endpoint="/login").observe(3.4)
3131

3232
### With custom quantiles and precisions
3333

34-
By default, metrics are observed for next quantile-precision pairs
34+
By default, metrics are observed for next (quantile, precision (inaccuracy)) pairs
3535
`((0.50, 0.05), (0.90, 0.01), (0.99, 0.001))`
36-
but you can provide your own value when creating the metric.
36+
but you can provide your own values when creating the metric.
3737

3838
```python
3939
from prometheus_summary import Summary

prometheus_summary/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
class Summary(prometheus_client.Summary):
12-
# pairs of (quantile, allowed error)
12+
# pairs of (quantile, allowed error (inaccuracy))
1313
DEFAULT_INVARIANTS = ((0.50, 0.05), (0.90, 0.01), (0.99, 0.001))
1414

1515
def __init__(
@@ -40,9 +40,9 @@ def __init__(
4040
registry=registry,
4141
_labelvalues=_labelvalues,
4242
)
43-
self._kwargs['invariants'] = invariants
44-
self._kwargs['max_age_seconds'] = max_age_seconds
45-
self._kwargs['age_buckets'] = age_buckets
43+
self._kwargs["invariants"] = invariants
44+
self._kwargs["max_age_seconds"] = max_age_seconds
45+
self._kwargs["age_buckets"] = age_buckets
4646

4747
def _metric_init(self):
4848
super()._metric_init()

setup.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,25 @@ def readfile(filename) -> str:
2020
license="Apache License 2.0",
2121
url="https://github.com/RefaceAI/prometheus-summary",
2222
packages=["prometheus_summary"],
23+
python_requires=">=3.7",
2324
install_requires=[
2425
"prometheus_client>=0.11.0",
2526
"quantile-estimator>=0.1.0",
2627
],
2728
platforms="Platform Independent",
2829
classifiers=[
29-
"Development Status :: 3 - Alpha",
30+
"Development Status :: 4 - Beta",
3031
"Intended Audience :: Developers",
3132
"License :: OSI Approved :: Apache Software License",
3233
"Operating System :: OS Independent",
3334
"Topic :: Scientific/Engineering :: Mathematics",
35+
"Programming Language :: Python :: 3",
36+
"Programming Language :: Python :: 3.7",
37+
"Programming Language :: Python :: 3.8",
38+
"Programming Language :: Python :: 3.9",
39+
"Programming Language :: Python :: 3.10",
40+
"Programming Language :: Python :: 3.11",
41+
"Programming Language :: Python :: 3.12",
42+
"Programming Language :: Python :: 3.13",
3443
],
3544
)

0 commit comments

Comments
 (0)