From d3038ea3955ddf9ad4a29c6c3fed31de5608b4bf Mon Sep 17 00:00:00 2001 From: Allen Li Date: Tue, 19 Dec 2023 18:15:26 -0800 Subject: [PATCH] Add package version metadata Needed for a future commit to add package.el support. --- elisp/proto/generate.el | 2 ++ elisp/proto/proto.el | 2 ++ elisp/runfiles/runfiles.el | 2 ++ examples/BUILD | 1 + examples/lib-1.el | 2 ++ examples/lib-2-pkg.el | 15 +++++++++++++++ examples/subdir/lib-3.el | 2 ++ tests/test-lib.el | 2 ++ 8 files changed, 28 insertions(+) create mode 100644 examples/lib-2-pkg.el diff --git a/elisp/proto/generate.el b/elisp/proto/generate.el index 55d09458..8be2614e 100644 --- a/elisp/proto/generate.el +++ b/elisp/proto/generate.el @@ -14,6 +14,8 @@ ;; See the License for the specific language governing permissions and ;; limitations under the License. +;; Version: 0.1.0 + ;;; Commentary: ;; Generates Emacs Lisp bindings for a protocol buffer definition. diff --git a/elisp/proto/proto.el b/elisp/proto/proto.el index 4f1e1d75..1c1850b1 100644 --- a/elisp/proto/proto.el +++ b/elisp/proto/proto.el @@ -14,6 +14,8 @@ ;; See the License for the specific language governing permissions and ;; limitations under the License. +;; Version: 0.1.0 + ;;; Commentary: ;; Provides basic support for protocol buffers. diff --git a/elisp/runfiles/runfiles.el b/elisp/runfiles/runfiles.el index de4b0f38..694830cf 100644 --- a/elisp/runfiles/runfiles.el +++ b/elisp/runfiles/runfiles.el @@ -14,6 +14,8 @@ ;; See the License for the specific language governing permissions and ;; limitations under the License. +;; Version: 0.1.0 + ;;; Commentary: ;; This library implements support for Bazel runfiles. diff --git a/examples/BUILD b/examples/BUILD index afc875fb..8e70b720 100644 --- a/examples/BUILD +++ b/examples/BUILD @@ -49,6 +49,7 @@ elisp_library( srcs = [ "lib-2-a.el", "lib-2-b.el", + "lib-2-pkg.el", ":module", ], fatal_warnings = False, diff --git a/examples/lib-1.el b/examples/lib-1.el index 9c39ff6b..63df7e73 100644 --- a/examples/lib-1.el +++ b/examples/lib-1.el @@ -14,6 +14,8 @@ ;; See the License for the specific language governing permissions and ;; limitations under the License. +;; Version: 0.1.0 + ;;; Commentary: ;; Example library. diff --git a/examples/lib-2-pkg.el b/examples/lib-2-pkg.el new file mode 100644 index 00000000..06374183 --- /dev/null +++ b/examples/lib-2-pkg.el @@ -0,0 +1,15 @@ +;; Copyright 2023 Google LLC +;; +;; Licensed under the Apache License, Version 2.0 (the "License"); +;; you may not use this file except in compliance with the License. +;; You may obtain a copy of the License at +;; +;; https://www.apache.org/licenses/LICENSE-2.0 +;; +;; Unless required by applicable law or agreed to in writing, software +;; distributed under the License is distributed on an "AS IS" BASIS, +;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +;; See the License for the specific language governing permissions and +;; limitations under the License. + +(define-package "lib-2" "0.1.0") diff --git a/examples/subdir/lib-3.el b/examples/subdir/lib-3.el index 245a3e77..ec0df78e 100644 --- a/examples/subdir/lib-3.el +++ b/examples/subdir/lib-3.el @@ -14,6 +14,8 @@ ;; See the License for the specific language governing permissions and ;; limitations under the License. +;; Version: 0.1.0 + ;;; Commentary: ;; Example library in a subdirectory. diff --git a/tests/test-lib.el b/tests/test-lib.el index ddb06643..7b28fba0 100644 --- a/tests/test-lib.el +++ b/tests/test-lib.el @@ -14,6 +14,8 @@ ;; See the License for the specific language governing permissions and ;; limitations under the License. +;; Version: 0.1.0 + ;;; Commentary: ;; Example functions to test coverage reporting. This has to be in a separate