testing-cabal / mock

The Python mock library

Home Page:https://docs.python.org/dev/library/unittest.mock.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

drop jython support in 3.0.0?

cjw296 opened this issue · comments

@rbtcollins / @mfoord / @voidspace - thoughts?

We have no CI for it, so it's likely to have bit-rotted...

Without CI we can't guarantee it. As far as I recall it was no extra work, but unless someone will test/maintain it I'm happy to drop official support. (No idea how I ended up with two GitHub users.)

Yeah, I can't find any official or support docker images for Jython, so...

+1 for dropping it. I've never run mock's test suite on Jython before, so I guess it may have already been broken.

There is no straightforward to run tests in Jython from Travis like pypy as far as I have searched around. The only example was astroid that downloaded and built it themselves. They also removed it from their CI later. Jython also doesn't support Python 3 yet so I am not sure if it's worth the effort given Python 2 EoL.

pylint-dev/astroid@3591182

Well, I'm planning to move the backport to CircleCI for various reasons, so if we had a stable, publicly maintainer docker image, that would do it.

But, as you say, if they have no Py3, then I think we're safe to drop it.

Okay, 'tis done, ed3bc8b.

I don't think we should drop the Jython glue; it is platform checked to not affect other interpreters and has approx 0 maintenance overhead for us. The whole point of the backport is to make current mock features more widely available.

Anyone who needs this can use 2.0.0 though, right?

I guess my point in saying that is that we're offering a backport that is maintained; I have no idea whether the current master of the backport will blow up when used with Jython or not, and it makes me uncomfortable keeping untested code around that's an indication it might be an expectation.

Totally agree, and if we see evidence of Jython users or Jython users complaining that things no longer work, we can very easily revert the one commit above and bring it back :-)

Sure, I'll leave it with you; my bias is to not remove it in the first place, because then there's no interrupt to run around and un-break, but if you're up for that, all good.

Not sure if this is the issue to discuss this but is it agreed upon to remove it in upstream unittest.mock too? I feel upstream CPython has a larger userbase. Though there are no signs of Python 3 support for Jython or CI in CPython for Jython I think removal could at the least have a NEWS entry/whatsnew/porting section entry.

Sorry forgot to paste the merged PR link : python/cpython#13033