diff --git a/HISTORY.rst b/HISTORY.rst index 23e756ea..48725df2 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -17,10 +17,11 @@ PlatformIO Core 6 ~~~~~~~~~~~~~~~~~~ * Added support for Python 3.11 +* Added a new `name `__ configuration option to customize a project name (`pull #4498 `_) * Made assets (templates, ``99-platformio-udev.rules``) part of Python's module (`issue #4458 `_) * Updated `Clang-Tidy `__ check tool to v15.0.5 with new diagnostics and bugfixes * Removed dependency on the "zeroconf" package and install it only when a user lists mDNS devices (issue with zeroconf's LGPL license) -* Show the real error message instead of "Can not remove temporary directory" when "platform.ini" is broken (`issue #4480 `_) +* Show the real error message instead of "Can not remove temporary directory" when |PIOCONF| is broken (`issue #4480 `_) 6.1.5 (2022-11-01) ~~~~~~~~~~~~~~~~~~ diff --git a/docs b/docs index 5a88ddff..5b7d5d49 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 5a88ddffa3c7758b82361381bb3bcdc4aca9d6ab +Subproject commit 5b7d5d49985a4458394b2ffd91aba5780cc21fe8 diff --git a/platformio/project/integration/generator.py b/platformio/project/integration/generator.py index 4a4eb480..4ea3bbf3 100644 --- a/platformio/project/integration/generator.py +++ b/platformio/project/integration/generator.py @@ -82,7 +82,9 @@ class ProjectGenerator: tpl_vars = { "config": self.config, "systype": util.get_systype(), - "project_name": os.path.basename(self.project_dir), + "project_name": self.config.get( + "platformio", "name", os.path.basename(self.project_dir) + ), "project_dir": self.project_dir, "original_env_name": self.original_env_name, "env_name": self.env_name, diff --git a/platformio/project/options.py b/platformio/project/options.py index e1aa8280..5e200629 100644 --- a/platformio/project/options.py +++ b/platformio/project/options.py @@ -133,6 +133,11 @@ ProjectOptions = OrderedDict( # # [platformio] # + ConfigPlatformioOption( + group="generic", + name="name", + description="A project name", + ), ConfigPlatformioOption( group="generic", name="description",