Commit graph

55 commits

Author SHA1 Message Date
8fe3db1449 Finish converting mpy-cross building to use cache directory 2024-06-16 11:19:19 -05:00
c8a8513288 mpy_cross: Cache it in the user cache path
.. rather than in a build_deps folder, polluting the repo where it's used

this also enables sharing the copy of mpy-cross across multiple repos.
2024-06-15 10:49:11 -05:00
90a2341e04
Add an "--only" flag to quickly build just one kind of artifact
Most often I find that I want to check just one kind of artifact
(e.g., mpy files) and this is a quicker syntax than excluding the
other 3 types with 3 --ignores.
2024-01-11 09:07:40 -06:00
ea28feb31d
Fix generation of dependencies[] array 2024-01-11 09:06:42 -06:00
ff6d40dca9
Fix json output when a bundle does not use submodules
Some bundles, such as circuitpython-fonts, don't use submodules to
contain their individual libraries.

Change build_bundle_json so that it works correctly if multiple
libraries come from the same submodule.

With this change, the generated metadata for circuitpython-fonts
contains an entry for every font, not just for one font.
2023-12-19 13:19:04 -06:00
4f50d277da
enable standard zip ("deflate") compression
This saves ~50% on the main bundle and will save ~85% on the fonts bundle
2023-12-19 11:23:53 -06:00
Brendan
1e64df5969 remove travis CI specific code 2023-12-16 20:02:27 -08:00
Brendan
7cd8379d01 addresses #103 2023-12-15 21:32:16 -08:00
Tekktrik
123186b725 Use click.Choice 2023-07-27 20:58:13 -04:00
Tekktrik
fa235526a8 Allow bundles to be skipped 2023-07-10 21:50:06 -04:00
foamyguy
0b44929f49 remote name argument 2023-06-27 19:12:21 -05:00
Neradoc
ad4908adbf add spidev to skipped pypi modules 2022-08-18 16:17:02 +02:00
Neradoc
795e3d2ff9 change normalize_dist_name to get back the bundle libraries 2022-08-18 15:55:22 +02:00
38931db45e
Don't ignore busdevice
This is a weird one since some devices have it in core now, and others don't.

This happened in part because I copypasted the list currently in pipkin instead of tweaking the existing list, which was initially added with this module in the list: b9957133a9
2022-07-18 14:41:15 -05:00
9fb6ffb1ea
build_bundles: Ignore more packages that exist only on pypi
…and sort the existing list and use 'normalized' names

The implementation of normalize_dist_name is taken from pipkin.
2022-07-18 12:55:47 -05:00
2bndy5
a55a92367e self reviewed 2022-01-25 17:19:03 -08:00
foamyguy
3845cee485 fix pypi names for circuitpython org libraries 2021-09-11 11:43:09 -05:00
Melissa LeBlanc-Williams
e9ba66eb93 Fix PyPI names in json when .git is missing 2021-04-07 13:41:15 -07:00
Melissa LeBlanc-Williams
336d6b9a53 Changed LINUX LIBS to BLINKA LIBS and added a couple more 2021-03-31 09:59:15 -07:00
Melissa LeBlanc-Williams
243a717ff4 Added PyPI Name for external package matching 2021-03-31 09:31:16 -07:00
Melissa LeBlanc-Williams
3bb57a8c58 Remove quotes used for testing 2021-03-31 09:27:59 -07:00
Melissa LeBlanc-Williams
6866d2609a Bundle JSON improvements 2021-03-31 09:23:13 -07:00
Melissa LeBlanc-Williams
ffa8fe9324 Add library versions to JSON 2021-03-24 16:17:53 -07:00
Melissa LeBlanc-Williams
85a47fc9c1 Added JSON generator for bundle 2021-03-23 11:53:31 -07:00
Joe DeVivo
0fe0ed6353 My git urls look like ssh://git@github.com/**/.git 2019-12-27 08:26:09 -07:00
sommersoft
b803b26f4a allow for multiple entries for the 'package_folder_prefix" argument 2019-09-24 21:54:02 -05:00
sommersoft
7f8af9417d de-confuse 'package_folder_prefix' parameter naming 2019-05-14 20:29:52 -05:00
sommersoft
50ddabd2cc change 'package_folder_prefix' to a pos arg; grab examples subfolders 2019-05-11 09:32:21 -05:00
sommersoft
03373f49a9 set @click 'package_folder_prefix' default to 'adafruit_' to maintain backwards compatibility 2019-05-07 20:39:07 -05:00
sommersoft
f9ac09d94e Revert "Revert "Fix arg; again...""
This reverts commit 495627bf29.
2019-05-07 18:13:39 -05:00
sommersoft
346ab583d0 Revert "Revert "Fix Mismatched arg Between Click And build_bundles()""
This reverts commit e010f5a10d.
2019-05-07 18:13:12 -05:00
sommersoft
55c69b7b66 Revert "Revert "Include mpy-cross '__init__.py' In Packages; Restructure Package Bundling""
This reverts commit cd1a858a01.
2019-05-07 18:12:43 -05:00
Kattni
cd1a858a01
Revert "Include mpy-cross '__init__.py' In Packages; Restructure Package Bundling" 2019-05-07 15:04:16 -04:00
Kattni
e010f5a10d
Revert "Fix Mismatched arg Between Click And build_bundles()" 2019-05-07 15:03:34 -04:00
Kattni
495627bf29
Revert "Fix arg; again..." 2019-05-07 15:01:54 -04:00
sommersoft
17bfe9642c return of the lost commit (or i forgot it) 2019-05-07 10:49:44 -05:00
sommersoft
a96f2bec8b fix mismatched arg between Click and build_bundles() 2019-05-06 21:55:52 -05:00
sommersoft
732c144b36 remove local debuggy stuff that snuck in 2019-05-02 21:40:31 -05:00
sommersoft
92138a56fd include package file based on package name prefix 2019-05-02 21:35:26 -05:00
sommersoft
c38f93dcc4 restructure package file bundling; uses folder name prefix string 2019-05-02 13:15:32 -05:00
Dan Halbert
8d38cf8ee6 ugh; remove redundant --quiet 2019-02-14 09:21:05 -05:00
Dan Halbert
3b2e59091b Simplify prasing git output in build_bundle. 2019-02-14 09:17:27 -05:00
sommersoft
b3808371c1 remove 'build' from top-level folder name in zipfile 2018-11-14 22:50:36 -06:00
sommersoft
929ebf7d70 match top folder name to zip name [drop 'replace("-", "_")'] 2018-11-10 10:23:36 -06:00
sommersoft
4b060c0495 Merge branch 'examples' of https://github.com/sommersoft/circuitpython-build-tools into examples 2018-10-16 20:52:48 -05:00
sommersoft
b0f19ccf1b fix README location in zip 2018-10-16 20:42:35 -05:00
sommersoft
ff34fa38c4
remove debug print; add cwd to git tag subprocess 2018-10-15 09:30:29 -05:00
sommersoft
a7ef777ff3 include VERSIONS.txt in examples bundle 2018-10-13 12:10:46 -05:00
sommersoft
d4044dc39e added examples to each bundle; example bundle build. see bundle issue #3. 2018-10-11 16:10:03 -05:00
Scott Shawcroft
2dbfc78b38
No longer include update scripts in the bundle
They are out of date
2018-03-05 15:29:26 -08:00