Title: Duplicate uploads of nightly wheels to scipy-wheels-nightly Anaconda cloud package index fails · Issue #22757 · matplotlib/matplotlib · GitHub
Open Graph Title: Duplicate uploads of nightly wheels to scipy-wheels-nightly Anaconda cloud package index fails · Issue #22757 · matplotlib/matplotlib
X Title: Duplicate uploads of nightly wheels to scipy-wheels-nightly Anaconda cloud package index fails · Issue #22757 · matplotlib/matplotlib
Description: Duplicate uploads also fail. I think that is OK though? We have at least one build on main per day most days and I am not sure it is worth the logic to not get rejected on the days we do not (or on days when someone has pushed the button...
Open Graph Description: Duplicate uploads also fail. I think that is OK though? We have at least one build on main per day most days and I am not sure it is worth the logic to not get rejected on the days we do not (or on...
X Description: Duplicate uploads also fail. I think that is OK though? We have at least one build on main per day most days and I am not sure it is worth the logic to not get rejected on the days we do not (or on...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22757
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Duplicate uploads of nightly wheels to scipy-wheels-nightly Anaconda cloud package index fails","articleBody":"\u003e [Duplicate uploads](https://github.com/matplotlib/matplotlib/runs/5781197219?check_suite_focus=true) also fail.\r\n\r\n\u003e I think that is OK though?\r\n\u003e \r\n\u003e We have at least one build on main per day most days and I am not sure it is worth the logic to not get rejected on the days we do not (or on days when someone has pushed the button to run it early).\r\n\r\nIf no one minds I don't mind throwing in some additional logic to check just before the upload stage. This is pretty easy with `pip index versions` and some `sed`\r\n\r\n```\r\n$ python -m pip index \\\r\n --index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple \\\r\n --pre \\\r\n versions matplotlib | \\\r\n grep matplotlib | \\\r\n sed 's/.*(\\(.*\\))/\\1/'\r\nWARNING: pip index is currently an experimental command. It may be removed/changed in a future release without prior warning.\r\n3.6.0.dev1948+gd8ede1a710\r\n```\r\n\r\nSo all you'd need to do would be something like\r\n\r\n```console\r\n$ LAST_NIGHTLY_VERSION=\"$(python -m pip index \\\r\n --index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple \\\r\n --pre \\\r\n versions matplotlib | \\\r\n grep matplotlib | \\\r\n sed 's/.*(\\(.*\\))/\\1/')\"\r\nWARNING: pip index is currently an experimental command. It may be removed/changed in a future release without prior warning.\r\n$ echo \"${LAST_NIGHTLY_VERSION}\"\r\n3.6.0.dev1948+gd8ede1a710\r\n```\r\n\r\nand then just check if that shows up as version of the wheels that just got downloaded from the GitHub Actions workflow artifact\r\n\r\n```console\r\n$ [ \"$(find dist -type f -iname \"matplotlib-${LAST_NIGHTLY_VERSION}*.whl\" | wc --lines)\" -gt \"0\" ]\r\n$ echo $?\r\n0\r\n```\r\n\r\n(maybe a more elegant way to do that but that's not the worst)\r\n\r\nI'll make an Issue from this and I'm happy to PR it, unless you would prefer to avoid touching it as much as possible.\r\n\r\n_Originally posted by @matthewfeickert in https://github.com/matplotlib/matplotlib/issues/22733#issuecomment-1085384157_","author":{"url":"https://github.com/matthewfeickert","@type":"Person","name":"matthewfeickert"},"datePublished":"2022-04-01T03:45:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":27},"url":"https://github.com/22757/matplotlib/issues/22757"}
| 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:dd5333d2-f510-4ded-a3f9-93cdfba67ba9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D8B4:170C03:33A59A:4532F2:6A5142C3 |
| html-safe-nonce | c73c1e14ffefc6a6aceb92291b35749abea7292a8b0871275622eb2b81ee545e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEI0OjE3MEMwMzozM0E1OUE6NDUzMkYyOjZBNTE0MkMzIiwidmlzaXRvcl9pZCI6IjcyNDkzNjgxNzk5MjI3ODA4NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 38df23861a3b8abd8b64b11d54857b57adcee22496996d89ebf662fe337c58ef |
| hovercard-subject-tag | issue:1189186354 |
| 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/22757/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8d0600c798f36f6b1a353f26c8a301739ef144df68246496cc0faefc2e256271/matplotlib/matplotlib/issues/22757 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8d0600c798f36f6b1a353f26c8a301739ef144df68246496cc0faefc2e256271/matplotlib/matplotlib/issues/22757 |
| og:image:alt | Duplicate uploads also fail. I think that is OK though? We have at least one build on main per day most days and I am not sure it is worth the logic to not get rejected on the days we do not (or on... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matthewfeickert |
| hostname | github.com |
| expected-hostname | github.com |
| None | e840f405b2718e8f2d55aafa9ff27dbce17e29d0c253011d05ea0fea3c78baff |
| 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 | e876f00c5723f6080b9d294e4958fd4d506e6faf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width