Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-03-19 12:36:30 +0100
committerMartin Hořeňovský2020-04-29 21:28:52 +0200
commit0d8eeec55744e95b013fb1963c80ae439313a25f (patch)
tree834be91c90d5dc800803e0116efa5a30c9e7d94b
parentd3c0b36487b5a6b5e83f302d80fda2c6fb3c623d (diff)
downloadcatch3-0d8eeec55744e95b013fb1963c80ae439313a25f.tar.gz
Move all scripts to Python3
-rwxr-xr-xtools/scripts/approvalTests.py2
-rwxr-xr-xtools/scripts/approve.py2
-rwxr-xr-xtools/scripts/benchmarkCompile.py2
-rwxr-xr-xtools/scripts/developBuild.py2
-rwxr-xr-xtools/scripts/embedClara.py2
-rw-r--r--tools/scripts/extractFeaturesFromReleaseNotes.py2
-rwxr-xr-xtools/scripts/fixWhitespace.py2
-rwxr-xr-xtools/scripts/generateSingleHeader.py2
-rwxr-xr-xtools/scripts/majorRelease.py2
-rwxr-xr-xtools/scripts/minorRelease.py2
-rwxr-xr-xtools/scripts/patchRelease.py2
-rwxr-xr-xtools/scripts/releaseNotes.py2
-rw-r--r--tools/scripts/updateDocumentToC.py2
-rw-r--r--tools/scripts/updateWandbox.py4
14 files changed, 17 insertions, 13 deletions
diff --git a/tools/scripts/approvalTests.py b/tools/scripts/approvalTests.py
index faedce7e..f8b9425c 100755
--- a/tools/scripts/approvalTests.py
+++ b/tools/scripts/approvalTests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
diff --git a/tools/scripts/approve.py b/tools/scripts/approve.py
index 252d08ec..997b8c71 100755
--- a/tools/scripts/approve.py
+++ b/tools/scripts/approve.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
diff --git a/tools/scripts/benchmarkCompile.py b/tools/scripts/benchmarkCompile.py
index 586c26ac..34113b9e 100755
--- a/tools/scripts/benchmarkCompile.py
+++ b/tools/scripts/benchmarkCompile.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
diff --git a/tools/scripts/developBuild.py b/tools/scripts/developBuild.py
index a8115fe2..9252c7d6 100755
--- a/tools/scripts/developBuild.py
+++ b/tools/scripts/developBuild.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
import releaseCommon
diff --git a/tools/scripts/embedClara.py b/tools/scripts/embedClara.py
index 7ceb3e32..d8c1520a 100755
--- a/tools/scripts/embedClara.py
+++ b/tools/scripts/embedClara.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Execute this script any time you import a new copy of Clara into the third_party area
import os
diff --git a/tools/scripts/extractFeaturesFromReleaseNotes.py b/tools/scripts/extractFeaturesFromReleaseNotes.py
index 090f4772..11f4955c 100644
--- a/tools/scripts/extractFeaturesFromReleaseNotes.py
+++ b/tools/scripts/extractFeaturesFromReleaseNotes.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# extractFeaturesFromReleaseNotes.py
diff --git a/tools/scripts/fixWhitespace.py b/tools/scripts/fixWhitespace.py
index bfa4aa08..4591c1c4 100755
--- a/tools/scripts/fixWhitespace.py
+++ b/tools/scripts/fixWhitespace.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
import os
diff --git a/tools/scripts/generateSingleHeader.py b/tools/scripts/generateSingleHeader.py
index f8968774..0de1a636 100755
--- a/tools/scripts/generateSingleHeader.py
+++ b/tools/scripts/generateSingleHeader.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
diff --git a/tools/scripts/majorRelease.py b/tools/scripts/majorRelease.py
index 8da34066..e9e285a8 100755
--- a/tools/scripts/majorRelease.py
+++ b/tools/scripts/majorRelease.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
import releaseCommon
diff --git a/tools/scripts/minorRelease.py b/tools/scripts/minorRelease.py
index 6e71cd80..2b57c2ea 100755
--- a/tools/scripts/minorRelease.py
+++ b/tools/scripts/minorRelease.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
import releaseCommon
diff --git a/tools/scripts/patchRelease.py b/tools/scripts/patchRelease.py
index 14176420..d20db714 100755
--- a/tools/scripts/patchRelease.py
+++ b/tools/scripts/patchRelease.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
import releaseCommon
diff --git a/tools/scripts/releaseNotes.py b/tools/scripts/releaseNotes.py
index 5e770bba..7f580e98 100755
--- a/tools/scripts/releaseNotes.py
+++ b/tools/scripts/releaseNotes.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
diff --git a/tools/scripts/updateDocumentToC.py b/tools/scripts/updateDocumentToC.py
index 325c8a3c..41b48752 100644
--- a/tools/scripts/updateDocumentToC.py
+++ b/tools/scripts/updateDocumentToC.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# updateDocumentToC.py
diff --git a/tools/scripts/updateWandbox.py b/tools/scripts/updateWandbox.py
index fa25ef1b..3668da52 100644
--- a/tools/scripts/updateWandbox.py
+++ b/tools/scripts/updateWandbox.py
@@ -3,10 +3,14 @@
import json
import os
import urllib.request
+import urllib.parse
+
from scriptCommon import catchPath
def upload(options):
+# request_blah = urllib.request.Request('https://
+
request = urllib.request.Request('https://melpon.org/wandbox/api/compile.json', method='POST')
json_bytes = json.dumps(options).encode('utf-8')
request.add_header('Content-Type', 'application/json; charset=utf-8')