mirror of
https://github.com/google/pebble
synced 2026-10-18 09:14:11 +02:00
Import of the watch repository from Pebble
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
rm -rf build
|
||||
mkdir build
|
||||
mkdir -p dist
|
||||
|
||||
(cd "$(git rev-parse --show-toplevel)"; git archive HEAD) > build/tmp.tar
|
||||
cd build
|
||||
ln -s ../dist .
|
||||
|
||||
mkdir nanopb
|
||||
tar xf tmp.tar README.md generator
|
||||
mv generator nanopb/
|
||||
touch nanopb/__init__.py nanopb/generator/__init__.py
|
||||
make -C nanopb/generator/proto
|
||||
cp ../pyproject.toml .
|
||||
sed -i -e 's/\(version =.*\)-dev.*/\1-dev'$(git rev-list HEAD --count)'"/' pyproject.toml
|
||||
poetry build
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
[tool.poetry]
|
||||
name = "nanopb"
|
||||
version = "0.4.6"
|
||||
description = "Nanopb is a small code-size Protocol Buffers implementation in ansi C. It is especially suitable for use in microcontrollers, but fits any memory restricted system."
|
||||
authors = ["Petteri Aimonen <[email protected]>"]
|
||||
license = "Zlib"
|
||||
repository = "https://github.com/nanopb/nanopb/"
|
||||
readme = "README.md"
|
||||
homepage = "https://jpa.kapsi.fi/nanopb/"
|
||||
documentation = "https://jpa.kapsi.fi/nanopb/docs/index.html"
|
||||
keywords = ["protobuf", "protoc"]
|
||||
classifiers = ["Topic :: Software Development :: Build Tools"]
|
||||
include = ["nanopb/**/*", "nanopb/__init__.py"]
|
||||
|
||||
[tool.poetry.scripts]
|
||||
nanopb_generator = "nanopb.generator.nanopb_generator:main_cli"
|
||||
protoc-gen-nanopb = "nanopb.generator.nanopb_generator:main_plugin"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = ">=2.7"
|
||||
protobuf = ">=3.19"
|
||||
grpcio-tools = ">=1.46.0"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
|
||||
[tool.poetry.extras]
|
||||
grpcio-tools = ["grpcio-tools"]
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry>=0.12"]
|
||||
build-backend = "poetry.masonry.api"
|
||||
Reference in New Issue
Block a user