Skip to content

Commit 974b0f6

Browse files
authored
pioarduino v6.1.16 (#6)
* remove telemetry * no full git clone * remove advertisings * add intelhex as required * no core packages * install scons from github * add `argcomplete` as pip dependencies * support for `tar.xz` tarballs * scons-local-4.8.1 * release pioarduino v6.1.16
1 parent b537004 commit 974b0f6

File tree

21 files changed

+69
-567
lines changed

21 files changed

+69
-567
lines changed

.github/workflows/core.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
run: |
3232
tox -e py
3333
34+
- name: Python Lint
35+
run: |
36+
tox -e lint
37+
3438
- name: Integration Tests
3539
if: ${{ matrix.python-version == '3.11' }}
3640
run: |

.github/workflows/examples.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/projects.yml

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,11 @@ jobs:
88
fail-fast: false
99
matrix:
1010
project:
11-
- marlin:
12-
repository: "MarlinFirmware/Marlin"
13-
folder: "Marlin"
14-
config_dir: "Marlin"
15-
env_name: "mega2560"
16-
- smartknob:
17-
repository: "scottbez1/smartknob"
18-
folder: "smartknob"
19-
config_dir: "smartknob"
20-
env_name: "view"
21-
- espurna:
22-
repository: "xoseperez/espurna"
23-
folder: "espurna"
24-
config_dir: "espurna/code"
25-
env_name: "nodemcu-lolin"
26-
- OpenMQTTGateway:
27-
repository: "1technophile/OpenMQTTGateway"
28-
folder: "OpenMQTTGateway"
29-
config_dir: "OpenMQTTGateway"
30-
env_name: "esp32-m5atom-lite"
11+
- PlatformTest:
12+
repository: "Jason2866/platform-test"
13+
folder: "src"
14+
config_dir: "src"
15+
env_name: "esp32-s3"
3116
os: [ubuntu-latest, windows-latest, macos-latest]
3217

3318
runs-on: ${{ matrix.os }}
@@ -37,7 +22,7 @@ jobs:
3722
submodules: "recursive"
3823

3924
- name: Set up Python ${{ matrix.python-version }}
40-
uses: actions/setup-python@v4
25+
uses: actions/setup-python@v5
4126
with:
4227
python-version: 3.11
4328

@@ -51,6 +36,6 @@ jobs:
5136
repository: ${{ matrix.project.repository }}
5237
path: ${{ matrix.project.folder }}
5338

54-
- name: Compile ${{ matrix.project.repository }}
55-
run: pio run -d ${{ matrix.project.config_dir }} -e ${{ matrix.project.env_name }}
56-
39+
- name: Compile example ${{ matrix.project.repository }}
40+
run: |
41+
pio run -d ${{ matrix.project.config_dir }} -e ${{ matrix.project.env_name }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ coverage.xml
1010
.coverage
1111
htmlcov
1212
.pytest_cache
13+
.vscode/settings.json

README.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,11 @@ Contributing
8282

8383
See `contributing guidelines <https://github.com/platformio/platformio/blob/develop/CONTRIBUTING.md>`_.
8484

85-
Telemetry / Privacy Policy
86-
--------------------------
85+
Telemetry
86+
---------
8787

88-
Share minimal diagnostics and usage information to help us make PlatformIO better.
89-
It is enabled by default. For more information see:
88+
Removed
9089

91-
* `Telemetry Setting <https://docs.platformio.org/en/latest/userguide/cmd_settings.html?utm_source=github&utm_medium=core#enable-telemetry>`_
9290

9391
License
9492
-------

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 = (6, 1, "17a1")
15+
VERSION = (6, 1, "16")
1616
__version__ = ".".join([str(s) for s in VERSION])
1717

1818
__title__ = "platformio"

platformio/__main__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ def main(argv=None):
106106
exit_code = int(exc.code)
107107
except Exception as exc: # pylint: disable=broad-except
108108
if not isinstance(exc, exception.ReturnErrorCode):
109-
maintenance.on_platformio_exception(exc)
110109
error_str = f"{exc.__class__.__name__}: "
111110
if isinstance(exc, exception.PlatformioException):
112111
error_str += str(exc)
@@ -131,7 +130,6 @@ def main(argv=None):
131130
click.secho(error_str, fg="red", err=True)
132131
exit_code = int(str(exc)) if str(exc).isdigit() else 1
133132

134-
maintenance.on_platformio_exit()
135133
sys.argv = prev_sys_argv
136134
return exit_code
137135

platformio/app.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ def projects_dir_validate(projects_dir):
4646
"description": "Enable caching for HTTP API requests",
4747
"value": True,
4848
},
49-
"enable_telemetry": {
50-
"description": ("Telemetry service <https://bit.ly/pio-telemetry> (Yes/No)"),
51-
"value": True,
52-
},
5349
"force_verbose": {
5450
"description": "Force verbose output when processing environments",
5551
"value": False,
@@ -69,7 +65,6 @@ def projects_dir_validate(projects_dir):
6965
"command_ctx": None,
7066
"caller_id": None,
7167
"custom_project_conf": None,
72-
"pause_telemetry": False,
7368
}
7469

7570

@@ -274,8 +269,6 @@ def get_user_agent():
274269
data.append("IDE/%s" % os.getenv("PLATFORMIO_IDE"))
275270
data.append("Python/%s" % platform.python_version())
276271
data.append("Platform/%s" % platform.platform())
277-
if not get_setting("enable_telemetry"):
278-
data.append("Telemetry/0")
279272
return " ".join(data)
280273

281274

platformio/debug/process/gdb.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
import signal
1717
import time
1818

19-
from platformio import telemetry
2019
from platformio.compat import aio_get_running_loop, is_bytes
2120
from platformio.debug import helpers
22-
from platformio.debug.exception import DebugInitError
2321
from platformio.debug.process.client import DebugClientProcess
2422

2523

@@ -130,7 +128,6 @@ def stdout_data_received(self, data):
130128
self._handle_error(data)
131129
# go to init break automatically
132130
if self.INIT_COMPLETED_BANNER.encode() in data:
133-
telemetry.log_debug_started(self.debug_config)
134131
self._auto_exec_continue()
135132

136133
def console_log(self, msg):
@@ -175,7 +172,4 @@ def _handle_error(self, data):
175172
and b"Error in sourced" in self._errors_buffer
176173
):
177174
return
178-
telemetry.log_debug_exception(
179-
DebugInitError(self._errors_buffer.decode()), self.debug_config
180-
)
181175
self.transport.close()

platformio/dependencies.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@
1717

1818
def get_core_dependencies():
1919
return {
20-
"contrib-piohome": "~3.4.2",
21-
"contrib-pioremote": "~1.0.0",
22-
"tool-scons": "~4.40801.0",
23-
"tool-cppcheck": "~1.21100.0",
24-
"tool-clangtidy": "~1.150005.0",
25-
"tool-pvs-studio": "~7.18.0",
20+
"tool-scons",
2621
}
2722

2823

@@ -38,6 +33,8 @@ def get_pip_dependencies():
3833
"requests%s == 2.*" % ("[socks]" if is_proxy_set(socks=True) else ""),
3934
"semantic_version == 2.10.*",
4035
"tabulate == 0.*",
36+
"intelhex", # actual esptool.py requirement
37+
"argcomplete >=3", # latest esptool.py requirement
4138
]
4239

4340
home = [

platformio/maintenance.py

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import click
2020
import semantic_version
2121

22-
from platformio import __version__, app, exception, fs, telemetry
22+
from platformio import __version__, app, exception, fs
2323
from platformio.cache import cleanup_content_cache
2424
from platformio.cli import PlatformioCLI
2525
from platformio.commands.upgrade import get_latest_version
@@ -32,7 +32,6 @@
3232
def on_cmd_start(ctx, caller):
3333
app.set_session_var("command_ctx", ctx)
3434
set_caller(caller)
35-
telemetry.on_cmd_start(ctx)
3635
if PlatformioCLI.in_silence():
3736
return
3837
after_upgrade(ctx)
@@ -57,14 +56,6 @@ def on_cmd_end():
5756
)
5857

5958

60-
def on_platformio_exception(exc):
61-
telemetry.log_exception(exc)
62-
63-
64-
def on_platformio_exit():
65-
telemetry.on_exit()
66-
67-
6859
def set_caller(caller=None):
6960
caller = caller or os.getenv("PLATFORMIO_CALLER")
7061
if not caller:
@@ -103,7 +94,6 @@ def _appstate_migration(_):
10394
state_path = app.resolve_state_path("core_dir", "appstate.json")
10495
if not os.path.isfile(state_path):
10596
return True
106-
app.delete_state_item("telemetry")
10797
created_at = app.get_state_item("created_at", None)
10898
if not created_at:
10999
state_stat = os.stat(state_path)
@@ -160,14 +150,6 @@ def after_upgrade(ctx):
160150
"PlatformIO has been successfully upgraded to %s!\n" % __version__,
161151
fg="green",
162152
)
163-
telemetry.log_event(
164-
"pio_upgrade_core",
165-
{
166-
"label": "%s > %s" % (last_version_str, __version__),
167-
"from_version": last_version_str,
168-
"to_version": __version__,
169-
},
170-
)
171153

172154
return print_welcome_banner()
173155

@@ -183,22 +165,6 @@ def print_welcome_banner():
183165
click.style("https://github.com/platformio/platformio-core", fg="cyan"),
184166
)
185167
)
186-
click.echo(
187-
"- %s us on LinkedIn to stay up-to-date "
188-
"on the latest project news > %s"
189-
% (
190-
click.style("follow", fg="cyan"),
191-
click.style("https://www.linkedin.com/company/platformio/", fg="cyan"),
192-
)
193-
)
194-
if not os.getenv("PLATFORMIO_IDE"):
195-
click.echo(
196-
"- %s PlatformIO IDE for embedded development > %s"
197-
% (
198-
click.style("try", fg="cyan"),
199-
click.style("https://platformio.org/platformio-ide", fg="cyan"),
200-
)
201-
)
202168

203169
click.echo("*" * terminal_width)
204170
click.echo("")

0 commit comments

Comments
 (0)