Skip to content

Commit

Permalink
Merge branch 'release/v4.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Mar 20, 2020
2 parents d80a9c8 + b7b9ee5 commit cc52890
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 10 deletions.
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Release Notes
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)
~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion platformio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

VERSION = (4, 3, 0)
VERSION = (4, 3, 1)
__version__ = ".".join([str(s) for s in VERSION])

__title__ = "platformio"
Expand Down
4 changes: 3 additions & 1 deletion platformio/builder/tools/piolib.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,9 @@ def lib_archive(self):
"env:" + self.env["PIOENV"], "lib_archive", 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(
"libArchive", LibBuilderBase.lib_archive.fget(self)
)
Expand Down
8 changes: 4 additions & 4 deletions platformio/commands/debug/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ def spawn(self, patterns): # pylint: disable=too-many-branches
systype = util.get_systype()
server = self.debug_options.get("server")
if not server:
return None
defer.returnValue(None)
server = self.apply_patterns(server, patterns)
server_executable = server["executable"]
if not server_executable:
return None
defer.returnValue(None)
if server["cwd"]:
server_executable = join(server["cwd"], server_executable)
if (
Expand Down Expand Up @@ -83,7 +83,7 @@ def spawn(self, patterns): # pylint: disable=too-many-branches
)
self._debug_port = '| "%s" %s' % (server_executable, str_args)
self._debug_port = fs.to_unix_path(self._debug_port)
return self._debug_port
defer.returnValue(self._debug_port)

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

yield self._wait_until_ready()

return self._debug_port
defer.returnValue(self._debug_port)

@defer.inlineCallbacks
def _wait_until_ready(self):
Expand Down
2 changes: 1 addition & 1 deletion platformio/commands/device/filters/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class DeviceMonitorFilter(miniterm.Transform):
def __init__(self, project_dir=None, environment=None):
""" Called by PlatformIO to pass context """
super(DeviceMonitorFilter, self).__init__()
miniterm.Transform.__init__(self)

self.project_dir = project_dir
self.environment = environment
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
__url__,
__version__,
)
from platformio.compat import PY2
from platformio.compat import PY2, WINDOWS


install_requires = [
"bottle<0.13",
"click>=5,<8,!=7.1,!=7.1.1",
"click>=5,<8%s" % (",!=7.1,!=7.1.1" if WINDOWS else ""),
"colorama",
"pyserial>=3,<4,!=3.3",
"requests>=2.4.0,<3",
Expand Down

0 comments on commit cc52890

Please sign in to comment.