Title: [MNT]: setuptools-scm v8.0.1 compatibility · Issue #26846 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: setuptools-scm v8.0.1 compatibility · Issue #26846 · matplotlib/matplotlib
X Title: [MNT]: setuptools-scm v8.0.1 compatibility · Issue #26846 · matplotlib/matplotlib
Description: Summary setuptools-scm released today and even after the biggest issue having been resolved and the 8.0.0 release being yanked we are seeing CI failures, primarily on azure. This is mostly me documenting what I'm seeing, probably mostly ...
Open Graph Description: Summary setuptools-scm released today and even after the biggest issue having been resolved and the 8.0.0 release being yanked we are seeing CI failures, primarily on azure. This is mostly me docum...
X Description: Summary setuptools-scm released today and even after the biggest issue having been resolved and the 8.0.0 release being yanked we are seeing CI failures, primarily on azure. This is mostly me docum...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/26846
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: setuptools-scm v8.0.1 compatibility","articleBody":"### Summary\n\nsetuptools-scm released today and even after the biggest issue having been resolved and the 8.0.0 release being yanked we are seeing CI failures, primarily on azure.\r\n\r\nThis is mostly me documenting what I'm seeing, probably mostly for myself, but if others have insights/opinions, happy to hear them\r\n\r\nThere are actually two seemingly disjoint problems:\r\n\r\n- setuptools-scm is complaining that we do not have config in `pyproject.toml`\r\n - There is a release note stating \"remove legacy version parser api - config arg always required\"\r\n - Despite this, appears to actually install and get the version number and everything, so not fully sure what is required\r\n\r\n- Azure CI is picking up an older version of `setuptools`, despite having apparently installed the latest version.\r\n - `setuptools-scm` is issuing a runtime warning for older setuptools, which is failing tests\r\n - `setuptools-scm` does _not_ pin the version of `setuptools` in their requirements, despite having checks against specific versions\r\n - `setuptools-scm` now requires setuptools\u003e=61\r\n - During install, it appears that setuptools 68 is installed on the Azure runs, so there _shouldn't_ be a CI problem\r\n - But it is still picking up setuptools 58 at runtime\n\n### Proposed fix\n\nPossible solutions:\r\n\r\n- Pin setuptools-scm\u003c8 \r\n - not super viable long term, and if we can just fix compatibility easily, probably better, but if it is hard in the interim, may be a stopgap to employ.\r\n\r\n- Pin our own version of setuptools \r\n - Not sure it would help as it looks like newer is installed in CI, but may not hurt\r\n\r\n- Add config to pyproject.toml\r\n - need to determine what even needs to go in here, as far as I'm aware, we don't use any non-default settings\r\n - From their readme, looks like it can be an empty toml table or at most specifying where the version file goes... if the former, I think it is strange to error on missing, but not hard to add I guess...\r\n\r\n- Figure out where azure is getting the older setuptools from?\r\n - is it preinstalled and on `sys.path` first? \r\n - Seems to only be on the 3.9 builds, but that may be because of the Azure images?","author":{"url":"https://github.com/ksunden","@type":"Person","name":"ksunden"},"datePublished":"2023-09-20T17:48:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/26846/matplotlib/issues/26846"}
| 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:f1f3e1cc-1188-e132-758d-3a67fc3d6a05 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABD4:15F1A6:3CB8F4:4F8004:6A52F98C |
| html-safe-nonce | da8ad067b8cc01bb5126894df983dea96c93ca3f5049d3f9d8528911294ed2cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkQ0OjE1RjFBNjozQ0I4RjQ6NEY4MDA0OjZBNTJGOThDIiwidmlzaXRvcl9pZCI6IjE2OTI1OTQwODk5ODIzNTk5NDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 24dcbda80dcdff63a12f66d3aa47860ccd202348983166498e858f626b0014f2 |
| hovercard-subject-tag | issue:1905464295 |
| 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/matplotlib/matplotlib/26846/issue_layout |
| twitter:image | https://opengraph.githubassets.com/23bc854c86428a10b3ee58522584ed2d8296f5a76489dd9172598fefe707d6dd/matplotlib/matplotlib/issues/26846 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/23bc854c86428a10b3ee58522584ed2d8296f5a76489dd9172598fefe707d6dd/matplotlib/matplotlib/issues/26846 |
| og:image:alt | Summary setuptools-scm released today and even after the biggest issue having been resolved and the 8.0.0 release being yanked we are seeing CI failures, primarily on azure. This is mostly me docum... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ksunden |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width