diff --git a/python/pyproject.toml b/python/pyproject.toml index d25570b6..eb72978d 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -8,8 +8,6 @@ authors = [ maintainers = [ { name = "Nicholas Lambourne", email = "dev@ndl.im" }, ] -homepage = "https://github.com/nicklambourne/slackblocks" -repository = "https://github.com/nicklambourne/slackblocks" license = { text = "MIT" } readme = "README.md" keywords = [ @@ -33,6 +31,14 @@ classifiers = [ "Topic :: Communications :: Chat", ] requires-python = ">=3.10" + +[project.urls] +Homepage = "https://github.com/nicklambourne/slackblocks" +Repository = "https://github.com/nicklambourne/slackblocks" +Documentation = "https://nicklambourne.github.io/slackblocks/" +Changelog = "https://github.com/nicklambourne/slackblocks/blob/master/python/CHANGELOG.md" + +[tool.hatch.build.targets.sdist] exclude = ["test/**", "docs/**"] [dependency-groups] diff --git a/typescript/nicklambourne-slackblocks-2.1.0.tgz b/typescript/nicklambourne-slackblocks-2.1.0.tgz new file mode 100644 index 00000000..a68f1b43 Binary files /dev/null and b/typescript/nicklambourne-slackblocks-2.1.0.tgz differ diff --git a/typescript/package.json b/typescript/package.json index 062f3b6c..7a3bc6a1 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -42,7 +42,7 @@ "typescript", "validation" ], - "slackblocksSpecVersion": "1.0.0", + "slackblocksSpecVersion": "1.0.1", "dependencies": { "@slack/types": "^3.0.0" }, diff --git a/typescript/test/conformance.test.ts b/typescript/test/conformance.test.ts index eca0550d..8e065484 100644 --- a/typescript/test/conformance.test.ts +++ b/typescript/test/conformance.test.ts @@ -346,6 +346,9 @@ function constructFixture(id: string, expected: FixtureInput): unknown { } const manifest = readJson(resolve(SPEC_ROOT, "manifest.json")); +const packageJson = readJson<{ slackblocksSpecVersion: string }>( + resolve(dirname(fileURLToPath(import.meta.url)), "../package.json"), +); const coverage = readJson(resolve(SPEC_ROOT, "coverage.json")); function scalarPaths(value: unknown, prefix: string[] = []): string[] { @@ -360,6 +363,7 @@ function scalarPaths(value: unknown, prefix: string[] = []): string[] { describe("valid conformance corpus", () => { it("declares the current spec and a non-empty fixture corpus", () => { expect(manifest.spec_version).toBe(specVersion); + expect(packageJson.slackblocksSpecVersion).toBe(specVersion); expect(manifest.fixtures.length).toBeGreaterThan(0); expect(new Set(manifest.fixtures.map(({ id }) => id)).size).toBe( manifest.fixtures.length,