| 1 |
.. include:: header.rst |
| 2 |
|
| 3 |
========================================= |
| 4 |
EP 1 — Docutils EP Purpose and Guidelines |
| 5 |
========================================= |
| 6 |
|
| 7 |
:Author: Günter Milde |
| 8 |
:Discussions-To: `feature-requests 111`_ |
| 9 |
:Status: Draft |
| 10 |
:Type: Process |
| 11 |
:Created: 2025-04-22 |
| 12 |
:Docutils-Version: 0.22 |
| 13 |
|
| 14 |
:Abstract: |
| 15 |
`Docutils Enhancement Proposals` are a mechanism for |
| 16 |
proposing major new features, collecting community input, |
| 17 |
and documenting important design decisions. |
| 18 |
This document describes their purpose and structure. |
| 19 |
It borrows heavily from `Python Enhancement Proposals`_. [PEP1]_ |
| 20 |
|
| 21 |
The document is still a draft -- suggestions and contributions are welcome. |
| 22 |
|
| 23 |
.. contents:: |
| 24 |
|
| 25 |
|
| 26 |
Motivation |
| 27 |
========== |
| 28 |
|
| 29 |
.. Explain why the existing specification is inadequate |
| 30 |
|
| 31 |
`Issue tickets`_ on the project page and the `Docutils To Do List`_ are |
| 32 |
established channels for suggesting changes to Docutils and |
| 33 |
reStructuredText. |
| 34 |
They work fine for small changes or issues with one obvious solution. |
| 35 |
However, we are missing a framework for complex cases with competing |
| 36 |
alternative approaches and for documenting the internal processes at the |
| 37 |
Docutils project. |
| 38 |
|
| 39 |
|
| 40 |
Rationale |
| 41 |
========= |
| 42 |
|
| 43 |
.. Describe why particular design decisions were made. |
| 44 |
|
| 45 |
*Enhancement Proposals* are used by a wide range of projects |
| 46 |
of different size (see References_). |
| 47 |
David Goodger suggested using enhancement proposals in a |
| 48 |
lightweight formal process for the Docutils project. |
| 49 |
|
| 50 |
|
| 51 |
Specification |
| 52 |
============= |
| 53 |
|
| 54 |
.. Describe the syntax and semantics of any new feature. |
| 55 |
|
| 56 |
.. note:: |
| 57 |
The key words "*must*", "*must not*", "*required*", "*shall*", |
| 58 |
"*shall not*", *should*", "*should not*", "*recommended*", "*may*", |
| 59 |
and "*optional*" are to be interpreted as described in :RFC:`2119`. |
| 60 |
|
| 61 |
A `Docutils Enhancement Proposal` (EP) [#dep]_ is a reStructuredText_ |
| 62 |
document with a preamble_ and a standard set of sections_. |
| 63 |
|
| 64 |
.. [#dep] Deciding on an abbreviation for `Docutils Enhancement Proposals` |
| 65 |
is one of the `open issues`_. |
| 66 |
|
| 67 |
|
| 68 |
Preamble |
| 69 |
-------- |
| 70 |
|
| 71 |
The preamble *should* contain the following `Bibliographic Fields`_: |
| 72 |
|
| 73 |
|
| 74 |
.. class:: field-indent-8em |
| 75 |
|
| 76 |
:Author [#]_: Author name and, optionally, email address (in angle brackets). |
| 77 |
:Discussions-To: URL of the current discussion thread and/or issue ticket. |
| 78 |
:Status: One of "Draft", "Active", "Accepted", "Provisional", "Deferred", |
| 79 |
"Rejected", "Withdrawn", "Final", or "Superseded" |
| 80 |
(cf. `PEP Review & Resolution`_). |
| 81 |
:Created: Date [#iso8601]_ that the proposal was assigned a number. |
| 82 |
:Abstract: A short description of the technical issue being addressed. |
| 83 |
|
| 84 |
As appropriate, it *may* contain |
| 85 |
|
| 86 |
.. class:: field-indent-8em |
| 87 |
|
| 88 |
:Docutils-Version: Number of the first release including the new feature. |
| 89 |
:Post-History: List of past discussion threads and/or issue tickets. |
| 90 |
:Type: One of "Standard" (default), "Informational", "Process" |
| 91 |
(cf. `PEP Types`_). |
| 92 |
:Topic: Special topic (affected component or part), e.g. |
| 93 |
"reStructuredText", "Document Model", "HTML output", … |
| 94 |
:Requires: Number(s) of EP(s) this proposal depends on. |
| 95 |
:Replaces: Current policy, API document, or EP. |
| 96 |
:Superseded-By: Number of EP obsoleting this proposal. |
| 97 |
:Resolution: Date [#iso8601]_ with link to the acceptance/rejection post. |
| 98 |
|
| 99 |
.. [#] Use "Authors_" if there is more than one author. |
| 100 |
.. [#iso8601] in ISO 8601 format (yyyy-mm-dd) |
| 101 |
|
| 102 |
|
| 103 |
Sections |
| 104 |
-------- |
| 105 |
|
| 106 |
Each standard EP *should* have the following sections: |
| 107 |
|
| 108 |
.. class:: description |
| 109 |
|
| 110 |
Motivation: |
| 111 |
Clearly explain why the existing specification is inadequate to address |
| 112 |
the problem that the proposal solves. |
| 113 |
|
| 114 |
The motivation is critical for proposals that want to change the |
| 115 |
reStructuredText_ language or the Docutils `document model`_, library, |
| 116 |
or ecosystem. Proposals without sufficient motivation may be rejected. |
| 117 |
|
| 118 |
.. _`sec: rationale`: |
| 119 |
|
| 120 |
Rationale: |
| 121 |
Describe why particular design decisions were made. |
| 122 |
|
| 123 |
The rationale should describe alternate designs that were considered and |
| 124 |
related work, e.g. how the feature is supported in other languages. |
| 125 |
|
| 126 |
The rationale should provide evidence of consensus within the community |
| 127 |
and discuss important objections or concerns raised during |
| 128 |
discussion (see also `rejected Ideas <sec: rejected ideas_>`__ below). |
| 129 |
|
| 130 |
Specification: |
| 131 |
Describe the syntax and semantics of any new feature. |
| 132 |
|
| 133 |
The specification should be detailed enough to allow competing, |
| 134 |
interoperable implementations. |
| 135 |
|
| 136 |
Backwards Compatibility: |
| 137 |
Describe potential impact and severity on pre-existing code. |
| 138 |
|
| 139 |
The proposal must explain how the author attempts to deal with these |
| 140 |
incompatibilities. Proposal submissions without a sufficient backwards |
| 141 |
compatibility treatise may be rejected outright. |
| 142 |
|
| 143 |
Security Implications: |
| 144 |
How could a malicious user take advantage of this new feature? |
| 145 |
|
| 146 |
If there are security concerns in relation to the PEP, those concerns |
| 147 |
should be explicitly written out to make sure reviewers of the PEP are |
| 148 |
aware of them. |
| 149 |
If applicable, include a suggestion how to update the |
| 150 |
`security documentation`_. |
| 151 |
|
| 152 |
How to Teach This: |
| 153 |
How to teach users, new and experienced, how to apply the proposal to |
| 154 |
their work. |
| 155 |
|
| 156 |
This section may include key points and recommended documentation |
| 157 |
changes that would help users adopt a new feature or migrate their code |
| 158 |
to make use of the new feature. |
| 159 |
|
| 160 |
Reference Implementation: |
| 161 |
Link to any existing implementation and details about its state, e.g. |
| 162 |
proof-of-concept. |
| 163 |
|
| 164 |
The reference implementation must be completed before any PEP is given |
| 165 |
status “Final”, but it need not be completed before the PEP is |
| 166 |
accepted. The final implementation must include test code and |
| 167 |
documentation. |
| 168 |
|
| 169 |
.. _`sec: rejected ideas`: |
| 170 |
|
| 171 |
Rejected Ideas: |
| 172 |
Why certain ideas that were brought while discussing this proposal |
| 173 |
were not ultimately pursued. |
| 174 |
|
| 175 |
Those rejected ideas should be recorded along with the reasoning as to |
| 176 |
why they were rejected. This both helps record the thought process |
| 177 |
behind the final version of the PEP as well as preventing people from |
| 178 |
bringing up the same rejected idea again in subsequent discussions. |
| 179 |
|
| 180 |
A brief discussion of rejected ideas should be included in the |
| 181 |
`Rationale <sec: rationale_>`__. |
| 182 |
|
| 183 |
Open Issues: |
| 184 |
Any points that are still being decided/discussed. |
| 185 |
|
| 186 |
Those ideas should be recorded so people know that they are being |
| 187 |
thought about but do not have a concrete resolution. This helps make |
| 188 |
sure all issues required for the PEP to be ready for consideration are |
| 189 |
complete and reduces people duplicating prior discussion. |
| 190 |
|
| 191 |
References: |
| 192 |
A collection of footnotes and references. |
| 193 |
|
| 194 |
Copyright: |
| 195 |
The copyright notice. |
| 196 |
|
| 197 |
See the copyright_ of this document for a suggestion. |
| 198 |
|
| 199 |
|
| 200 |
Backwards Compatibility |
| 201 |
======================= |
| 202 |
|
| 203 |
.. Describe potential impact and severity on pre-existing code. |
| 204 |
|
| 205 |
`Enhancement Proposals` will supplement rather than replace existing |
| 206 |
communication channels. |
| 207 |
|
| 208 |
`Issue tickets`_ with a long list of comments will gain from a |
| 209 |
consolidation into a related EP. |
| 210 |
Some sections of the `Docutils To Do List`_ may be moved to an EP. |
| 211 |
|
| 212 |
|
| 213 |
Security Implications |
| 214 |
===================== |
| 215 |
|
| 216 |
.. How could a malicious user take advantage of this new feature? |
| 217 |
|
| 218 |
A structured discussion of proposed changes including their security |
| 219 |
implications will help `deploying Docutils securely`_. |
| 220 |
|
| 221 |
|
| 222 |
How to Teach This |
| 223 |
================= |
| 224 |
|
| 225 |
.. How to teach users, new and experienced, how to apply the proposal to |
| 226 |
their work. |
| 227 |
|
| 228 |
Enhancement proposals will be included in the `Docutils documentation`__. |
| 229 |
|
| 230 |
In the FAQ entry "`How can I get a new feature into Docutils?`_", |
| 231 |
we should add a paragraph like |
| 232 |
|
| 233 |
If discussion of a bug, patch, or feature request ticket_ spans more |
| 234 |
than one page, it may be time to consider turning it into an |
| 235 |
`enhancement proposal`. |
| 236 |
(The existing ticket should be referenced in the "Discussions-To" or |
| 237 |
"Post-History" preamble_ field.) |
| 238 |
|
| 239 |
__ ../index.html#enhancement-proposals |
| 240 |
|
| 241 |
|
| 242 |
Reference Implementation |
| 243 |
======================== |
| 244 |
|
| 245 |
.. Link to any existing implementation and details about its state, e.g. |
| 246 |
proof-of-concept. |
| 247 |
|
| 248 |
Since 2025-04-29, enhancement proposals are available as part of the |
| 249 |
Docutils Documentation under https://docutils.sourceforge.io/docs/eps/. |
| 250 |
|
| 251 |
The sandbox_ contains a directory for |
| 252 |
`enhancement proposals in "pre-draft" stage`_. |
| 253 |
|
| 254 |
|
| 255 |
Rejected Ideas |
| 256 |
============== |
| 257 |
|
| 258 |
.. Why certain ideas that were brought while discussing this proposal |
| 259 |
were not ultimately pursued. |
| 260 |
|
| 261 |
|
| 262 |
Open Issues |
| 263 |
=========== |
| 264 |
|
| 265 |
.. Any points that are still being decided/discussed. |
| 266 |
|
| 267 |
* How to abbreviate `Docutils Enhancement Proposal`? |
| 268 |
|
| 269 |
David Goodger proposed "DocutilsEP" or "DEP" or just "EP". |
| 270 |
Alternatively we may use an unambiguous abbreviation like "DuEP" or |
| 271 |
"DUEP" for `Documentation Utilities Enhancement Proposal`. |
| 272 |
|
| 273 |
See also the abbreviations used by `other projects`_. |
| 274 |
|
| 275 |
* Put the EP number in |
| 276 |
|
| 277 |
- the title, preceding the topic, |
| 278 |
- a sub-title, |
| 279 |
- the title with the topic as sub-title, |
| 280 |
- an "EP" preamble_ field, |
| 281 |
|
| 282 |
|
| 283 |
References |
| 284 |
========== |
| 285 |
|
| 286 |
.. A collection of URLs used as references through the proposal. |
| 287 |
|
| 288 |
.. [PEP1] `PEP Purpose and Guidelines`, |
| 289 |
Barry Warsaw, Jeremy Hylton, David Goodger, Alyssa Coghlan, |
| 290 |
13-Jun-2000, https://peps.python.org/pep-0001/ |
| 291 |
|
| 292 |
Enhancement Proposals in _`other projects` |
| 293 |
------------------------------------------ |
| 294 |
|
| 295 |
.. class:: field-indent-3em |
| 296 |
|
| 297 |
:EPs: used by |
| 298 |
|
| 299 |
:AEP__: AiiDA__ workflow manager for computational science |
| 300 |
|
| 301 |
__ https://github.com/aiidateam/AEP |
| 302 |
__ https://www.aiida.net/ |
| 303 |
|
| 304 |
:CEP__: Cassandra__ distributed database |
| 305 |
|
| 306 |
__ https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=95652201 |
| 307 |
__ https://cwiki.apache.org/confluence/display/CASSANDRA/ |
| 308 |
|
| 309 |
:DEP__: Debian__ Linux distribution |
| 310 |
|
| 311 |
__ https://dep-team.pages.debian.net/ |
| 312 |
__ https://www.debian.org |
| 313 |
|
| 314 |
:DEP__: Django__ Web framework |
| 315 |
|
| 316 |
__ https://github.com/django/deps |
| 317 |
__ http://www.djangoproject.com/ |
| 318 |
|
| 319 |
:DEP__: Dylan__ programming language |
| 320 |
|
| 321 |
__ https://opendylan.org/proposals/index.html |
| 322 |
__ https://opendylan.org/ |
| 323 |
|
| 324 |
:IEP__: `International Standard Content Code`__ content-based identifier |
| 325 |
|
| 326 |
__ https://ieps.iscc.codes/ |
| 327 |
__ https://iscc.codes/ |
| 328 |
|
| 329 |
|
| 330 |
:JEP__: OpenJDK__ Java Platform |
| 331 |
|
| 332 |
__ https://openjdk.org/jeps/0 |
| 333 |
__ https://openjdk.org/ |
| 334 |
|
| 335 |
:JEP__: Jenkins__ automation server |
| 336 |
|
| 337 |
__ https://github.com/jenkinsci/jep |
| 338 |
__ https://www.jenkins.io/ |
| 339 |
|
| 340 |
:JEP__: Project Jupyter__ interactive computing |
| 341 |
|
| 342 |
__ https://github.com/jupyter/enhancement-proposals |
| 343 |
__ https://jupyter.org/ |
| 344 |
|
| 345 |
:Julep__: Julia__ programming language |
| 346 |
|
| 347 |
__ https://github.com/JuliaLang/Juleps |
| 348 |
__ https://julialang.org/ |
| 349 |
|
| 350 |
:KEEP__: Kotline__ programming language |
| 351 |
|
| 352 |
__ https://github.com/Kotlin/KEEP |
| 353 |
__ https://kotlinlang.org/ |
| 354 |
|
| 355 |
:KEP__: Kubernetes__ container orchestration system |
| 356 |
|
| 357 |
__ https://www.kubernetes.dev/resources/keps/ |
| 358 |
__ https://kubernetes.io/ |
| 359 |
|
| 360 |
:MEP__: Matplotlib__ data visualisation library |
| 361 |
|
| 362 |
__ https://matplotlib.org/3.10.0/devel/MEP/index.html |
| 363 |
__ https://matplotlib.org |
| 364 |
|
| 365 |
:MEP__: MyST__ markup language and abstract syntax tree |
| 366 |
|
| 367 |
__ https://mep.myst-tools.org/en/latest/ |
| 368 |
__ https://mystmd.org/ |
| 369 |
|
| 370 |
:NEP__: NEAR__ proof-of-stake blockchain |
| 371 |
|
| 372 |
__ https://github.com/near/NEPs |
| 373 |
__ https://docs.near.org/ |
| 374 |
|
| 375 |
:NEP__: NumPy__ package for scientific computing with Python |
| 376 |
|
| 377 |
__ https://numpy.org/neps/ |
| 378 |
__ https://numpy.org/ |
| 379 |
|
| 380 |
:PEP_: Python__ programming language |
| 381 |
|
| 382 |
__ https://www.python.org/ |
| 383 |
|
| 384 |
:PLEP__: PlasmaPy__ package for plasma research and education |
| 385 |
|
| 386 |
__ https://github.com/PlasmaPy/PlasmaPy-PLEPs |
| 387 |
__ https://docs.plasmapy.org |
| 388 |
|
| 389 |
:REP__: ROS__ Robot Operating System |
| 390 |
|
| 391 |
__ https://www.ros.org/reps/rep-0000.html |
| 392 |
__ https://www.ros.org/ |
| 393 |
|
| 394 |
:REP__: Ray__ unified Python framework for machine learning |
| 395 |
|
| 396 |
__ https://github.com/ray-project/enhancements |
| 397 |
__ https://docs.ray.io/ |
| 398 |
|
| 399 |
:SEP__: Salt__ event-driven automation engine (EPs deprecated__!) |
| 400 |
|
| 401 |
__ https://github.com/saltstack/salt-enhancement-proposals |
| 402 |
__ https://docs.saltproject.io |
| 403 |
__ https://github.com/saltstack/salt-enhancement-proposals |
| 404 |
#deprecation-of-sep-process |
| 405 |
|
| 406 |
:SLEP__: scikit-learn__ Machine Learning in Python |
| 407 |
|
| 408 |
__ https://github.com/scikit-learn/enhancement_proposals |
| 409 |
__ https://scikit-learn.org |
| 410 |
|
| 411 |
:STEP__: sktime__ time series analysis in Python |
| 412 |
|
| 413 |
__ https://github.com/sktime/enhancement-proposals |
| 414 |
__ https://www.sktime.net |
| 415 |
|
| 416 |
:ZEP__: Zarr__ specifications and software for storage of large tensors |
| 417 |
|
| 418 |
__ https://zarr.dev/zeps/active/ZEP0000.html |
| 419 |
__ https://zarr.dev/ |
| 420 |
|
| 421 |
|
| 422 |
.. URI references |
| 423 |
-------------- |
| 424 |
|
| 425 |
.. _Python Enhancement Proposals: |
| 426 |
.. _PEP: |
| 427 |
.. _PEPs: https://peps.python.org/ |
| 428 |
.. _PEP review & resolution: |
| 429 |
https://peps.python.org/pep-0001/#pep-review-resolution |
| 430 |
.. _PEP types: https://peps.python.org/pep-0001/#pep-types |
| 431 |
.. _feature-requests 111: |
| 432 |
https://sourceforge.net/p/docutils/feature-requests/111/ |
| 433 |
.. _sandbox: https://docutils.sourceforge.io/sandbox/README.html |
| 434 |
.. _enhancement proposals in "pre-draft" stage: |
| 435 |
https://docutils.sourceforge.io/sandbox/enhancement-proposals/ |
| 436 |
.. _ticket: |
| 437 |
.. _issue tickets: https://sourceforge.net/p/docutils/_list/tickets |
| 438 |
|
| 439 |
.. _Docutils To Do List: ../dev/todo.html |
| 440 |
.. _security documentation: |
| 441 |
.. _Deploying Docutils Securely: |
| 442 |
../howto/security.html |
| 443 |
.. _document model: |
| 444 |
../ref/doctree.html |
| 445 |
.. _reStructuredText: |
| 446 |
../ref/rst/restructuredtext.html |
| 447 |
.. _bibliographic fields: |
| 448 |
../ref/rst/restructuredtext.html#bibliographic-fields |
| 449 |
.. _Authors: |
| 450 |
../ref/rst/restructuredtext.html#authors |
| 451 |
.. _How can I get a new feature into Docutils?: |
| 452 |
../../FAQ.html#how-can-i-get-a-new-feature-into-docutils |
| 453 |
|
| 454 |
|
| 455 |
Copyright |
| 456 |
========= |
| 457 |
|
| 458 |
This document is placed in the public domain or under the |
| 459 |
CC0-1.0-Universal license, whichever is more permissive. |