Title: Third-party stubs & Python 2 · Issue #5630 · python/typeshed · GitHub
Open Graph Title: Third-party stubs & Python 2 · Issue #5630 · python/typeshed
X Title: Third-party stubs & Python 2 · Issue #5630 · python/typeshed
Description: I have a few suggestions to improve our Python 2 handling for third-party packages: Move Python2-only stubs consistently to the @python2 subdir. This makes things more consistent and makes it obvious when a stub doesn't support Python 3....
Open Graph Description: I have a few suggestions to improve our Python 2 handling for third-party packages: Move Python2-only stubs consistently to the @python2 subdir. This makes things more consistent and makes it obvio...
X Description: I have a few suggestions to improve our Python 2 handling for third-party packages: Move Python2-only stubs consistently to the @python2 subdir. This makes things more consistent and makes it obvio...
Opengraph URL: https://github.com/python/typeshed/issues/5630
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Third-party stubs & Python 2","articleBody":"I have a few suggestions to improve our Python 2 handling for third-party packages:\r\n\r\n1. Move Python2-only stubs consistently to the `@python2` subdir. This makes things more consistent and makes it obvious when a stub doesn't support Python 3. (This has bit me before.) It also enables further changes as outlined below. A stub uploader PR enabling this is ready for review: typeshed-internal/stub_uploader#15.\r\n2. Have a separate `METADATA.toml` file in `@python2` (and no `METADATA.toml` in the base dir, if the stubs don't support Python 3). This allows us to support older versions of a package on Python 2. This is especially important if a package drops Python 2 support. It also means that the base and the `@python2` version don't need to be kept in sync.\r\n3. Split all third-party stubs into Python 2 and 3 versions for the same reasons as outlined in #5442 for the stdlib. This would be especially useful when a third-party library drops Python 2 support. ~~It also means that Python 2 users can consistently install the `types-*-py2` package and Python 3 users don't need to worry that `types-*` contains Python 2 only stubs.~~ *Edit:* We could continue to support old packages for Python 2 only, while updating to a newer package version for Python 3.\r\n\r\nOne thing to note is that the stub uploader currently doesn't support the `python2` and `python3` metadata fields anyway. This needs some investigating.","author":{"url":"https://github.com/srittau","@type":"Person","name":"srittau"},"datePublished":"2021-06-13T10:58:28Z","url":"https://github.com/python/typeshed/issues/5630"}
| 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:be651451-a81c-7aba-31f1-900329c10f1a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A782:62828:BE8B7:103009:6B005C06 |
| html-safe-nonce | d58fe928101a8a6e2e9929710cbe8bd6db905d86be7f69f1a4f393005cea6048 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzgyOjYyODI4OkJFOEI3OjEwMzAwOTo2QjAwNUMwNiIsInZpc2l0b3JfaWQiOiI3MjkwMTgzMzgyOTk3MTYzMDE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 919f14bec0618b69b66356e5a2ee983f6930eeffad274a58fb7513877d5e6c0c |
| hovercard-subject-tag | issue:919772128 |
| 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/typeshed/5630/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dc6688dfc90144aaa55264a07a8ca94346a10b50f6119d8ac448b00ee5d31c31/python/typeshed/issues/5630 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dc6688dfc90144aaa55264a07a8ca94346a10b50f6119d8ac448b00ee5d31c31/python/typeshed/issues/5630 |
| og:image:alt | I have a few suggestions to improve our Python 2 handling for third-party packages: Move Python2-only stubs consistently to the @python2 subdir. This makes things more consistent and makes it obvio... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | srittau |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| 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 | eacd927ba6112e3b01ba99c762bd699a4a4f5df7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width