python3: Mark all modules as PY3 compatible

Bug: 465
Change-Id: I303985673c286188d8cad889790d1904ace8b957
Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/59285
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Reviewed-by: Oliver Newman <olivernewman@google.com>
Commit-Queue: Rob Mohr <mohrr@google.com>
diff --git a/recipe_modules/build/__init__.py b/recipe_modules/build/__init__.py
index 20a64e1..bc66073 100644
--- a/recipe_modules/build/__init__.py
+++ b/recipe_modules/build/__init__.py
@@ -24,3 +24,5 @@
 ]
 
 PROPERTIES = properties.InputProperties
+
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
diff --git a/recipe_modules/build/tests/full.py b/recipe_modules/build/tests/full.py
index b41c40c..2ec6867 100644
--- a/recipe_modules/build/tests/full.py
+++ b/recipe_modules/build/tests/full.py
@@ -22,6 +22,8 @@
     'recipe_engine/properties',
 ]
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(api):
     api.build(api.path['start_dir'].join('checkout'))
diff --git a/recipe_modules/checkout/__init__.py b/recipe_modules/checkout/__init__.py
index b5eedaf..b61f7d7 100644
--- a/recipe_modules/checkout/__init__.py
+++ b/recipe_modules/checkout/__init__.py
@@ -32,3 +32,5 @@
 ]
 
 PROPERTIES = properties.InputProperties
+
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
diff --git a/recipe_modules/checkout/tests/git.py b/recipe_modules/checkout/tests/git.py
index 888af3b..ae798c9 100644
--- a/recipe_modules/checkout/tests/git.py
+++ b/recipe_modules/checkout/tests/git.py
@@ -21,6 +21,8 @@
     'recipe_engine/step',
 ]
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(api):  # pylint: disable=invalid-name
     api.checkout()
diff --git a/recipe_modules/checkout/tests/repo.py b/recipe_modules/checkout/tests/repo.py
index a5fa1b1..9227b0d 100644
--- a/recipe_modules/checkout/tests/repo.py
+++ b/recipe_modules/checkout/tests/repo.py
@@ -24,6 +24,8 @@
 
 REPO = 'https://pigweed.googlesource.com/pigweed_name'
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(api):  # pylint: disable=invalid-name
     api.checkout()
diff --git a/recipe_modules/checkout/tests/submodule.py b/recipe_modules/checkout/tests/submodule.py
index 8fc21f8..b187f29 100644
--- a/recipe_modules/checkout/tests/submodule.py
+++ b/recipe_modules/checkout/tests/submodule.py
@@ -22,6 +22,8 @@
     'recipe_engine/step',
 ]
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(api):  # pylint: disable=invalid-name
     api.checkout()
diff --git a/recipe_modules/cipd_upload/__init__.py b/recipe_modules/cipd_upload/__init__.py
index 4e15568..f92a998 100644
--- a/recipe_modules/cipd_upload/__init__.py
+++ b/recipe_modules/cipd_upload/__init__.py
@@ -20,3 +20,5 @@
     'recipe_engine/path',
     'recipe_engine/platform',
 ]
+
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
diff --git a/recipe_modules/cipd_upload/tests/full.py b/recipe_modules/cipd_upload/tests/full.py
index a9d5090..6bb5b72 100644
--- a/recipe_modules/cipd_upload/tests/full.py
+++ b/recipe_modules/cipd_upload/tests/full.py
@@ -37,6 +37,8 @@
     'search_tag_value': Property(kind=str, default='value'),
 }
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(
     api,
diff --git a/recipe_modules/cq_deps/__init__.py b/recipe_modules/cq_deps/__init__.py
index f47c9fb..7715500 100644
--- a/recipe_modules/cq_deps/__init__.py
+++ b/recipe_modules/cq_deps/__init__.py
@@ -24,3 +24,5 @@
 ]
 
 PROPERTIES = properties.InputProperties
+
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
diff --git a/recipe_modules/cq_deps/tests/full.py b/recipe_modules/cq_deps/tests/full.py
index cffa121..4db47d6 100644
--- a/recipe_modules/cq_deps/tests/full.py
+++ b/recipe_modules/cq_deps/tests/full.py
@@ -28,6 +28,8 @@
     'statuses': Property(kind=List(str), default=('NEW',)),
 }
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(api, revision, statuses):
     deps, errors = api.cq_deps.resolve(
diff --git a/recipe_modules/environment/__init__.py b/recipe_modules/environment/__init__.py
index a8e4e23..a7a3451 100644
--- a/recipe_modules/environment/__init__.py
+++ b/recipe_modules/environment/__init__.py
@@ -30,3 +30,5 @@
 ]
 
 PROPERTIES = properties.InputProperties
+
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
diff --git a/recipe_modules/environment/tests/full.py b/recipe_modules/environment/tests/full.py
index effd61b..aa939c7 100644
--- a/recipe_modules/environment/tests/full.py
+++ b/recipe_modules/environment/tests/full.py
@@ -23,6 +23,8 @@
     'recipe_engine/properties',
 ]
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(api):  # pylint: disable=invalid-name
     # pylint: disable=missing-function-docstring
diff --git a/recipe_modules/repo/__init__.py b/recipe_modules/repo/__init__.py
index e91c48c..d3d4ef0 100644
--- a/recipe_modules/repo/__init__.py
+++ b/recipe_modules/repo/__init__.py
@@ -14,3 +14,5 @@
     'recipe_engine/raw_io',
     'recipe_engine/step',
 ]
+
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
diff --git a/recipe_modules/repo/examples/full.py b/recipe_modules/repo/examples/full.py
index 60f2cc6..0e63055 100644
--- a/recipe_modules/repo/examples/full.py
+++ b/recipe_modules/repo/examples/full.py
@@ -15,6 +15,8 @@
     'recipe_engine/path',
 ]
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(api):  # pylint: disable=missing-function-docstring
     with api.context(cwd=api.path['cleanup']):
diff --git a/recipe_modules/repo/examples/init_sync_retry.py b/recipe_modules/repo/examples/init_sync_retry.py
index ad7a936..21da6b5 100644
--- a/recipe_modules/repo/examples/init_sync_retry.py
+++ b/recipe_modules/repo/examples/init_sync_retry.py
@@ -12,6 +12,8 @@
     'pigweed/repo',
 ]
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(api):
     api.repo.init("https://manifest/url")
diff --git a/recipe_modules/repo/examples/repo_retry_failure.py b/recipe_modules/repo/examples/repo_retry_failure.py
index 3944792..ae679e5 100644
--- a/recipe_modules/repo/examples/repo_retry_failure.py
+++ b/recipe_modules/repo/examples/repo_retry_failure.py
@@ -13,6 +13,8 @@
     'recipe_engine/path',
 ]
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(api):
     api.repo.ensure_synced_checkout(
diff --git a/recipe_modules/repo/examples/repo_retry_success.py b/recipe_modules/repo/examples/repo_retry_success.py
index 972cc7a..d547668 100644
--- a/recipe_modules/repo/examples/repo_retry_success.py
+++ b/recipe_modules/repo/examples/repo_retry_success.py
@@ -13,6 +13,8 @@
     'recipe_engine/path',
 ]
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(api):
     api.repo.ensure_synced_checkout(
diff --git a/recipe_modules/repo/examples/timeout.py b/recipe_modules/repo/examples/timeout.py
index c4d5090..1ed1adf 100644
--- a/recipe_modules/repo/examples/timeout.py
+++ b/recipe_modules/repo/examples/timeout.py
@@ -18,6 +18,8 @@
     'pigweed/repo',
 ]
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(api):
     api.repo.init(
diff --git a/recipe_modules/roll_util/__init__.py b/recipe_modules/roll_util/__init__.py
index 3b9c893..2e941b4 100644
--- a/recipe_modules/roll_util/__init__.py
+++ b/recipe_modules/roll_util/__init__.py
@@ -25,3 +25,5 @@
 ]
 
 PROPERTIES = properties.InputProperties
+
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
diff --git a/recipe_modules/roll_util/tests/labels.py b/recipe_modules/roll_util/tests/labels.py
index 8fb24d1..e843799 100644
--- a/recipe_modules/roll_util/tests/labels.py
+++ b/recipe_modules/roll_util/tests/labels.py
@@ -20,6 +20,8 @@
     'recipe_engine/step',
 ]
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(api):
     if api.roll_util.labels_to_set:
diff --git a/recipe_modules/roll_util/tests/multiple_rolls.py b/recipe_modules/roll_util/tests/multiple_rolls.py
index 10e0da0..de93b82 100644
--- a/recipe_modules/roll_util/tests/multiple_rolls.py
+++ b/recipe_modules/roll_util/tests/multiple_rolls.py
@@ -20,6 +20,8 @@
     'recipe_engine/step',
 ]
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(api):
     # pylint: disable=unnecessary-lambda
diff --git a/recipe_modules/roll_util/tests/single_roll.py b/recipe_modules/roll_util/tests/single_roll.py
index 585aad3..1bc1079 100644
--- a/recipe_modules/roll_util/tests/single_roll.py
+++ b/recipe_modules/roll_util/tests/single_roll.py
@@ -31,6 +31,8 @@
     'new_revision': Property(kind=str),
 }
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(  # pylint: disable=invalid-name
     api, project_name, old_revision, new_revision
diff --git a/recipe_modules/util/__init__.py b/recipe_modules/util/__init__.py
index ac44fc9..77605dd 100644
--- a/recipe_modules/util/__init__.py
+++ b/recipe_modules/util/__init__.py
@@ -23,3 +23,5 @@
     'recipe_engine/step',
     'recipe_engine/swarming',
 ]
+
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
diff --git a/recipe_modules/util/tests/full.py b/recipe_modules/util/tests/full.py
index d07ab36..3f4a109 100644
--- a/recipe_modules/util/tests/full.py
+++ b/recipe_modules/util/tests/full.py
@@ -33,6 +33,8 @@
     'comments': Property(kind=List(str), default=()),
 }
 
+PYTHON_VERSION_COMPATIBILITY = "PY2+3"
+
 
 def RunSteps(api, regex, comments):  # pylint: disable=invalid-name
     with api.step.nest('gerrit'):