harvard-hbs / team-formation

A tool to form teams from a larger group based on clustering and diversity constraints
MIT License
1 stars 0 forks source link

Fix deprecation warnings for `PyType_Spec` when running tests #7

Open bbenson-hbs opened 16 hours ago

bbenson-hbs commented 16 hours ago
$ make test
pytest
============================================================================================ test session starts ============================================================================================
platform darwin -- Python 3.12.3, pytest-8.3.3, pluggy-1.5.0
rootdir: /Users/bbenson/Documents/HBS/repos/team-formation-toml/team-formation
configfile: pyproject.toml
collected 3 items                                                                                                                                                                                           

tests/test_big.py .                                                                                                                                                                                   [ 33%]
tests/test_size.py .                                                                                                                                                                                  [ 66%]
tests/test_small.py .                                                                                                                                                                                 [100%]

============================================================================================= warnings summary ==============================================================================================
<frozen importlib._bootstrap>:488
  <frozen importlib._bootstrap>:488: DeprecationWarning: Type google._upb._message.MessageMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.

<frozen importlib._bootstrap>:488
  <frozen importlib._bootstrap>:488: DeprecationWarning: Type google._upb._message.ScalarMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
====================================================================================== 3 passed, 2 warnings in 15.92s =======================================================================================
bbenson-hbs commented 6 hours ago

Upgrading to protobuf==5.28.3 fixes this issue, but conflicts with ortools==9.11.4210 which specifies protobuf<5.27,>=5.26.1.