Skip to content

The pygments 2.7.0 release breaks custom NumPyC lexer #17301

Closed

Description

@charris

Complains about DISTUTILS.rst.txt line 431.

.. code-block:: NumPyC

None of this markup is new, so something else has changed.

Reproducing code example:

import numpy as np
<< your code here >>

Error message:

Numpy/Python version information:

Activity

  1. seberg commented on Sep 13, 2020

    @seberg
    Member

    Hmmm, there is this setup:

    def setup(app):
        # add a config value for `ifconfig` directives
        app.add_config_value('python_version_major', str(sys.version_info.major), 'env')
        app.add_lexer('NumPyC', NumPyLexer)
    

    function in doc/source/conf.py. I guess for some reason that stopped working?!

  2. mattip commented on Sep 13, 2020

    @mattip
    Member

    Scolling to the end of the "build numpy" step from a successful CirclCI run and the one from a later failing run it seems somehow pip install -r doc_requirements.txt is failing to install sphinx. In fact, the failed run does not even report that the version of sphinx is up to date. Here is the CircleCI history. I pasted the relevant part of the CircleCI "build numpy" step below for reference

    Details
          - run:
              name: build numpy
              command: |
                . venv/bin/activate
                pip install --upgrade pip 'setuptools<49.2.0'
                pip install -r test_requirements.txt
                pip install .
                pip install -r doc_requirements.txt
    
    
    
  3. changed the title [-]CircleCI is suddenly failing.[/-] [+]The pygments 2.7.0 release breaks custom NumPyC lexer[/+] on Sep 23, 2020
  4. mattip commented on Dec 28, 2020

    @mattip
    Member

    Closing, it seems to be resolved. Please reopen as needed or open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions