tazel
A build system for C, C++, Objective-C, Objective-C++ and Zig, with C# project files.
Clonegit clone https://git.progmasoft.com/tazel
Release Tazel 0.2.0
- Commit
592ca712a24a245a91c5729907ffca43055abee6- Author
- Leitwolf11 ·
- Parents
364cf8e51c6f
Changes
CHANGELOG.md | 2 ++ Directory.Build.props | 2 +- README.md | 6 +++--- docs/plugins.md | 2 +- tests/Progmasoft.Tazel.Tests/PluginTests.cs | 11 ++++++----- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8bbb24..d31d5fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ ## Unreleased +## 0.2.0 - 2026-11-27 + - `IncludeDirectories = ["."]` names the package's own directory, as `includes = ["."]` does in Bazel; it was refused. - Building for DragonFly BSD with zig says that zig brings no libc for it, instead of zig's own error, and what does diff --git a/Directory.Build.props b/Directory.Build.props index 8481182..005383c 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -18,7 +18,7 @@ <PackageLicenseExpression>MIT</PackageLicenseExpression> <PackageProjectUrl>https://tazel.net</PackageProjectUrl> <RepositoryUrl>https://github.com/Progmasoft/tazel</RepositoryUrl> - <Version>0.1.0</Version> + <Version>0.2.0</Version> <IsPackable>false</IsPackable> <!-- Tazel speaks English; the compilers' message translations are left out of what it ships. --> <SatelliteResourceLanguages>en</SatelliteResourceLanguages> diff --git a/README.md b/README.md index a5c13bf..cf876ed 100644 --- a/README.md +++ b/README.md @@ -56,9 +56,9 @@ Linux (`linux-x64`, `linux-arm64`, and `linux-musl-x64`, `linux-musl-arm64` for (`osx-arm64`, `osx-x64`) and Windows (`win-x64`, `win-arm64`), and a `.sha256sums` file to check them against: ```text -sha256sum --check --ignore-missing tazel-0.1.0.sha256sums -tar -xJf tazel-0.1.0-linux-x64.tar.xz -tazel-0.1.0-linux-x64/tazel version +sha256sum --check --ignore-missing tazel-0.2.0.sha256sums +tar -xJf tazel-0.2.0-linux-x64.tar.xz +tazel-0.2.0-linux-x64/tazel version ``` Put the unpacked directory on `PATH`. On Windows, unpack the `.zip` and run `tazel.exe`. Plugins are built with the diff --git a/docs/plugins.md b/docs/plugins.md index 508d517..5b9031d 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -16,7 +16,7 @@ dotnet pack -c Release -o out ``` ```xml -<Project Sdk="Progmasoft.Tazel.PluginSdk/0.1.0"> +<Project Sdk="Progmasoft.Tazel.PluginSdk/0.2.0"> <PropertyGroup> <TazelPluginGroup>com.example.tools</TazelPluginGroup> <TazelPluginName>greeter</TazelPluginName> diff --git a/tests/Progmasoft.Tazel.Tests/PluginTests.cs b/tests/Progmasoft.Tazel.Tests/PluginTests.cs index 1aca61e..0134f64 100644 --- a/tests/Progmasoft.Tazel.Tests/PluginTests.cs +++ b/tests/Progmasoft.Tazel.Tests/PluginTests.cs @@ -94,14 +94,15 @@ public sealed class PluginLoadingTests [Theory] [InlineData("""{"group":"com.example","name":"x","version":"1.0.0","pluginApi":"9.0.0","entryAssembly":"X.dll"}""", "was built against Progmasoft.Tazel.PluginApi 9.0.0")] - [InlineData("""{"group":"com.example","name":"x","version":"1.0","pluginApi":"0.1.0","entryAssembly":"X.dll"}""", "'1.0' is not a SemVer version")] - [InlineData("""{"group":"com..example","name":"x","version":"1.0.0","pluginApi":"0.1.0","entryAssembly":"X.dll"}""", "is not names joined by dots")] - [InlineData("""{"group":"com.example","name":"x","version":"1.0.0","pluginApi":"0.1.0","entryAssembly":"X.dll"}""", "names the entry assembly X.dll, which it does not hold")] + [InlineData("""{"group":"com.example","name":"x","version":"1.0","pluginApi":"@API@","entryAssembly":"X.dll"}""", "'1.0' is not a SemVer version")] + [InlineData("""{"group":"com..example","name":"x","version":"1.0.0","pluginApi":"@API@","entryAssembly":"X.dll"}""", "is not names joined by dots")] + [InlineData("""{"group":"com.example","name":"x","version":"1.0.0","pluginApi":"@API@","entryAssembly":"X.dll"}""", "names the entry assembly X.dll, which it does not hold")] [InlineData("""not json""", "cannot be read")] public async Task APluginArchiveIsChecked(string manifest, string message) { using var module = new TemporaryModule(); - module.Write("plugin/tazel-plugin.json", manifest); + // @API@ is the plugin API of this Tazel, so only what the case is about is wrong. + module.Write("plugin/tazel-plugin.json", manifest.Replace("@API@", Plugins.ApiVersion.ToString(3), StringComparison.Ordinal)); ModuleArchive.Write(Path.Combine(module.Root, "plugin"), "com.example.x-1.0.0", Path.Combine(module.Root, "plugins", "x.tazel.tar.xz"), ["tazel-plugin.json"]); module.Write("MODULE.csx", TemporaryModule.ModuleFile + "\nplugins = Plugins.Define(LocalPlugin.From(\"plugins/x.tazel.tar.xz\"));"); @@ -153,7 +154,7 @@ public sealed class PluginSdkTests </configuration> """); var hive = Path.Combine(work.Root, "hive"); - await Run(work.Root, isolated, "new", "install", Path.Combine(feed, "Progmasoft.Tazel.PluginTemplates.0.1.0.nupkg"), + await Run(work.Root, isolated, "new", "install", Path.Combine(feed, $"Progmasoft.Tazel.PluginTemplates.{Plugins.ApiVersion.ToString(3)}.nupkg"), "--debug:custom-hive", hive); await Run(work.Root, isolated, "new", "tazel-plugin", "-n", "Greeter", "--group", "com.example.tools", "--pluginName", "greeter", "--debug:custom-hive", hive);