keleshev / schema

Schema validation just got Pythonic
MIT License
2.86k stars 214 forks source link

Drop contextlib2 requirement? #282

Closed opoplawski closed 4 months ago

opoplawski commented 2 years ago

Is there any reason for the contextlib2 requirement? Is the standard python contextlib not sufficient? It seems like the needed functionality was added in python 3.3, which is long EOL, and 0.5.5 was released in 2017.

skorokithakis commented 2 years ago

Hmm, if it works, I suppose it's not necessary, it's a relic.

dvzrv commented 4 months ago

Hi! :wave:

On Arch Linux we would like to drop the python-contextlib2 package (due to above mentioned reasons). This project is the last dependent of contextlib2.

https://github.com/keleshev/schema/pull/291 already appears to remove this dependency for Python versions < 3.3.

Can it please be merged? :)

skorokithakis commented 4 months ago

Done, thanks!