') + ')', '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); } })(); })(); DRAFT: GitHub Actions: Test on Python 3.12 by cclauss · Pull Request #9306 · TheAlgorithms/Python · GitHub
Skip to content

DRAFT: GitHub Actions: Test on Python 3.12 - #9306

Closed
cclauss wants to merge 3 commits into
masterfrom
Py3.12
Closed

DRAFT: GitHub Actions: Test on Python 3.12#9306
cclauss wants to merge 3 commits into
masterfrom
Py3.12

Conversation

@cclauss

@cclausscclauss commented Oct 1, 2023

Copy link
Copy Markdown
Member

Repeats #8777

Some of our dependencies will not be ready yet.

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 include at least one URL that points to Wikipedia or another similar explanation.
  • If this pull request resolves one or more open issues then the description above includes the issue number(s) with a closing keyword: "Fixes #ISSUE-NUMBER".

@cclauss

Copy link
Copy Markdown
MemberAuthor

Truly impressive!!! Only Google (Tensorflow) and IBM (Qiskit) are not ready for the Python 3.12 release tomorrow.

Successfully installed beautifulsoup4-4.12.2 certifi-2023.7.22 charset-normalizer-3.3.0 contourpy-1.1.1 coverage-7.3.1 cycler-0.12.0 fake_useragent-1.2.1 fonttools-4.43.0 idna-3.4 imageio-2.31.4 iniconfig-2.0.0 joblib-1.3.2 keras-2.14.0 kiwisolver-1.4.5 lxml-4.9.3 markdown-it-py-3.0.0 matplotlib-3.8.0 mdurl-0.1.2 mpmath-1.3.0 networkx-3.1 numpy-1.26.0 oauthlib-3.2.2 opencv-python-4.8.1.78 packaging-23.2 pandas-2.1.1 patsy-0.5.3 pillow-10.0.1 pluggy-1.3.0 projectq-0.8.0 pygments-2.16.1 pyparsing-3.1.1 pytest-7.4.2 pytest-cov-4.1.0 python-dateutil-2.8.2 pytz-2023.3.post1 requests-2.31.0 requests-oauthlib-1.3.1 rich-13.6.0 scikit-fuzzy-0.4.2 scikit-learn-1.3.1 scipy-1.11.3 soupsieve-2.5 statsmodels-0.14.0 sympy-1.12 texttable-1.6.7 threadpoolctl-3.2.0 tweepy-4.14.0 tzdata-2023.3 urllib3-2.0.5 xgboost-2.0.0 yulewalker-0.1.1

@cclauss
cclauss marked this pull request as ready for review October 2, 2023 17:25
@algorithms-keeper

Copy link
Copy Markdown

Closing this pull request as invalid

@cclauss, this pull request is being closed as the files submitted contains an invalid extension. This repository only accepts Python algorithms. Please read the Contributing guidelines first.

Invalid files in this pull request: computer_vision/cnn_classification.py.DISABLED, dynamic_programming/k_means_clustering_tensorflow.py.DISABLED, fuzzy_logic/fuzzy_operations.py.DISABLED, machine_learning/lstm/lstm_prediction.py.DISABLED, quantum/bb84.py.DISABLED, quantum/deutsch_jozsa.py.DISABLED, quantum/half_adder.py.DISABLED, quantum/not_gate.py.DISABLED, quantum/q_full_adder.py.DISABLED, quantum/quantum_entanglement.py.DISABLED, quantum/quantum_teleportation.py.DISABLED, quantum/ripple_adder_classic.py.DISABLED, quantum/single_qubit_measure.py.DISABLED, quantum/superdense_coding.py.DISABLED

@algorithms-keeper
algorithms-keeperBot removed the request for review from dhruvmanilaOctober 2, 2023 17:25
@algorithms-keeperalgorithms-keeperBot added the awaiting reviews This PR is ready to be reviewed label Oct 2, 2023
@cclausscclauss reopened this Oct 2, 2023
@algorithms-keeper

Copy link
Copy Markdown

Closing this pull request as invalid

@cclauss, this pull request is being closed as the files submitted contains an invalid extension. This repository only accepts Python algorithms. Please read the Contributing guidelines first.

Invalid files in this pull request: computer_vision/cnn_classification.py.DISABLED, dynamic_programming/k_means_clustering_tensorflow.py.DISABLED, fuzzy_logic/fuzzy_operations.py.DISABLED, machine_learning/lstm/lstm_prediction.py.DISABLED, quantum/bb84.py.DISABLED, quantum/deutsch_jozsa.py.DISABLED, quantum/half_adder.py.DISABLED, quantum/not_gate.py.DISABLED, quantum/q_full_adder.py.DISABLED, quantum/quantum_entanglement.py.DISABLED, quantum/quantum_teleportation.py.DISABLED, quantum/ripple_adder_classic.py.DISABLED, quantum/single_qubit_measure.py.DISABLED, quantum/superdense_coding.py.DISABLED

@algorithms-keeperalgorithms-keeperBot removed the awaiting reviews This PR is ready to be reviewed label Oct 2, 2023
@cclauss

Copy link
Copy Markdown
MemberAuthor

@dhruvmanila ARRGGHH!!

@cclausscclauss reopened this Oct 2, 2023
@algorithms-keeper

Copy link
Copy Markdown

Closing this pull request as invalid

@cclauss, this pull request is being closed as the files submitted contains an invalid extension. This repository only accepts Python algorithms. Please read the Contributing guidelines first.

Invalid files in this pull request: computer_vision/cnn_classification.py.DISABLED, dynamic_programming/k_means_clustering_tensorflow.py.DISABLED, fuzzy_logic/fuzzy_operations.py.DISABLED, machine_learning/lstm/lstm_prediction.py.DISABLED, quantum/bb84.py.DISABLED, quantum/deutsch_jozsa.py.DISABLED, quantum/half_adder.py.DISABLED, quantum/not_gate.py.DISABLED, quantum/q_full_adder.py.DISABLED, quantum/quantum_entanglement.py.DISABLED, quantum/quantum_teleportation.py.DISABLED, quantum/ripple_adder_classic.py.DISABLED, quantum/single_qubit_measure.py.DISABLED, quantum/superdense_coding.py.DISABLED

@cclausscclauss mentioned this pull request Oct 3, 2023
14 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@cclauss