From 98f5f73a41b89be107922e1626af6c0294bc2a86 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 29 Jun 2016 13:17:06 +0300 Subject: [PATCH] Auto-remove project cache when PlatformIO is upgraded --- HISTORY.rst | 5 +++++ platformio/__init__.py | 2 +- platformio/commands/run.py | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index fe6d261e..eb34ef63 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -4,6 +4,11 @@ Release Notes PlatformIO 2.0 -------------- +2.11.1 (2016-??-??) +~~~~~~~~~~~~~~~~~~~ + +* Auto-remove project cache when PlatformIO is upgraded + 2.11.0 (2016-06-28) ~~~~~~~~~~~~~~~~~~~ diff --git a/platformio/__init__.py b/platformio/__init__.py index 7931da16..6d594c01 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -14,7 +14,7 @@ import sys -VERSION = (2, 11, 0) +VERSION = (2, 11, "1.dev0") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" diff --git a/platformio/commands/run.py b/platformio/commands/run.py index 0834edf0..023d0a34 100644 --- a/platformio/commands/run.py +++ b/platformio/commands/run.py @@ -21,7 +21,7 @@ from time import time import click -from platformio import app, exception, telemetry, util +from platformio import __version__, app, exception, telemetry, util from platformio.commands.lib import lib_install as cmd_lib_install from platformio.libmanager import LibraryManager from platformio.platforms.base import PlatformFactory @@ -243,7 +243,7 @@ def _clean_pioenvs_dir(pioenvs_dir): def calculate_project_hash(): - structure = [] + structure = [__version__] for d in (util.get_projectsrc_dir(), util.get_projectlib_dir()): if not isdir(d): continue