Extensions: py3 compatibility metadata
Gregory Szorc
gregory.szorc at gmail.com
Thu May 14 19:20:32 UTC 2020
On Wed, May 13, 2020 at 5:18 AM Georges Racinet <georges.racinet at octobus.net>
wrote:
> Hi all,
>
> I don't think we have anything for third party extensions to claim their
> compatibility with Mercurial on Python 3.
>
> Would it be a good idea to add new metadata, such as `py3testedwith` or
> `py3minimumhgversion`?
>
I had thought about this a while ago as well and never got around to
submitting patches. I think it would be a good idea to have more source
level annotations for extensions to mark compatibility with Mercurial,
Python, etc versions/environments. One could even imagine a configuration
mode where Mercurial refuses to load extensions unless they have
annotations indicating they are compatible. This would be a "safe" way to
transition from Python 2 to 3.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20200514/9c77318d/attachment-0002.html>
More information about the Mercurial-devel
mailing list