diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index e0aed6a9..afc59002 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -8,7 +8,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: [2.7, 3.7, 3.8] + python-version: [3.6, 3.7, 3.8, 3.9] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 diff --git a/.pylintrc b/.pylintrc index e21dfef9..bb68f8a0 100644 --- a/.pylintrc +++ b/.pylintrc @@ -14,7 +14,6 @@ disable= too-few-public-methods, useless-object-inheritance, useless-import-alias, - fixme, bad-option-value, ; PY2 Compat diff --git a/platformio/builder/tools/compilation_db.py b/platformio/builder/tools/compilation_db.py index 150a832e..90b6517a 100644 --- a/platformio/builder/tools/compilation_db.py +++ b/platformio/builder/tools/compilation_db.py @@ -41,7 +41,7 @@ from platformio.proc import where_is_program # should hold the compilation database, otherwise, the file defaults to compile_commands.json, # which is the name that most clang tools search for by default. -# TODO: Is there a better way to do this than this global? Right now this exists so that the +# Is there a better way to do this than this global? Right now this exists so that the # emitter we add can record all of the things it emits, so that the scanner for the top level # compilation database can access the complete list, and also so that the writer has easy # access to write all of the files. But it seems clunky. How can the emitter and the scanner @@ -104,7 +104,7 @@ def makeEmitCompilationDbEntry(comstr): __COMPILATIONDB_ENV=env, ) - # TODO: Technically, these next two lines should not be required: it should be fine to + # Technically, these next two lines should not be required: it should be fine to # cache the entries. However, they don't seem to update properly. Since they are quick # to re-generate disable caching and sidestep this problem. env.AlwaysBuild(entry) diff --git a/platformio/compat.py b/platformio/compat.py index 974bdf2f..e25fbb6a 100644 --- a/platformio/compat.py +++ b/platformio/compat.py @@ -67,9 +67,9 @@ def ensure_python3(raise_exception=True): return compatible raise UserSideException( "Python 3.6 or later is required for this operation. \n" - "Please install the latest Python 3 and reinstall PlatformIO Core using " - "installation script:\n" - "https://docs.platformio.org/page/core/installation.html" + "Please check a migration guide:\n" + "https://docs.platformio.org/en/latest/core/migration.html" + "#drop-support-for-python-2-and-3-5" ) diff --git a/platformio/maintenance.py b/platformio/maintenance.py index 9d2f8245..4c252df8 100644 --- a/platformio/maintenance.py +++ b/platformio/maintenance.py @@ -53,7 +53,7 @@ def on_platformio_start(ctx, force, caller): click.secho( """ Python 2 and Python 3.5 are not compatible with PlatformIO Core 5.0. -Please check the migration guide on how to fix this warning message: +Please check a migration guide on how to fix this warning message: """, fg="yellow", )