Home
last modified time | relevance | path

Searched +full:python +full:- +full:version (Results 1 – 20 of 20) sorted by relevance

/nanopb-latest/.github/workflows/
Dtrigger_on_code_change.yml6 - '**.c'
7 - '**.h'
8 - '**.py'
9 - '**.sh'
10 - '**.yml'
11 - '**.proto'
12 - '**.mk'
13 - '**.cmake'
16 - '**.c'
17 - '**.h'
[all …]
Dcmake.yml1 name: Test CMake-based installation and compilation
8 - '**CMakeLists**'
9 - '**cmake**'
12 - '**CMakeLists**'
13 - '**cmake**'
18 runs-on: ubuntu-22.04
20 - uses: actions/checkout@v4
22 - name: Install dependencies
24 python3 -m pip install protobuf grpcio-tools
26 - name: Build with CMake
[all …]
Dbinary_packages.yml8 - 'master'
10 - '*'
15 runs-on: ubuntu-20.04
18 - name: Check out code from GitHub
22 fetch-depth: "0"
24 - name: Setup Python
25 uses: actions/setup-python@v5
27 python-version: '3.8'
29 - name: Install dependencies
31 python3 -m pip install --user --upgrade scons protobuf grpcio-tools pyinstaller
[all …]
/nanopb-latest/tools/
Dmake_mac_package.sh6 # Requires: protobuf, python-protobuf, pyinstaller
8 set -e
9 set -x
11 VERSION=`git describe --always`-macosx-x86
12 DEST=dist/$VERSION
14 rm -rf $DEST
15 mkdir -p $DEST
18 git archive HEAD | tar x -C $DEST
20 # Rebuild the Python .proto files and .pyc
23 # Package the Python libraries
[all …]
Dmake_linux_package.sh6 # Requires: protobuf, python-protobuf, pyinstaller
8 set -e
9 set -x
11 VERSION=`git describe --always`-linux-x86
12 DEST=dist/$VERSION
14 rm -rf $DEST
15 mkdir -p $DEST
18 git archive HEAD | tar x -C $DEST
20 # Rebuild the Python .proto files and .pyc
23 # Package the Python libraries
[all …]
Dmake_windows_package.sh7 set -e
8 set -x
10 VERSION=`git describe --always`-windows-x86
11 DEST=dist/$VERSION
13 rm -rf $DEST
14 mkdir -p $DEST
17 git archive HEAD | tar x -C $DEST
19 # Rebuild the Python .proto files and .pyc
22 # Package the Python libraries
23 ( cd $DEST/generator; python3 -m PyInstaller nanopb_generator.py )
[all …]
/nanopb-latest/
DCMakeLists.txt1 cmake_minimum_required(VERSION 3.14.0)
3 project(nanopb VERSION 1.0.0 LANGUAGES C)
5 set(nanopb_VERSION_STRING ${PROJECT_NAME}-${${PROJECT_NAME}_VERSION}-dev)
8 string(REPLACE "nanopb-" "" nanopb_VERSION ${nanopb_VERSION_STRING})
17 set(nanopb_PYTHON_INSTDIR_OVERRIDE "" CACHE PATH "Override the default python installation director…
19 find_program(nanopb_PROTOC_PATH protoc PATHS generator-bin generator NO_DEFAULT_PATH)
45 # Determine Python module installation path
47 find_package(Python REQUIRED COMPONENTS Interpreter)
52 message(STATUS "Python install dir: ${PYTHON_INSTDIR}")
54 # Package nanopb generator as Python module 'nanopb'
[all …]
DCHANGELOG.txt1 nanopb-0.4.9.1 (2024-12-01)
2 Fix memory not released on error return from pb_decode_ex() (GHSA-xwqq-qxmw-hj5r)
4 Fix compiler error with enums and --c-style (#1014)
5 Fix version conflict with bazel build rules (#1034)
7 nanopb-0.4.9 (2024-09-19)
9 Fix Python pkg_resources deprecation (#887)
26 nanopb-0.4.8 (2023-11-11)
29 Use UTF-8 encoding for generated files irrespective of locale (#868)
45 nanopb-0.4.7 (2022-12-11)
51 Fix wrong format in Python Poetry project file (#811)
[all …]
DREADME.md1 Nanopb - Protocol Buffers for Embedded Systems
7 Nanopb is a small code-size Protocol Buffers implementation in ansi C. It is
15 * **Stable version downloads:** https://jpa.kapsi.fi/nanopb/download/
16 * **Pre-release binary packages:** https://github.com/nanopb/nanopb/actions/workflows/binary_packag…
20 ------------------------
33 ----------------------
38 python generator/nanopb_generator.py myprotocol.proto # For source checkout
39 generator-bin/nanopb_generator myprotocol.proto # For binary package
41 (Note: For instructions for nanopb-0.3.9.x and older, see the documentation
42 of that particular version [here](https://github.com/nanopb/nanopb/blob/maintenance_0.3/README.md))
[all …]
/nanopb-latest/generator/proto/
D_utils.py8 # type: () -> bool
9 """ checks if grpcio-tools protoc is installed"""
42 # Stand-alone script
53 # type: (list) -> typing.Any
57 This routine will use grpcio-provided protoc if it exists,
58 using system-installed protoc as a fallback.
65 if not [x for x in argv if x.startswith('-I')]:
66 argv.append("-I.")
70 argv.append('-I' + incpath)
82 sys.stderr.write("Using grpcio-tools protoc from " + grpc_tools.protoc.__file__ + "\n")
[all …]
D__init__.py1 '''This file dynamically builds the proto definitions for Python.'''
14 '''Try to build a .proto file for python-protobuf.
20 "--python_out={}".format(dirname),
22 "-I={}".format(dirname),
26 # grpcio-tools has an extra CLI argument
28 cmd.append("-I={}".format(_utils.get_grpc_tools_proto_path()))
40 # To work, the generator needs python-protobuf built version of nanopb.proto.
45 # 3) Use protoc to build it, but store only temporarily in system-wide temp folder
59 tmpdir = None # Use system-wide temp dir
77 "Verify that python-protobuf and protoc versions match.\n")
[all …]
/nanopb-latest/extra/
Dnanopb.mk18 # Check whether to use binary version of nanopb_generator or the
19 # system-supplied python interpreter.
20 ifneq "$(wildcard $(NANOPB_DIR)/generator-bin)" ""
22 PROTOC = $(NANOPB_DIR)/generator-bin/protoc
28 PROTOC = python $(NANOPB_DIR)/generator/protoc
36 $(PROTOC) $(PROTOC_OPTS) --nanopb_out=. $<
39 $(PROTOC) $(PROTOC_OPTS) --nanopb_out=. $<
DFindNanopb.cmake7 # PROTOBUF_SRC_ROOT_FOLDER - When compiling with MSVC, if this cache variable is set
8 # the protobuf-default VS project build locations
12 # NANOPB_IMPORT_DIRS - List of additional directories to be searched for
15 # NANOPB_OPTIONS - List of options passed to nanopb.
17 # Nanopb_FIND_COMPONENTS - List of options to append to NANOPB_OPTIONS without the
18 # leading '--'. This should not manually be set, but allows
20 # 'find_package(Nanopb REQUIRED COMPONENTS cpp-descriptors)'
21 # is equivalent to setting NANOPB_OPTIONS to --cpp-descriptors.
23 # NANOPB_DEPENDS - List of files to be used as dependencies
28 # NANOPB_GENERATE_CPP_APPEND_PATH - By default -I will be passed to protoc
[all …]
/nanopb-latest/extra/poetry/
Dpyproject.toml3 version = "1.0.0-dev"
4 description = "Nanopb is a small code-size Protocol Buffers implementation in ansi C. It is especia…
17 protoc-gen-nanopb = "nanopb.generator.nanopb_generator:main_plugin"
20 python = ">=3.8"
22 grpcio-tools = {version=">=1.46.0", optional=true}
24 [tool.poetry.dev-dependencies]
27 grpcio-tools = ["grpcio-tools"]
29 [build-system]
31 build-backend = "poetry.masonry.api"
/nanopb-latest/docs/
Dmigration.md9 Nanopb-1.0.0 (2025-xx-xx)
10 -------------------------
12 ### Remove Python 2 support
14 **Rationale:** Python 2 interpreter was deprecated in 2020. For backward
16 Python 2 for the 0.4.x series. That has required several tricks that
19 **Changes:** Removed Python 2 support files and code hacks needed to
22 **Required actions:** Upgrade to Python 3 and ensure `python-protobuf`
25 Nanopb-0.4.9 (2024-09-19)
26 -------------------------
31 path. This was often an outdated version installed from package manager, and
[all …]
Dindex.md3 Nanopb is an ANSI-C library for encoding and decoding messages in
4 Google's [Protocol Buffers](https://developers.google.com/protocol-buffers/docs/reference/overview)
6 suitable for 32-bit microcontrollers.
8 Documentation version
9 ---------------------
16 -----------------
23 The high-level encoding and decoding functions take a pointer to
33 - pb.h
34 - pb_common.h and pb_common.c (always needed)
35 - pb_decode.h and pb_decode.c (needed for decoding messages)
[all …]
Dconcepts.md14 Nanopb comes with a Python script to generate `.pb.c` and
22 message. You can install either `grpcio-tools` Python
24 itself from `protobuf-compiler` distribution package.
25 Generally the Python package is recommended, because nanopb requires
26 protoc version 3.6 or newer to support all features, and some distributions come with an older
27 version.
44 options](reference.html#proto-file-options) section in the reference
103 FILE *file = (FILE*) stream->state;
137 FILE *file = (FILE*)stream->state;
142 while (count-- && fgetc(file) != EOF);
[all …]
Dreference.md8 1. Using the -D switch on the C compiler command line.
19 * `PB_SYSTEM_HEADER`: Replace the standards header files with a single system-specific header file.…
20 … `PB_WITHOUT_64BIT`: Disable support of 64-bit integer fields, for old compilers or for a slight s…
22 * `PB_CONVERT_DOUBLE_FLOAT`: Convert doubles to floats for platforms that do not support 64-bit `do…
23 * `PB_VALIDATE_UTF8`: Check whether incoming strings are valid UTF-8 sequences. Adds a small perfor…
29 recognized automatically by C-preprocessor `#if`-directives in the
56 converted using the nanopb-generator.py. There are three ways to define
89 - Lines starting with `#` or `//` are regarded as comments.
90 - Blank lines are ignored.
91 - All other lines should start with a field name pattern, followed by
[all …]
/nanopb-latest/examples/conan_dependency/
Dconanfile.py5 version = "1.0.0" variable in SimpleProtosConan
21 # Includes the python libraries that `bin` reaches out to
27 python_path=f"PYTHONPATH={nanopb_package_root}/local/lib/python3.10/dist-packages"
28 plugin=f"--plugin={nanopb_package_root}/bin/protoc-gen-nanopb"
30 output=f"--nanopb_out={self.source_folder}/src"
31 proto_flags=f"-I {self.source_folder}/protos simple.proto"
/nanopb-latest/generator/
Dnanopb_generator.py2 # kate: replace-tabs on; indent-width 4;
7 nanopb_version = "nanopb-1.0.0-dev"
20 # Python-protobuf breaks easily with protoc version differences if
21 # using the cpp or upb implementation. Force it to use pure Python
24 os.putenv("PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION", "python")
25 os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python"
42 *** Could not import the Google protobuf Python libraries ***
45 *** pip install protobuf grpcio-tools ***
50 # GetMessageClass() is used by modern python-protobuf (around 5.x onwards)
51 # Retain compatibility with older python-protobuf versions.
[all …]