Age | Commit message (Collapse) | Author |
|
These were needed by old versions of pyinstaller.
|
|
Allows building protos found in libraries by using ${PIOENV} substitutions like so:
`custom_nanopb_protos = +<.pio/libdeps/${PIOENV}/some_library/proto/*.proto>`
|
|
Bumps [grpcio](https://github.com/grpc/grpc) from 1.51.3 to 1.53.0.
- [Release notes](https://github.com/grpc/grpc/releases)
- [Changelog](https://github.com/grpc/grpc/blob/master/doc/grpc_release_schedule.md)
- [Commits](https://github.com/grpc/grpc/compare/v1.51.3...v1.53.0)
---
updated-dependencies:
- dependency-name: grpcio
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
|
|
Protoc version number seems to have dropped the last number,
match only first two in the regexp.
|
|
|
|
|
|
|
|
Needed for NAME_WLE (see commit 9cdc4cf2104ba1592).
Thanks for Ilya Maykov for noticing.
|
|
|
|
|
|
|
|
|
|
GitHub no longer offers the Ubuntu 18.04 runner.
|
|
Fixes the bazel build when using a standalone python interpreter
on arm macs.
The previous version of grpcio-tools is not available as a prebuilt
wheel for darwin-aarch64, leading to a source build.
Unfortunately the standalone python interpreters often have issues
building packages that contain native dependencies.
See https://github.com/bazelbuild/rules_python/issues/646 for more
context.
|
|
|
|
When bumping Nanopb, while having the previous version cached, the
generator files are not correctly copied during build.
CMake copy_directory does not seem to copy the content if the directory
does already exist.
By specifying that we want to copy the content of the directory
we can avoid this issue.
Review: Add comment
|
|
Bumps [setuptools](https://github.com/pypa/setuptools) from 60.2.0 to 65.5.1.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/CHANGES.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v60.2.0...v65.5.1)
---
updated-dependencies:
- dependency-name: setuptools
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
|
|
|
|
|
|
|
|
|
|
|
|
directory (#601)
When environment variable NANOPB_PB2_TEMP_DIR is defined, the generator will
store the autogenerated nanopb_pb2.py in a temporary directory. This can
be the value of the environment variable, if it is valid directory, or
otherwise system-wide temp directory is used.
This avoids polluting the source code folder with autogenerated file, and may avoid some version
incompatibility issues. By default the old behavior of storing nanopb_pb2.py under proto folder is
preserved.
|
|
- This commit mainly fixes #834 by placing path arguments of the Nanopb generator in the array separately to avoid possible issues if paths contain spaces
- Other minor improvements
|
|
|
|
|
|
|
|
|
|
Move extern up to accommodate enum functions
|
|
|
|
Relevant only for very old protoc versions where --nanopb_opt=
cannot be used, and --nanopb_out= parsing fails on colon.
I'm adding this just to be able to keep the regression test suite
running with protoc 3.0.0 also.
|
|
This reverts commit b945553bb3bf5098c2cb6260f113c53158937442.
--nanopb_opt isn't compatible with protoc 3.0, which is still being supported and covered by CI tests.
|
|
|
|
|
|
CMake build needs protoc for generating the nanopb_pb2.py file
for the generator. Previously it would look only in system path.
With this change, the wrapper script in generator directory is
preferred.
|
|
Allows passing flags to protoc when using it through nanopb_generator.py.
|
|
This fixes a problem with cmock, and additionally ensures that pb_release()
doesn't accidentally end up as no-op if user code is compiled with wrong flags.
|
|
On various platforms, passing a format string containing # and ""
is difficult for the --library-include-format generator argument.
This commit allows specifying the most common styles with the names
"bracket" and "quote".
Also unified the option parsing between protoc plugin and direct invocation modes.
|
|
Nanopb has traditionally supported spaces as separator in command
line arguments. Protoc uses comma as the separator.
There is automatic detection that tries to handle this, but previously
it got tripped on any space character in the arguments.
Changed the detection so that only space followed by dash is taken
as a space-separated argument.
Preferred usage through protoc is:
protoc --nanopb_out=outdir [--nanopb_opt=option] ['--nanopb_opt=option with spaces'] file.proto
|
|
Most tests don't need it, but on FreeBSD isnan() comes
from libm.
|
|
Run packaging system tests when files related to them change,
or always once a week. This avoids unnecessarily long testing
for each pull request. Scheduled runs make sure that any breakage
due to external dependency updates gets caught.
|
|
Instead of going through protoc, let nanopb_generator.py handle it.
Instead of constructing a string, create a list of arguments to avoid need for escaping.
|
|
|
|
|
|
Should help for many cases where other files do not know
what name mangling option an included file might be using.
|
|
Previously a custom stream callback could modify bytes_left,
causing the substraction to wrap.
|
|
Otherwise ends up as a nested C comment, which does not compile.
|
|
|
|
Previous toposort2() implementation unnecessarily reordered
message definitions even when there were no dependencies between them.
|
|
Wrong order of conditions in generator caused the fixed size constraint
to be ignored in data type declaration. Fixed and added unit test coverage.
|