From: Jani Nikula <jani.nikula@linux.intel.com>
To: Adam Turner <aaturnerpython@outlook.com>,
Akira Yokosawa <akiyks@gmail.com>
Cc: Jonathan Corbet <corbet@lwn.net>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>
Subject: Re: Sphinx pre v3 -- removing support
Date: Fri, 03 Jun 2022 18:44:36 +0300 [thread overview]
Message-ID: <87ee05oior.fsf@intel.com> (raw)
In-Reply-To: <LO3P123MB2681A3F3A05E269AE0351799C2A19@LO3P123MB2681.GBRP123.PROD.OUTLOOK.COM>
On Fri, 03 Jun 2022, Adam Turner <aaturnerpython@outlook.com> wrote:
>>> From Sphinx's perspective, we'd like to remove long-deprecated code.
>>> What is a good solution here for both sides? The intertial option is
>>> for us to delay the deprecation by another major version (removal is
>>> currently scheduled for Sphinx 6 (2023-05), and we are currently
>>> releasing a major version every May.
>
>> So, can we assume that there won't be any backward-incompatible
>> behavior changes in Sphinx due to the removal of those long-deprecated
>> code?
>
> I'm referring to removing support for the "c_allow_pre_v3",
> "c_warn_on_allowed_pre_v3", configuration options [1]_, and the
> associated support for still parsing the pre v3 syntax in the C
> domain [2]_. This means that pre v3 syntax in reStructuredText files
> would not work with Sphinx 6 onwards.
>
>> Or do you mean that after the release of Sphinx 6, pre v3 Sphinx
>> will be removed in the PyPI repository?
>
> No releases will be removed from PyPI, but if pre v3 syntax is still
> used, Sphinx 6.0 would fail to properly parse it.
And that's the crux of the problem. From kernel POV I'd very much prefer
not setting an upper bound for the Sphinx version. I think it's
important to be able to build the documentation using the latest Sphinx,
and gradually iron out the inevitable quirks that arise.
However, if you decide to drop support for pre v3 syntax in Sphinx v6,
and we decide to stick to being able to use pre v3 Sphinx, we can't move
forward to newer versions until we bump the lower bound for the Sphinx
version to v3+. (Or we need to hack around Sphinx version differences in
kernel, but I think that would be best avoided.)
BR,
Jani.
>
>> These questions might be too obvious for you but I have no idea what
>> you mean by "removing support".
>
> A
>
> _[1]: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-c_allow_pre_v3
> _[2]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#the-c-domain
>
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2022-06-03 15:45 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-03 14:13 Sphinx pre v3 -- removing support Adam Turner
2022-06-03 14:21 ` Jonathan Corbet
2022-06-03 14:30 ` Adam Turner
2022-06-03 21:34 ` Jonathan Corbet
2022-06-03 15:22 ` Matthew Wilcox
2022-06-03 15:30 ` Adam Turner
2022-06-03 15:38 ` Matthew Wilcox
2022-06-03 15:42 ` Konstantin Ryabitsev
2022-06-03 16:00 ` Jonathan Corbet
2022-06-03 16:26 ` Konstantin Ryabitsev
2022-06-03 21:50 ` Jonathan Corbet
2022-06-13 15:40 ` Konstantin Ryabitsev
2022-06-13 16:00 ` Matthew Wilcox
2022-06-13 16:16 ` Adam Turner
2022-06-13 16:19 ` Matthew Wilcox
2022-06-03 22:11 ` Jonathan Corbet
2022-06-03 15:05 ` Akira Yokosawa
2022-06-03 15:27 ` Adam Turner
2022-06-03 15:44 ` Jani Nikula [this message]
2022-06-03 15:54 ` Adam Turner
2022-06-03 16:36 ` Akira Yokosawa
2022-06-03 19:05 ` Jani Nikula
2022-06-04 8:13 ` Mauro Carvalho Chehab
2022-07-02 11:23 ` Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ee05oior.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=aaturnerpython@outlook.com \
--cc=akiyks@gmail.com \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).