') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); Upgrade testing to Python 3.10.0 production release by cclauss · Pull Request #4396 · TheAlgorithms/Python · GitHub
Skip to content

Upgrade testing to Python 3.10.0 production release - #4396

Closed
cclauss wants to merge 16 commits into
masterfrom
Python-3.10-beta-1
Closed

Upgrade testing to Python 3.10.0 production release#4396
cclauss wants to merge 16 commits into
masterfrom
Python-3.10-beta-1

Conversation

@cclauss

Copy link
Copy Markdown
Member

https://www.python.org/download/pre-releases/

Describe your change:

  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Documentation change?

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • All new algorithms have a URL in its comments that points to Wikipedia or other similar explanation.
  • If this pull request resolves one or more open issues then the commit message contains Fixes: #{$ISSUE_NO}.

@cclauss
cclauss requested a review from dhruvmanila as a code ownerMay 4, 2021 10:56
@ghostghost added awaiting reviews This PR is ready to be reviewed enhancement This PR modified some existing files tests are failing Do not merge until tests pass labels May 4, 2021
@github-actions
github-actionsBotforce-pushed the Python-3.10-beta-1 branch from 070ffd9 to d74417fCompareMay 6, 2021 08:26
@ghostghost removed the tests are failing Do not merge until tests pass label May 6, 2021
@cclauss

Copy link
Copy Markdown
MemberAuthor

Selective execution of tests means that a PR can be all green when the build GitHub Action fails. :-(

@cclausscclauss closed this May 12, 2021
@cclausscclauss reopened this May 12, 2021
@ghostghost added the tests are failing Do not merge until tests pass label May 12, 2021
@ghostghost removed the tests are failing Do not merge until tests pass label Jun 2, 2021
@stale

staleBot commented Jul 8, 2021

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stalestaleBot added stale Used to mark an issue or pull request stale. and removed stale Used to mark an issue or pull request stale. labels Jul 8, 2021
@cclausscclauss changed the title WIP: Do not merge -- Test on Python 3.10 beta 1WIP: Do not merge -- Test on Python 3.10 beta 3Jul 8, 2021
@ghostghost added the tests are failing Do not merge until tests pass label Jul 8, 2021
@cclausscclauss changed the title WIP: Do not merge -- Test on Python 3.10 beta 3WIP: Do not merge -- Test on Python 3.10 beta 4Jul 11, 2021
@cclausscclauss changed the title WIP: Do not merge -- Test on Python 3.10 beta 4WIP: Do not merge -- Test on Python 3.10 release candidate 1Aug 4, 2021
@stale

staleBot commented Sep 6, 2021

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stalestaleBot added the stale Used to mark an issue or pull request stale. label Sep 6, 2021
@cclausscclauss removed the stale Used to mark an issue or pull request stale. label Sep 6, 2021
@ghostghost added merge conflicts Open a new PR or rebase on the latest commit tests are failing Do not merge until tests pass and removed merge conflicts Open a new PR or rebase on the latest commit tests are failing Do not merge until tests pass labels Sep 6, 2021
@cclausscclauss changed the title WIP: Do not merge -- Test on Python 3.10 release candidate 1WIP: Do not merge -- Test on Python 3.10 release candidate 2Sep 8, 2021
@cclausscclauss changed the title WIP: Do not merge -- Test on Python 3.10 release candidate 2Upgrade testing to Python 3.10.0 production releaseOct 5, 2021
@ghostghost added the awaiting reviews This PR is ready to be reviewed label Oct 5, 2021
@cclauss
cclauss marked this pull request as draft October 5, 2021 16:09
@cclauss

cclauss commented Oct 5, 2021

Copy link
Copy Markdown
MemberAuthor

Yes. opencv-python is not yet compatible with Python 3.10. opencv/opencv-python#525 —> opencv/opencv-python#556

@ghostghost added the merge conflicts Open a new PR or rebase on the latest commit label Oct 29, 2021
@ghostghost removed the merge conflicts Open a new PR or rebase on the latest commit label Nov 4, 2021
@cclausscclauss mentioned this pull request Feb 12, 2022
15 tasks
@cclauss

Copy link
Copy Markdown
MemberAuthor

Closing in favor of #5992

@cclausscclauss closed this Feb 12, 2022
@dhruvmanila
dhruvmanila deleted the Python-3.10-beta-1 branch October 1, 2022 06:03
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviewsThis PR is ready to be reviewedDO-NOT-MERGEenhancementThis PR modified some existing filestests are failingDo not merge until tests pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@cclauss@poyea@dhruvmanila