deepcharles / ruptures

ruptures: change point detection in Python
BSD 2-Clause "Simplified" License
1.54k stars 160 forks source link

Python 3.12 wheels #314

Closed pbregener closed 7 months ago

pbregener commented 7 months ago

It seems like the latest version builds and works fine with Python 3.12 as well! Just built it in a clean Python 3.12 container and all tests pass:

pytest output ``` ============================================= test session starts ============================================= platform linux -- Python 3.12.0, pytest-7.4.3, pluggy-1.3.0 -- /usr/local/bin/python cachedir: .pytest_cache rootdir: /root/ruptures configfile: pyproject.toml testpaths: tests collected 585 items tests/test_bnode.py::test_bnode PASSED [ 0%] [ ... ALL TESTS ARE PASSING ... ] tests/test_metrics.py::test_exception[randindex] PASSED [100%] ============================================== warnings summary ===============================================tests/test_costs.py: 5 warnings tests/test_detection.py: 21 warnings /root/ruptures/src/ruptures/costs/costnormal.py:27: UserWarning: New behaviour in v1.1.5: a small bias is added to the covariance matrix to cope with truly constant segments (see PR#198). warnings.warn( tests/test_display.py::test_display_with_options /usr/local/lib/python3.12/site-packages/dateutil/tz/tz.py:37: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC). EPOCH = datetime.datetime.utcfromtimestamp(0) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ====================================== 585 passed, 27 warnings in 3.74s ======================================= ```

There are some of the "usual" Python 3.12-related timezone-awareness deprecation warnings that you can see pop up in all kinds of Python packages these days, but nothing critical.

Are there any plans for providing Python 3.12 wheels? Kindly pinging @oboulant as you were extremely helpful with Python 3.11 wheels not too long ago :)

oboulant commented 7 months ago

Hi @pbregener

Thx for the ping ! I will have a look at that (most probably next week) !

tg12 commented 7 months ago

Nice

oboulant commented 7 months ago

PR #316 merged ! I will perform the release early on next week (out of the office today) ! ⏳

oboulant commented 7 months ago

v1.1.9 is out !