Skip to content

Commit a1a2524

Browse files
committed
platformio support
1 parent d723bf9 commit a1a2524

File tree

473 files changed

+118287
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

473 files changed

+118287
-0
lines changed

package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "framework-mbed",
3+
"version": "6.61700.231105",
4+
"title": "Mbed OS",
5+
"description": "Arm Mbed OS is a platform operating system designed for the internet of things",
6+
"keywords": [
7+
"framework",
8+
"os",
9+
"arm",
10+
"hal"
11+
],
12+
"homepage": "http://mbed.org",
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/ARMmbed/mbed-os"
16+
}
17+
}

platformio/install_python_deps.py

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Copyright 2019-present PlatformIO <[email protected]>
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
16+
import sys
17+
import subprocess
18+
19+
from os import makedirs, remove, walk
20+
from os.path import abspath, dirname, isdir, join, normpath
21+
from shutil import rmtree
22+
23+
pio_tools = dirname(abspath(__file__))
24+
python_exe = normpath(sys.executable)
25+
26+
27+
def exec_cmd(*args, **kwargs):
28+
print(" ".join(args[0]))
29+
return subprocess.call(*args, **kwargs)
30+
31+
# colorama==0.3.9
32+
# urllib3[secure]==1.24.2
33+
# prettytable==0.7.2
34+
# junit-xml==1.8
35+
# pyyaml==4.2b1
36+
# jsonschema==2.6.0
37+
# future==0.16.0
38+
# six==1.12.0
39+
# mbed-cloud-sdk>=2.0.6,<2.1
40+
# requests>=2.20,<2.21
41+
# idna>=2,<2.8
42+
# pyserial>=3,<=3.4
43+
# Jinja2>=2.10.1,<2.11
44+
# intelhex>=1.3,<=2.2.1
45+
# mbed-ls>=1.5.1,<2.0
46+
# mbed-host-tests>=1.4.4,<2.0
47+
# mbed-greentea>=0.2.24,<2.0
48+
# beautifulsoup4>=4,<=4.6.3
49+
# pyelftools>=0.24,<=0.25
50+
# manifest-tool==1.5.2
51+
# icetea>=1.2.1,<1.3
52+
# pycryptodome>=3.9.3,<4
53+
# pyusb>=1.0.0,<2.0.0
54+
# hidapi>=0.7.99,<0.8.0;platform_system!="Linux"
55+
# cmsis-pack-manager>=0.2.3,<0.3.0
56+
# pywin32==224;platform_system=='Windows'
57+
# wmi==1.4.9;platform_system=='Windows'
58+
# psutil==5.6.6
59+
# cryptography>=2.5,<3
60+
# Click>=7.0,<7.1
61+
# cbor>=1.0.0
62+
63+
64+
def build_packages():
65+
66+
packages = (
67+
"intelhex==2.3.0",
68+
"jinja2==3.1.2",
69+
"pyelftools==0.29",
70+
"beautifulsoup4==4.11.1",
71+
"future==0.18.1",
72+
"prettytable==3.3.0",
73+
"jsonschema==4.14.0",
74+
"six==1.16.0"
75+
)
76+
77+
target_dir = join(
78+
pio_tools,
79+
"package_deps",
80+
"py%d%s"
81+
% (
82+
sys.version_info.major,
83+
"_old" if sys.version_info < (3, 9) else "",
84+
),
85+
)
86+
if isdir(target_dir):
87+
rmtree(target_dir)
88+
makedirs(target_dir)
89+
for name in packages:
90+
exec_cmd([
91+
python_exe, "-m", "pip", "install", "--no-cache-dir",
92+
"--no-compile", "-t", target_dir, name
93+
])
94+
cleanup_packages(target_dir)
95+
96+
97+
def cleanup_packages(package_dir):
98+
for root, dirs, files in walk(package_dir):
99+
for t in ("_test", "test", "tests"):
100+
if t in dirs:
101+
rmtree(join(root, t))
102+
for name in files:
103+
if name.endswith((".chm", ".pyc")):
104+
remove(join(root, name))
105+
106+
build_packages()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Copyright 2007 Pallets
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are
5+
met:
6+
7+
1. Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright
11+
notice, this list of conditions and the following disclaimer in the
12+
documentation and/or other materials provided with the distribution.
13+
14+
3. Neither the name of the copyright holder nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
24+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
Metadata-Version: 2.1
2+
Name: Jinja2
3+
Version: 3.1.2
4+
Summary: A very fast and expressive template engine.
5+
Home-page: https://palletsprojects.com/p/jinja/
6+
Author: Armin Ronacher
7+
Author-email: [email protected]
8+
Maintainer: Pallets
9+
Maintainer-email: [email protected]
10+
License: BSD-3-Clause
11+
Project-URL: Donate, https://palletsprojects.com/donate
12+
Project-URL: Documentation, https://jinja.palletsprojects.com/
13+
Project-URL: Changes, https://jinja.palletsprojects.com/changes/
14+
Project-URL: Source Code, https://github.com/pallets/jinja/
15+
Project-URL: Issue Tracker, https://github.com/pallets/jinja/issues/
16+
Project-URL: Twitter, https://twitter.com/PalletsTeam
17+
Project-URL: Chat, https://discord.gg/pallets
18+
Platform: UNKNOWN
19+
Classifier: Development Status :: 5 - Production/Stable
20+
Classifier: Environment :: Web Environment
21+
Classifier: Intended Audience :: Developers
22+
Classifier: License :: OSI Approved :: BSD License
23+
Classifier: Operating System :: OS Independent
24+
Classifier: Programming Language :: Python
25+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
26+
Classifier: Topic :: Text Processing :: Markup :: HTML
27+
Requires-Python: >=3.7
28+
Description-Content-Type: text/x-rst
29+
License-File: LICENSE.rst
30+
Requires-Dist: MarkupSafe (>=2.0)
31+
Provides-Extra: i18n
32+
Requires-Dist: Babel (>=2.7) ; extra == 'i18n'
33+
34+
Jinja
35+
=====
36+
37+
Jinja is a fast, expressive, extensible templating engine. Special
38+
placeholders in the template allow writing code similar to Python
39+
syntax. Then the template is passed data to render the final document.
40+
41+
It includes:
42+
43+
- Template inheritance and inclusion.
44+
- Define and import macros within templates.
45+
- HTML templates can use autoescaping to prevent XSS from untrusted
46+
user input.
47+
- A sandboxed environment can safely render untrusted templates.
48+
- AsyncIO support for generating templates and calling async
49+
functions.
50+
- I18N support with Babel.
51+
- Templates are compiled to optimized Python code just-in-time and
52+
cached, or can be compiled ahead-of-time.
53+
- Exceptions point to the correct line in templates to make debugging
54+
easier.
55+
- Extensible filters, tests, functions, and even syntax.
56+
57+
Jinja's philosophy is that while application logic belongs in Python if
58+
possible, it shouldn't make the template designer's job difficult by
59+
restricting functionality too much.
60+
61+
62+
Installing
63+
----------
64+
65+
Install and update using `pip`_:
66+
67+
.. code-block:: text
68+
69+
$ pip install -U Jinja2
70+
71+
.. _pip: https://pip.pypa.io/en/stable/getting-started/
72+
73+
74+
In A Nutshell
75+
-------------
76+
77+
.. code-block:: jinja
78+
79+
{% extends "base.html" %}
80+
{% block title %}Members{% endblock %}
81+
{% block content %}
82+
<ul>
83+
{% for user in users %}
84+
<li><a href="{{ user.url }}">{{ user.username }}</a></li>
85+
{% endfor %}
86+
</ul>
87+
{% endblock %}
88+
89+
90+
Donate
91+
------
92+
93+
The Pallets organization develops and supports Jinja and other popular
94+
packages. In order to grow the community of contributors and users, and
95+
allow the maintainers to devote more time to the projects, `please
96+
donate today`_.
97+
98+
.. _please donate today: https://palletsprojects.com/donate
99+
100+
101+
Links
102+
-----
103+
104+
- Documentation: https://jinja.palletsprojects.com/
105+
- Changes: https://jinja.palletsprojects.com/changes/
106+
- PyPI Releases: https://pypi.org/project/Jinja2/
107+
- Source Code: https://github.com/pallets/jinja/
108+
- Issue Tracker: https://github.com/pallets/jinja/issues/
109+
- Website: https://palletsprojects.com/p/jinja/
110+
- Twitter: https://twitter.com/PalletsTeam
111+
- Chat: https://discord.gg/pallets
112+
113+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Jinja2-3.1.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2+
Jinja2-3.1.2.dist-info/LICENSE.rst,sha256=O0nc7kEF6ze6wQ-vG-JgQI_oXSUrjp3y4JefweCUQ3s,1475
3+
Jinja2-3.1.2.dist-info/METADATA,sha256=PZ6v2SIidMNixR7MRUX9f7ZWsPwtXanknqiZUmRbh4U,3539
4+
Jinja2-3.1.2.dist-info/RECORD,,
5+
Jinja2-3.1.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6+
Jinja2-3.1.2.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
7+
Jinja2-3.1.2.dist-info/entry_points.txt,sha256=zRd62fbqIyfUpsRtU7EVIFyiu1tPwfgO7EvPErnxgTE,59
8+
Jinja2-3.1.2.dist-info/top_level.txt,sha256=PkeVWtLb3-CqjWi1fO29OCbj55EhX_chhKrCdrVe_zs,7
9+
jinja2/__init__.py,sha256=8vGduD8ytwgD6GDSqpYc2m3aU-T7PKOAddvVXgGr_Fs,1927
10+
jinja2/_identifier.py,sha256=_zYctNKzRqlk_murTNlzrju1FFJL7Va_Ijqqd7ii2lU,1958
11+
jinja2/async_utils.py,sha256=dHlbTeaxFPtAOQEYOGYh_PHcDT0rsDaUJAFDl_0XtTg,2472
12+
jinja2/bccache.py,sha256=mhz5xtLxCcHRAa56azOhphIAe19u1we0ojifNMClDio,14061
13+
jinja2/compiler.py,sha256=Gs-N8ThJ7OWK4-reKoO8Wh1ZXz95MVphBKNVf75qBr8,72172
14+
jinja2/constants.py,sha256=GMoFydBF_kdpaRKPoM5cl5MviquVRLVyZtfp5-16jg0,1433
15+
jinja2/debug.py,sha256=iWJ432RadxJNnaMOPrjIDInz50UEgni3_HKuFXi2vuQ,6299
16+
jinja2/defaults.py,sha256=boBcSw78h-lp20YbaXSJsqkAI2uN_mD_TtCydpeq5wU,1267
17+
jinja2/environment.py,sha256=6uHIcc7ZblqOMdx_uYNKqRnnwAF0_nzbyeMP9FFtuh4,61349
18+
jinja2/exceptions.py,sha256=ioHeHrWwCWNaXX1inHmHVblvc4haO7AXsjCp3GfWvx0,5071
19+
jinja2/ext.py,sha256=ivr3P7LKbddiXDVez20EflcO3q2aHQwz9P_PgWGHVqE,31502
20+
jinja2/filters.py,sha256=9js1V-h2RlyW90IhLiBGLM2U-k6SCy2F4BUUMgB3K9Q,53509
21+
jinja2/idtracking.py,sha256=GfNmadir4oDALVxzn3DL9YInhJDr69ebXeA2ygfuCGA,10704
22+
jinja2/lexer.py,sha256=DW2nX9zk-6MWp65YR2bqqj0xqCvLtD-u9NWT8AnFRxQ,29726
23+
jinja2/loaders.py,sha256=BfptfvTVpClUd-leMkHczdyPNYFzp_n7PKOJ98iyHOg,23207
24+
jinja2/meta.py,sha256=GNPEvifmSaU3CMxlbheBOZjeZ277HThOPUTf1RkppKQ,4396
25+
jinja2/nativetypes.py,sha256=DXgORDPRmVWgy034H0xL8eF7qYoK3DrMxs-935d0Fzk,4226
26+
jinja2/nodes.py,sha256=i34GPRAZexXMT6bwuf5SEyvdmS-bRCy9KMjwN5O6pjk,34550
27+
jinja2/optimizer.py,sha256=tHkMwXxfZkbfA1KmLcqmBMSaz7RLIvvItrJcPoXTyD8,1650
28+
jinja2/parser.py,sha256=nHd-DFHbiygvfaPtm9rcQXJChZG7DPsWfiEsqfwKerY,39595
29+
jinja2/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30+
jinja2/runtime.py,sha256=5CmD5BjbEJxSiDNTFBeKCaq8qU4aYD2v6q2EluyExms,33476
31+
jinja2/sandbox.py,sha256=Y0xZeXQnH6EX5VjaV2YixESxoepnRbW_3UeQosaBU3M,14584
32+
jinja2/tests.py,sha256=Am5Z6Lmfr2XaH_npIfJJ8MdXtWsbLjMULZJulTAj30E,5905
33+
jinja2/utils.py,sha256=u9jXESxGn8ATZNVolwmkjUVu4SA-tLgV0W7PcSfPfdQ,23965
34+
jinja2/visitor.py,sha256=MH14C6yq24G_KVtWzjwaI7Wg14PCJIYlWW1kpkxYak0,3568

platformio/package_deps/py3/Jinja2-3.1.2.dist-info/REQUESTED

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Wheel-Version: 1.0
2+
Generator: bdist_wheel (0.37.1)
3+
Root-Is-Purelib: true
4+
Tag: py3-none-any
5+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[babel.extractors]
2+
jinja2 = jinja2.ext:babel_extract[i18n]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
jinja2
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Copyright 2010 Pallets
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are
5+
met:
6+
7+
1. Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright
11+
notice, this list of conditions and the following disclaimer in the
12+
documentation and/or other materials provided with the distribution.
13+
14+
3. Neither the name of the copyright holder nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
24+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)