From 439cd77db855fdcfb759d85e13c6b231b9c28e7a Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 4 Jun 2016 00:23:33 +0300 Subject: [PATCH 1/2] Show "udev" warning only for the Linux OS while upload firmware --- HISTORY.rst | 8 +++++++- platformio/builder/tools/pioupload.py | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 3797fe06..6ee3b220 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -4,10 +4,16 @@ Release Notes PlatformIO 2.0 -------------- +2.9.4 (2016-06-??) +~~~~~~~~~~~~~~~~~~ + +* Show ``udev`` warning only for the Linux OS while upload firmware + 2.9.3 (2016-06-03) ~~~~~~~~~~~~~~~~~~ -* Added support for Arduboy, the game system the size of a credit card +* Added support for `Arduboy `__, the game system + the size of a credit card * Updated `99-platformio-udev.rules `__ for Linux OS * Refactored firmware uploading to the embedded boards with SAM-BA bootloader diff --git a/platformio/builder/tools/pioupload.py b/platformio/builder/tools/pioupload.py index d839f90f..b7fe229e 100644 --- a/platformio/builder/tools/pioupload.py +++ b/platformio/builder/tools/pioupload.py @@ -15,6 +15,7 @@ from __future__ import absolute_import from os.path import isfile, join +from platform import system from shutil import copyfile from time import sleep @@ -90,7 +91,8 @@ def AutodetectUploadPort(env): env.Replace(UPLOAD_PORT=item['disk']) break else: - if not isfile("/etc/udev/99-platformio-udev.rules"): + if (system() == "Linux" and + not isfile("/etc/udev/99-platformio-udev.rules")): print ( "\nWarning! Please install `99-platformio-udev.rules` and " "check that your board's PID and VID are listed in the rules." From f1afa864cd6ad1ee11fc67d649991bb7673b53d5 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 4 Jun 2016 00:25:15 +0300 Subject: [PATCH 2/2] Version bump to 2.9.4 --- HISTORY.rst | 2 +- platformio/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 6ee3b220..be668065 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -4,7 +4,7 @@ Release Notes PlatformIO 2.0 -------------- -2.9.4 (2016-06-??) +2.9.4 (2016-06-04) ~~~~~~~~~~~~~~~~~~ * Show ``udev`` warning only for the Linux OS while upload firmware diff --git a/platformio/__init__.py b/platformio/__init__.py index 9e984cea..e470d028 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -14,7 +14,7 @@ import sys -VERSION = (2, 9, 3) +VERSION = (2, 9, 4) __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio"