aboutsummaryrefslogtreecommitdiff
path: root/owlbot.py
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2021-08-03 13:59:25 -0400
committerGitHub <noreply@github.com>2021-08-03 13:59:25 -0400
commita30f004e74f709d46e905dd819c71f43354e9ac9 (patch)
tree6e4367ce5fecd92fde24337a7b26373328e8e9df /owlbot.py
parentff6ef1bd07fa68307b7c82c910416d770e7b3416 (diff)
downloadpython-api-core-a30f004e74f709d46e905dd819c71f43354e9ac9.tar.gz
fix!: drop support for Python 2.7 / 3.5 (#212)
Drop 'six' module Drop 'u"' prefixes for text Remove other Python 2.7 workarounds Drop use of 'pytz' Dxpand range to allow 'google-auth' 2.x versions Remove 'general_helpers.wraps': except for a backward-compatibility import, 'functools.wraps' does everything wee need on Python >= 3.6. Remove 'packaging' dependency Release-As: 2.0.0b1 Closes #74. Closes #215.
Diffstat (limited to 'owlbot.py')
-rw-r--r--owlbot.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/owlbot.py b/owlbot.py
index 5c590e4..451f7c4 100644
--- a/owlbot.py
+++ b/owlbot.py
@@ -22,8 +22,15 @@ common = gcp.CommonTemplates()
# ----------------------------------------------------------------------------
# Add templated files
# ----------------------------------------------------------------------------
-templated_files = common.py_library(cov_level=100)
-s.move(templated_files, excludes=["noxfile.py", ".flake8", ".coveragerc", "setup.cfg"])
+excludes = [
+ "noxfile.py", # pytype
+ "setup.cfg", # pytype
+ ".flake8", # flake8-import-order, layout
+ ".coveragerc", # layout
+ "CONTRIBUTING.rst", # no systests
+]
+templated_files = common.py_library(microgenerator=True, cov_level=100)
+s.move(templated_files, excludes=excludes)
# Add pytype support
s.replace(