Skip to content

Commit 3badc42

Browse files
Merge pull request #10 from RefaceAI/tests-python-3.12-3.13
Run tests on python 3.12 and 3.13
2 parents cadf2b3 + 38b16a7 commit 3badc42

File tree

6 files changed

+13
-4
lines changed

6 files changed

+13
-4
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.8', '3.9', '3.10', '3.11', '3.12', '3.13']
1111

1212
steps:
1313
- name: Checkout repository code

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ nosetests.xml
3535
.pydevproject
3636

3737
.idea/
38+
.venv/
3839
venv/
3940
.DS_Store

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
quantile-estimator
22
==========================
33

4-
Python Implementation of Graham Cormode and S. Muthukrishnan's Effective Computation of Biased Quantiles over Data Streams in ICDE05
4+
Python Implementation of Graham Cormode and S. Muthukrishnan's Effective Computation of Biased Quantiles over Data Streams in ICDE'05
55

66
## Installation
77
```

quantile_estimator/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ def __init__(self, *invariants, max_age_seconds=10 * 60, age_buckets=5):
225225

226226
# needed for original aioprometheus Summary metric
227227
# https://github.com/claws/aioprometheus
228+
# TODO: probably need to drop it, as aioprometheus project looks abandoned
228229
self._observations = 0
229230
self._sum = 0
230231
self._invariants = self.ring_buckets[0]._invariants

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,17 @@ def readfile(filename) -> str:
2626
packages=["quantile_estimator"],
2727
platforms="Platform Independent",
2828
classifiers=[
29-
"Development Status :: 3 - Alpha",
29+
"Development Status :: 4 - Beta",
3030
"Intended Audience :: Developers",
3131
"License :: OSI Approved :: Apache Software License",
3232
"Operating System :: OS Independent",
3333
"Topic :: Scientific/Engineering :: Mathematics",
34+
"Programming Language :: Python :: 3",
35+
"Programming Language :: Python :: 3.8",
36+
"Programming Language :: Python :: 3.9",
37+
"Programming Language :: Python :: 3.10",
38+
"Programming Language :: Python :: 3.11",
39+
"Programming Language :: Python :: 3.12",
40+
"Programming Language :: Python :: 3.13",
3441
],
3542
)

tests/test_estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_random_observations(num_observations):
1515

1616

1717
def test_border_invariants():
18-
estimator = Estimator((0.0, 0.), (1.0, 0.))
18+
estimator = Estimator((0.0, 0.0), (1.0, 0.0))
1919

2020
values = [random.randint(1, 1000) for _ in range(1000)]
2121
for x in values:

0 commit comments

Comments
 (0)