When importing the ansys_sphinx_theme in Python 3.12, it generates syntax warnings due to invalid escape sequences in docstrings. This causes noise in the build pipelines of downstream projects.
š Steps to reproduce
Create and activate a venv using Python 3.12
python -m pip install -e . inside the ansys_sphinx_theme sources
python -c 'import ansys_sphinx_theme
Note: This happens only on the first import; after the Python bytecode is generated it will not re-appear. To make it re-appear:
š Before submitting the issue
š Description of the bug
When importing the
ansys_sphinx_theme
in Python 3.12, it generates syntax warnings due to invalid escape sequences in docstrings. This causes noise in the build pipelines of downstream projects.š Steps to reproduce
python -m pip install -e .
inside theansys_sphinx_theme
sourcespython -c 'import ansys_sphinx_theme
Note: This happens only on the first import; after the Python bytecode is generated it will not re-appear. To make it re-appear:
cd src
git clean -dfx
Output:
š» Which operating system are you using?
Windows
š Which ANSYS version are you using?
n/a
š Which Python version are you using?
3.12
š¦ Installed packages