Merge branch 'release/v4.3.1'

This commit is contained in:
Ivan Kravets
2020-03-20 15:13:46 +02:00
7 changed files with 19 additions and 10 deletions

View File

@@ -6,6 +6,13 @@ Release Notes
PlatformIO Core 4 PlatformIO Core 4
----------------- -----------------
4.3.1 (2020-03-20)
~~~~~~~~~~~~~~~~~~
* Fixed a SyntaxError "'return' with argument inside generator" for PIO Unified Debugger when Python 2.7 is used
* Fixed an issue when ``lib_archive = no`` was not honored in `"platformio.ini" <https://docs.platformio.org/page/projectconf.html>`__
* 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>`_)
4.3.0 (2020-03-19) 4.3.0 (2020-03-19)
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~

2
docs

Submodule docs updated: 51b7dd49b7...d97117eb2e

View File

@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
VERSION = (4, 3, 0) VERSION = (4, 3, 1)
__version__ = ".".join([str(s) for s in VERSION]) __version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio" __title__ = "platformio"

View File

@@ -723,7 +723,9 @@ class PlatformIOLibBuilder(LibBuilderBase):
"env:" + self.env["PIOENV"], "lib_archive", missing "env:" + self.env["PIOENV"], "lib_archive", missing
) )
if global_value != missing: if global_value != missing:
return global_value return self.env.GetProjectConfig().get(
"env:" + self.env["PIOENV"], "lib_archive"
)
return self._manifest.get("build", {}).get( return self._manifest.get("build", {}).get(
"libArchive", LibBuilderBase.lib_archive.fget(self) "libArchive", LibBuilderBase.lib_archive.fget(self)
) )

View File

@@ -42,11 +42,11 @@ class DebugServer(BaseProcess):
systype = util.get_systype() systype = util.get_systype()
server = self.debug_options.get("server") server = self.debug_options.get("server")
if not server: if not server:
return None defer.returnValue(None)
server = self.apply_patterns(server, patterns) server = self.apply_patterns(server, patterns)
server_executable = server["executable"] server_executable = server["executable"]
if not server_executable: if not server_executable:
return None defer.returnValue(None)
if server["cwd"]: if server["cwd"]:
server_executable = join(server["cwd"], server_executable) server_executable = join(server["cwd"], server_executable)
if ( if (
@@ -83,7 +83,7 @@ class DebugServer(BaseProcess):
) )
self._debug_port = '| "%s" %s' % (server_executable, str_args) self._debug_port = '| "%s" %s' % (server_executable, str_args)
self._debug_port = fs.to_unix_path(self._debug_port) self._debug_port = fs.to_unix_path(self._debug_port)
return self._debug_port defer.returnValue(self._debug_port)
env = os.environ.copy() env = os.environ.copy()
# prepend server "lib" folder to LD path # prepend server "lib" folder to LD path
@@ -120,7 +120,7 @@ class DebugServer(BaseProcess):
yield self._wait_until_ready() yield self._wait_until_ready()
return self._debug_port defer.returnValue(self._debug_port)
@defer.inlineCallbacks @defer.inlineCallbacks
def _wait_until_ready(self): def _wait_until_ready(self):

View File

@@ -20,7 +20,7 @@ from platformio.project.config import ProjectConfig
class DeviceMonitorFilter(miniterm.Transform): class DeviceMonitorFilter(miniterm.Transform):
def __init__(self, project_dir=None, environment=None): def __init__(self, project_dir=None, environment=None):
""" Called by PlatformIO to pass context """ """ Called by PlatformIO to pass context """
super(DeviceMonitorFilter, self).__init__() miniterm.Transform.__init__(self)
self.project_dir = project_dir self.project_dir = project_dir
self.environment = environment self.environment = environment

View File

@@ -23,12 +23,12 @@ from platformio import (
__url__, __url__,
__version__, __version__,
) )
from platformio.compat import PY2 from platformio.compat import PY2, WINDOWS
install_requires = [ install_requires = [
"bottle<0.13", "bottle<0.13",
"click>=5,<8,!=7.1,!=7.1.1", "click>=5,<8%s" % (",!=7.1,!=7.1.1" if WINDOWS else ""),
"colorama", "colorama",
"pyserial>=3,<4,!=3.3", "pyserial>=3,<4,!=3.3",
"requests>=2.4.0,<3", "requests>=2.4.0,<3",