Skip to content

Commit c76c663

Browse files
authored
fix: add Apache-2.0 license metadata to all packages (#528)
Several packages were missing explicit license fields or had incorrect license metadata: - python/handlebarrz: add license = "Apache-2.0" and License classifier - js: fix license from ISC (npm default) to Apache-2.0 - root package.json: add license field - packages/treesitter: fix license from MIT to Apache-2.0 - python/dotpromptz: add License classifier - python/dotpromptz/tests/smoke: add License classifier - python/handlebarrz/smoke_tests: add license field - dart/dotprompt: add license field - dart/handlebarrz: add license field All packages in this repo are Apache-2.0 licensed. The ISC license on the JS package and MIT on treesitter were leftover defaults from npm init and the tree-sitter template respectively.
1 parent 37d539c commit c76c663

9 files changed

Lines changed: 12 additions & 4 deletions

File tree

dart/dotprompt/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ description: >-
2121
for Generative AI. This library provides parsing, rendering, and management
2222
of .prompt files with YAML frontmatter and Handlebars templating.
2323
version: 0.0.1
24+
license: Apache-2.0
2425
homepage: https://github.com/google/dotprompt
2526
repository: https://github.com/google/dotprompt
2627
documentation: https://google.github.io/dotprompt/

dart/handlebarrz/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
name: handlebarrz
1818
description: A pure Dart implementation of Handlebars template engine.
1919
version: 0.0.1
20+
license: Apache-2.0
2021
repository: https://github.com/google/dotprompt
2122
homepage: https://github.com/google/dotprompt/tree/main/dart/handlebarrz
2223

js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"templating",
2525
"handlebars"
2626
],
27-
"author": "",
28-
"license": "ISC",
27+
"author": "Google LLC",
28+
"license": "Apache-2.0",
2929
"devDependencies": {
3030
"@types/node": "25.0.10",
3131
"@typescript/native-preview": "7.0.0-dev.20260122.3",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"license": "Apache-2.0",
23
"packageManager": "pnpm@10.25.0",
34
"scripts": {
45
"build": "pnpm -r run --if-present build",

packages/treesitter/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ requires = ["setuptools>=42", "wheel"]
2121
[project]
2222
classifiers = [
2323
"Intended Audience :: Developers",
24-
"License :: OSI Approved :: MIT License",
24+
"License :: OSI Approved :: Apache Software License",
2525
"Topic :: Software Development :: Compilers",
2626
"Topic :: Text Processing :: Linguistic",
2727
"Typing :: Typed",
2828
]
2929
description = "Dotprompt grammar for tree-sitter"
3030
keywords = ["incremental", "parsing", "tree-sitter", "dotprompt"]
31-
license.text = "MIT"
31+
license = "Apache-2.0"
3232
name = "tree-sitter-dotprompt"
3333
readme = "README.md"
3434
requires-python = ">=3.8"

python/dotpromptz/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ classifiers = [
2121
"Environment :: Console",
2222
"Environment :: Web Environment",
2323
"Intended Audience :: Developers",
24+
"License :: OSI Approved :: Apache Software License",
2425
"Operating System :: OS Independent",
2526

2627
"Programming Language :: Python",

python/dotpromptz/tests/smoke/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ classifiers = [
2020
"Environment :: Console",
2121
"Environment :: Web Environment",
2222
"Intended Audience :: Developers",
23+
"License :: OSI Approved :: Apache Software License",
2324
"Operating System :: OS Independent",
2425

2526
"Programming Language :: Python",

python/handlebarrz/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
authors = [{ name = "Yesudeep Mangalapilly", email = "yesudeep@google.com" }]
1919
classifiers = [
2020
"Development Status :: 3 - Alpha",
21+
"License :: OSI Approved :: Apache Software License",
2122
"Programming Language :: Python :: 3",
2223
"Programming Language :: Python :: 3.10",
2324
"Programming Language :: Python :: 3.11",
@@ -32,6 +33,7 @@ dependencies = [
3233
"structlog>=25.2.0",
3334
]
3435
description = "Handlebars library for Python dotpromptz based on handlebars-rust."
36+
license = "Apache-2.0"
3537
name = "dotpromptz-handlebars"
3638
readme = "README.md"
3739
requires-python = ">=3.10"

python/handlebarrz/smoke_tests/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
[project]
1818
authors = [{ name = "Abraham Lazaro", email = "lazaromartinez@google.com" }]
1919
dependencies = ["dotpromptz-handlebars>=0.1.3"]
20+
license = "Apache-2.0"
2021
name = "handlebarrz-smoke-tests"
2122
readme = "README.md"
2223
requires-python = ">=3.10"

0 commit comments

Comments
 (0)