google / python-fire

Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
Other
26.86k stars 1.44k forks source link

Remove test requirement on mock #469

Open dvzrv opened 10 months ago

dvzrv commented 10 months ago

Hi! I package this project for Arch Linux.

We are currently trying to finally get rid off mock as test requirement (as it is included with Python since 3.3). It would be great if the test requirement on mock in this project could be replaced by the internal unittest.mock.

Related: This project seems to support Python versions that are no longer supported by the Python project itself (see https://www.python.org/downloads/). Is there a reason for that?

dbieber commented 6 months ago

The upcoming release v0.6.0 will be the last release to support Python 2. After that, we'll drop support for Python 2. We can easily drop the dependency on mock at that time.

dvzrv commented 6 months ago

@dbieber thanks, that's great to hear.

Are you able to give a rough ETA on v0.6.0 and a follow-up release? :) (For Arch Linux this is also important in regards to us soon moving to python 3.12 and fixes for Python 3.11 not being released yet either #427).

dbieber commented 6 months ago

v0.6.0 we put out today. I don't have an estimate for the follow-up yet unfortunately.

dvzrv commented 5 months ago

Thanks! I can carry a patch for the mock removal until then.