Skip to content

In ./Doc, "make html" and "make build" should depend on "make venv" #88919

Closed

Description

@jdevries3133
BPO 44756
Nosy @ned-deily, @encukou, @ambv, @hroncok, @pablogsal, @miss-islington, @jdevries3133
PRs
  • bpo-44756: in ./Doc, make build depends on make html #27403
  • [3.10] bpo-44756: in ./Doc, make build depends on make html (GH-27403) #27410
  • [3.9] bpo-44756: in ./Doc, make build depends on make html (GH-27403) #27411
  • bpo-44756: [docs] revert automated virtual environment creation on make html #27635
  • [3.9] bpo-44756: [docs] revert automated virtual environment creation on make html (GH-27635) #27636
  • [3.10] bpo-44756: [docs] revert automated virtual environment creation on make html (GH-27635) #27637
  • bpo-44756: Remove misleading NEWS entries of a change that was reverted before release #28075
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-08-06.19:53:19.845>
    created_at = <Date 2021-07-28.04:47:25.985>
    labels = ['3.9', '3.10', '3.11', 'type-feature', 'release-blocker', 'docs']
    title = 'In ./Doc, "make html" and "make build" should depend on "make venv"'
    updated_at = <Date 2021-08-30.21:56:40.474>
    user = 'https://github.com/jdevries3133'

    bugs.python.org fields:

    activity = <Date 2021-08-30.21:56:40.474>
    actor = 'lukasz.langa'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2021-08-06.19:53:19.845>
    closer = 'lukasz.langa'
    components = ['Demos and Tools', 'Documentation']
    creation = <Date 2021-07-28.04:47:25.985>
    creator = 'jack__d'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44756
    keywords = ['patch']
    message_count = 19.0
    messages = ['398344', '398373', '398381', '398383', '398384', '398827', '398840', '398848', '398868', '398874', '398875', '398884', '399101', '399116', '399124', '399130', '399135', '400672', '400673']
    nosy_count = 8.0
    nosy_names = ['ned.deily', 'petr.viktorin', 'docs@python', 'lukasz.langa', 'hroncok', 'pablogsal', 'miss-islington', 'jack__d']
    pr_nums = ['27403', '27410', '27411', '27635', '27636', '27637', '28075']
    priority = 'release blocker'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue44756'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Activity

    1. encukou commented on Aug 3, 2021

      @encukou
      Member

      I'm one of those who disagree with "make html" suddenly downloading code from the internet and running it, but I guess I'm in a minority. I'll switch to using sphinx-build directly.

      Still, I'd have appreciated a heads-up notice.

    2. jdevries3133 commented on Aug 3, 2021

      jdevries3133mannequin
      MannequinAuthor

      @petr.viktorin a whatsnew entry was added, what more notice could have been provided?

      I have an idea for an alternative that might be better. What if make clean deletes and restores the venv only if it already existed in the first place?

    3. jdevries3133 commented on Aug 3, 2021

      jdevries3133mannequin
      MannequinAuthor

      Actually, I tested out that idea (main...jdevries3133:bpo-44756-doc-make), and I don't think its as nice of a solution. I think it is valuable for new contributors to be able to type "make html" and have it work. Look at how much the change simplifies the README for new contributors to setup their documentation build toolchain. Then, look at how many docs@python open issues there are. We need documentation contributors, and there is value in simplifying the process for them.

      Additionally, this is the extent of the "downloading code from the internet and running it" that occurs::

      pip install -U pip setuptools
      pip install sphynx blurb python-docs-theme
      

      If running that is ever unsafe, we have big problems!

    4. hroncok commented on Aug 4, 2021

      hroncokmannequin
      Mannequin

      The 3.10.0rc1 source tarballs contain the Docs/venv directory populated with pablogsal's venv: bpo-44824

    5. encukou commented on Aug 4, 2021

      @encukou
      Member

      The issue this (or lack of communication about it) caused in rc1 is tracked in https://bugs.python.org/issue44823

      @petr.viktorin a whatsnew entry was added, what more notice could have been provided?

      Ideally, the python-dev mailing list (or Discourse).

      pip install sphinx blurb python-docs-theme
      If running that is ever unsafe, we have big problems!

      Who is "we"?
      We do have big problems. Anyone who can upload wheels for sphinx blurb python-docs-theme or any of their dependencies (or anyone who has their credentials) can now easily put code on machines of CPython developers.

      For example, PyPI doesn't guarantee that wheels correspond to sources. "Markupsafe" is particularly dangerous because the wheels are platform-specific and have compiled code, so tampering is nearly undetectable. (But if another dependency starts using platform-specific wheels, I don't think anyone would notice.)

    6. encukou commented on Aug 4, 2021

      @encukou
      Member
    7. pablogsal commented on Aug 4, 2021

      @pablogsal
      Member

      Note this issue has impacted negatively the release process of 3.10.0rc1:

      https://bugs.python.org/issue44823

    8. ned-deily commented on Aug 6, 2021

      @ned-deily
      Member

      There was a previous attempt at adding a dependency on venv that ended up being reverted (bpo-30487 and 122fc136b34e11906466851e77bb6959946467ee0). Over the years we have had a number of iterations of tweaking Doc/Makefile to balance ease of use (by providing the venv) with those of more advanced users who build docs as part of their automated processeses. I think what we had prior to this most recent change worked reasonably well for all. The previous process is clearly documented, for example in the Dev Guide (https://devguide.python.org/documenting/?highlight=venv#building-the-documentation) and does not strike me as very onerous. I appreciate the motivation behind this change but I really think there isn't a problem here that needs to be solved and I would support reverting the change for 3.9 and 3.10 and *perhaps* reconsider something for 3.11.

    9. ambv commented on Aug 6, 2021

      @ambv
      Contributor

      New changeset 55fa87b by Łukasz Langa in branch 'main':
      bpo-44756: [docs] revert automated virtual environment creation on make html (GH-27635)
      55fa87b

    10. ambv commented on Aug 6, 2021

      @ambv
      Contributor

      New changeset 91f6d38 by Miss Islington (bot) in branch '3.9':
      bpo-44756: [docs] revert automated virtual environment creation on make html (GH-27635) (GH-27636)
      91f6d38

    11. miss-islington commented on Aug 6, 2021

      @miss-islington
      Contributor

      New changeset 1e9c9ca by Miss Islington (bot) in branch '3.10':
      bpo-44756: [docs] revert automated virtual environment creation on make html (GH-27635)
      1e9c9ca

    12. ambv commented on Aug 6, 2021

      @ambv
      Contributor

      Revert done. Re-closing!

    13. ambv commented on Aug 30, 2021

      @ambv
      Contributor

      New changeset 5246dbc by Łukasz Langa in branch 'main':
      bpo-44756: Remove misleading NEWS entries of a change that was reverted before release (GH-28075)
      5246dbc

    14. ambv commented on Aug 30, 2021

      @ambv
      Contributor

      New changeset 9ef1843 by Łukasz Langa in branch '3.9':
      bpo-44756: Remove misleading NEWS entries of a change that was reverted before release (GH-28075)
      9ef1843

    15. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10 (EOL)3.113.9 (EOL)docsrelease-blockertype-feature

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions