Commit graph

29 commits

Author SHA1 Message Date
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
Dan Halbert
0684d8c793
Merge pull request #6 from tannewt/error_on_multipy
Raise an error when multiple top-level py files exist.
2017-12-26 15:38:39 -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
Dan Halbert
88731d5c80
Merge pull request #3 from tannewt/semver_versions
Add support for replacing placeholder version string with git tag
2017-12-20 18:04:24 -05:00
Scott Shawcroft
6dac14141a Add requirements. 2017-12-20 13:43:53 -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
0ebd43007b Update pip package name used when determining version. 2017-12-06 14:45:10 -08:00
Scott Shawcroft
285f5fee4e Rename to circuitpython-build-tools because it does work locally with a compiler. 2017-12-06 11:03:08 -08:00
Scott Shawcroft
afc8951686 Be specific in target versions and remove 1.x support. 2017-12-06 10:55:39 -08:00
Scott Shawcroft
3be916b8f0 Add setup details to the README. 2017-11-30 17:58:52 -08:00
Scott Shawcroft
adf56bf608 Explicitly add scripts package. 2017-11-30 12:44:24 -08:00
Scott Shawcroft
b92c89cc75 Remove part added for click thats unneeded 2017-11-30 12:19:44 -08:00
Scott Shawcroft
96c40e2c1e fixup build_mpy_cross location 2017-11-30 12:02:51 -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
84dfc53db1 Build mpy-cross ourselves when not on Travis. Also add our version
into the bundle.
2017-11-28 15:53:50 -08:00
Scott Shawcroft
d09d1919b2 Make zip filename prefix configurable. 2017-11-28 15:16:21 -08:00
Scott Shawcroft
844a25ba35 Skip cleanup sso the mpy-cross files are left as is. 2017-11-23 09:29:40 -08:00
Scott Shawcroft
f45047880b Add deploy configuration. 2017-11-22 18:00:28 -08:00
Scott Shawcroft
da4ab53ddc Build tweaks. 2017-11-22 17:26:13 -08:00
Scott Shawcroft
c53e6eb23a Fix output directory creation. 2017-11-22 16:19:41 -08:00
Scott Shawcroft
90d4255ca5 Use setuptools. 2017-11-22 15:47:40 -08:00
Scott Shawcroft
38ffd939e8 Rework so we can package it on pip. 2017-11-22 15:40:51 -08:00
Scott Shawcroft
aae59c9b39 Don't mpy __init__.py and saner build directory. 2017-11-21 19:25:26 -08:00
Scott Shawcroft
e09d82af31 Tweak name of Python bundle. 2017-11-21 18:46:26 -08:00
Scott Shawcroft
9301c956a4 Initial version. Still subject to change. 2017-11-16 18:47:11 -08:00