Page MenuHomePhabricator

Allow next as version hint for version directives
Closed, ResolvedPublicFeature

Description

Feature request
Allow next as version hint for version directives within Python docstrings for Sphinx:

.. version-added:: next
.. version-changed:: next
.. version-removed:: next
.. version-deprecated:: next

*Proposed implementation**
Here some ideas:

  • Provide a script similar to CPython's update_version_next should change the version information retrieving it from __metadata__ file for the framework or pyproject.toml for the pywikibot-scripts package.
  • Call this script within make_dist.
  • Implement the behavior inside make_dist script.
  • Implement a pre-commit hook which only runs when __metadata__ is not a development release.

Event Timeline

Change #1354225 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] scripts: add next_version.py script to update version directives

https://gerrit.wikimedia.org/r/1354225

Mahveotm triaged this task as High priority.

Change #1354225 merged by jenkins-bot:

[pywikibot/core@master] scripts: add next_version.py script to update version directives

https://gerrit.wikimedia.org/r/1354225