Commit graph

26 commits

Author SHA1 Message Date
sommersoft
283d8286bd properly truncate mpy filenames 2019-10-15 17:28:38 -05:00
sommersoft
b803b26f4a allow for multiple entries for the 'package_folder_prefix" argument 2019-09-24 21:54:02 -05:00
sommersoft
83ecd9525a use 'pathlib' vs 'os.walk' to gather files 2019-09-24 18:40:09 -05:00
sommersoft
519c62f3aa allow subfolders with 'examples' in the name, without truncating the path 2019-08-18 08:09:23 -05:00
sommersoft
8175c6c9a0 retain full subfolder structure in packages 2019-05-31 18:49:59 -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
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
sommersoft
f803ba57a3 build.py->library: refactor file selection, so it includes subfolders 2019-05-06 10:44:22 -05:00
sommersoft
c38f93dcc4 restructure package file bundling; uses folder name prefix string 2019-05-02 13:15:32 -05:00
sommersoft
d8c18da0b6 remove mpy-cross exclusion for '__init__.py' in packaged modules 2019-05-02 12:09:15 -05:00
sommersoft
5256b1b1a9 include 'font5x8.bin' in examples for adafruit_framebuf 2019-02-04 22:29:46 -06:00
Scott Shawcroft
a65c0e9402
Fix the build by initing submodules under tools. 2018-10-16 16:49:43 -07:00
sommersoft
d4044dc39e added examples to each bundle; example bundle build. see bundle issue #3. 2018-10-11 16:10:03 -05:00
Dan Halbert
739d5be0f2 allow packages with one source file 2018-06-04 17:01:46 -04:00
Scott Shawcroft
fe27c65e2a Ignore docs directory and allow packages to drop __init__.py
Python 3.3 made __init__.py optional by adding "namespace packages"
and MicroPython supports them.
2018-01-31 11:31:11 -08:00
Scott Shawcroft
b95dadd177 Fix common case. 2017-12-26 13:33:19 -08:00
Dan Halbert
4f264c7c56
Merge pull request #5 from tannewt/fix_no_releases
Determine version even when no tags exist in the repo.
2017-12-26 15:39:54 -05:00
Scott Shawcroft
5ebe5d4173 Determine version even when no tags exist in the repo. 2017-12-26 12:30:41 -08:00
Scott Shawcroft
477a7f7b55 Raise an error when multiple top-level py files exist.
We used to attempt to create a package for the files but this will
change the import behavior only when bundled. Instead, the error
prompts the library author to fix it by combining the files or
creating a package.
2017-12-26 11:45:30 -08:00
Scott Shawcroft
f4c4e16c8d Factor out version replacement so its shared between individual
files and files in a package.

This fixes the bytes-like error that happens when trying to build
packages.
2017-12-21 11:41:26 -08:00
Scott Shawcroft
1f7cc3e854 Add support for replacing placeholder version string with git tag
based versions that are semver compatible. If a prerelease
identifier is already present we'll bump ahead by adding `.plus.`
and the number of subsequent commits. If its not, we'll bump the
patch digit and call it `alpha.0` and add the remaining `.plus.` bit.

This also changes the file names of the mpy zips to include "-mpy-"
which should help space out two potentially confusing version strings
(that of circuitpython and that of the library.)
2017-12-20 11:52:10 -08:00
Dan Halbert
073de8bdb6 include only relative library pathname in .mpy file 2017-12-18 15:08:10 -08:00
Scott Shawcroft
ba07a7ad87 Use click to do proper argument parsing and rework for building
single library bundles.
2017-11-30 11:54:16 -08:00
Scott Shawcroft
38ffd939e8 Rework so we can package it on pip. 2017-11-22 15:40:51 -08:00
Renamed from circuitpython_build_tools.py (Browse further)