Title: Regression: Docs no longer build with py27-sphinx since #2394 · Issue #2593 · python/mypy · GitHub
Open Graph Title: Regression: Docs no longer build with py27-sphinx since #2394 · Issue #2593 · python/mypy
X Title: Regression: Docs no longer build with py27-sphinx since #2394 · Issue #2593 · python/mypy
Description: Docs used to build just fine with Sphinx under Python 2.7. #2394 introduced an import mypy.git to mypy.version (which is imported by Sphinx's conf.py), and since mypy.git contains function annotations not supported by Python 2.7, trying ...
Open Graph Description: Docs used to build just fine with Sphinx under Python 2.7. #2394 introduced an import mypy.git to mypy.version (which is imported by Sphinx's conf.py), and since mypy.git contains function annotati...
X Description: Docs used to build just fine with Sphinx under Python 2.7. #2394 introduced an import mypy.git to mypy.version (which is imported by Sphinx's conf.py), and since mypy.git contains function anno...
Opengraph URL: https://github.com/python/mypy/issues/2593
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression: Docs no longer build with py27-sphinx since #2394","articleBody":"Docs used to build just fine with Sphinx under Python 2.7. #2394 introduced an import `mypy.git` to `mypy.version` (which is imported by Sphinx's `conf.py`), and since `mypy.git` contains function annotations not supported by Python 2.7, trying to build the docs with py27-sphinx now causes an error:\r\n\r\n```\r\n$ make html\r\nsphinx-build -b html -d build/doctrees source build/html\r\nRunning Sphinx v1.5.1\r\n\r\nConfiguration error:\r\nThere is a syntax error in your configuration file: invalid syntax (git.py, line 10)\r\nmake: *** [html] Error 1\r\n```\r\n\r\nThis unfortunately is causing some trouble for Homebrew (see https://github.com/Homebrew/homebrew-core/pull/7143), since our `sphinx-doc` formula is py27 only at the moment.\r\n\r\nWe'll of course try to fix this on Homebrew's side, but maybe py27-sphinx compatibility could be restored? One solution I can think of is to add something like `mypy/version_static.py` with the plain old version declaration:\r\n\r\n```py\r\n__version__ = '0.4.7-dev'\r\n```\r\n\r\nthen import `mypy.version_static` in `docs/source/conf.py` instead. The downside is it needs to be bumped alongside `version.py` at the same time, and when building from a git tree, the commit hash won't be included in the docs.","author":{"url":"https://github.com/zmwangx","@type":"Person","name":"zmwangx"},"datePublished":"2016-12-20T20:52:11Z","url":"https://github.com/python/mypy/issues/2593"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:25898a09-c837-2e88-e2fe-4c4ef107d98c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C6EC:200835:1001C8:1609FE:6B0063CE |
| html-safe-nonce | aef38c623becc989e57f2c81dfb4ef9391c8993499f6bef1a8d21bddb903bf60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkVDOjIwMDgzNToxMDAxQzg6MTYwOUZFOjZCMDA2M0NFIiwidmlzaXRvcl9pZCI6IjgwMTUzNjA3Mjc5OTkwNzkzNzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9c426e0f103b5ce472126199350fcb7b9d12458ac78e72483c7f186fbaeb0603 |
| hovercard-subject-tag | issue:196778348 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/2593/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d2b0ce2bd1c781181952a786aa7999a58f7a3cccb9be6ac3991faa7b67ff71ee/python/mypy/issues/2593 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d2b0ce2bd1c781181952a786aa7999a58f7a3cccb9be6ac3991faa7b67ff71ee/python/mypy/issues/2593 |
| og:image:alt | Docs used to build just fine with Sphinx under Python 2.7. #2394 introduced an import mypy.git to mypy.version (which is imported by Sphinx's conf.py), and since mypy.git contains function annotati... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zmwangx |
| hostname | github.com |
| expected-hostname | github.com |
| None | 25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4f5c239e31f1f680e6bbc419ff92d774da616ec |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width