Damien George
69661f3343
all: Reformat C and Python source code with tools/codeformat.py.
This is run with uncrustify 0.70.1, and black 19.10b0.
5 years ago
Damien George
7cd59c5bc3
py/mpconfig: Move MICROPY_VERSION macros to static ones in mpconfig.h.
It's more robust to have the version defined statically in a header file,
rather than dynamically generating it via git using a git tag. In case
git doesn't exist, or a different source control tool is used, it's
important to still have the uPy version number available.
6 years ago
Damien George
6af4515969
py: Use "GEN" consistently for describing files generated in the build.
7 years ago
Damien George
b51919f5b7
py/makeversionhdr.py: Update to parse new release line in docs/conf.py.
The line in docs/conf.py with the release/version number was recently
changed and this patch makes the makeversionhdr.py script work again.
7 years ago
omtinez
17c649da3d
py/makeversionhdr.py: Work with backslashes in paths.
This script may be called by Windows IDEs (e.g. Visual Studio) and be passed
paths with backslashes.
9 years ago
Damien George
94ef8879cd
py/makeversionhdr.py: Use returncode attr to be Python2.7 compat.
9 years ago
Damien George
0d5d16074f
py/makeversionhdr.py: Fallback to using docs version if no git repo.
Addresses issue #1420 .
9 years ago
Damien George
26b512ea1b
py: Get makeqstrdata.py and makeversionhdr.py running under Python 2.6.
These scripts should run under as wide a range of Python versions as
possible.
10 years ago
Damien George
1a97f6721f
py: Make makeversionhdr.py extract version from docs/conf.py if no git.
Addresses issue #1285 .
10 years ago
Damien George
95f53461c2
py: Replace py-version.sh with makeversionhdr.py, written in Python.
Also rename py-version.h to mpversion.h for consistency with mpconfig.h.
10 years ago