Skip to content

Commit cc52890

Browse files
committed
Merge branch 'release/v4.3.1'
2 parents d80a9c8 + b7b9ee5 commit cc52890

File tree

7 files changed

+19
-10
lines changed

7 files changed

+19
-10
lines changed

HISTORY.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Release Notes
66
PlatformIO Core 4
77
-----------------
88

9+
4.3.1 (2020-03-20)
10+
~~~~~~~~~~~~~~~~~~
11+
12+
* Fixed a SyntaxError "'return' with argument inside generator" for PIO Unified Debugger when Python 2.7 is used
13+
* Fixed an issue when ``lib_archive = no`` was not honored in `"platformio.ini" <https://docs.platformio.org/page/projectconf.html>`__
14+
* Fixed an TypeError "super(type, obj): obj must be an instance or subtype of type" when device monitor is used with a custom dev-platform filter (`issue #3431 <https://github.com/platformio/platformio-core/issues/3431>`_)
15+
916
4.3.0 (2020-03-19)
1017
~~~~~~~~~~~~~~~~~~
1118

platformio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
VERSION = (4, 3, 0)
15+
VERSION = (4, 3, 1)
1616
__version__ = ".".join([str(s) for s in VERSION])
1717

1818
__title__ = "platformio"

platformio/builder/tools/piolib.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,9 @@ def lib_archive(self):
723723
"env:" + self.env["PIOENV"], "lib_archive", missing
724724
)
725725
if global_value != missing:
726-
return global_value
726+
return self.env.GetProjectConfig().get(
727+
"env:" + self.env["PIOENV"], "lib_archive"
728+
)
727729
return self._manifest.get("build", {}).get(
728730
"libArchive", LibBuilderBase.lib_archive.fget(self)
729731
)

platformio/commands/debug/server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ def spawn(self, patterns): # pylint: disable=too-many-branches
4242
systype = util.get_systype()
4343
server = self.debug_options.get("server")
4444
if not server:
45-
return None
45+
defer.returnValue(None)
4646
server = self.apply_patterns(server, patterns)
4747
server_executable = server["executable"]
4848
if not server_executable:
49-
return None
49+
defer.returnValue(None)
5050
if server["cwd"]:
5151
server_executable = join(server["cwd"], server_executable)
5252
if (
@@ -83,7 +83,7 @@ def spawn(self, patterns): # pylint: disable=too-many-branches
8383
)
8484
self._debug_port = '| "%s" %s' % (server_executable, str_args)
8585
self._debug_port = fs.to_unix_path(self._debug_port)
86-
return self._debug_port
86+
defer.returnValue(self._debug_port)
8787

8888
env = os.environ.copy()
8989
# prepend server "lib" folder to LD path
@@ -120,7 +120,7 @@ def spawn(self, patterns): # pylint: disable=too-many-branches
120120

121121
yield self._wait_until_ready()
122122

123-
return self._debug_port
123+
defer.returnValue(self._debug_port)
124124

125125
@defer.inlineCallbacks
126126
def _wait_until_ready(self):

platformio/commands/device/filters/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class DeviceMonitorFilter(miniterm.Transform):
2121
def __init__(self, project_dir=None, environment=None):
2222
""" Called by PlatformIO to pass context """
23-
super(DeviceMonitorFilter, self).__init__()
23+
miniterm.Transform.__init__(self)
2424

2525
self.project_dir = project_dir
2626
self.environment = environment

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
__url__,
2424
__version__,
2525
)
26-
from platformio.compat import PY2
26+
from platformio.compat import PY2, WINDOWS
2727

2828

2929
install_requires = [
3030
"bottle<0.13",
31-
"click>=5,<8,!=7.1,!=7.1.1",
31+
"click>=5,<8%s" % (",!=7.1,!=7.1.1" if WINDOWS else ""),
3232
"colorama",
3333
"pyserial>=3,<4,!=3.3",
3434
"requests>=2.4.0,<3",

0 commit comments

Comments
 (0)