glyph / automat

Self-service finite-state machines for the programmer on the go.
MIT License
591 stars 65 forks source link

attrs 19.2.0 cmp deprecation warnings #117

Closed twm closed 4 years ago

twm commented 5 years ago

automat (as used in Twisted) is producing deprecation warnings since the attrs 19.2.0 release last week:

automat/_methodical.py:209: DeprecationWarning: The usage of `cmp` is deprecated and will be removed on or after 2021-06-01.  Please use `eq` and `order` instead.
automat/_methodical.py:288: DeprecationWarning: The usage of `cmp` is deprecated and will be removed on or after 2021-06-01.  Please use `eq` and `order` instead.

This is Automat 0.7.0.

hynek commented 5 years ago

I can offer a PR. Would you like to bump the dep to 19.2 like hypothesis or do you want a hybrid approach like pytest?

twm commented 4 years ago

IMO bumping the dep is fine — that's what we did for Twisted.