Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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]
Expand Down
Binary file added typescript/nicklambourne-slackblocks-2.1.0.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"typescript",
"validation"
],
"slackblocksSpecVersion": "1.0.0",
"slackblocksSpecVersion": "1.0.1",
"dependencies": {
"@slack/types": "^3.0.0"
},
Expand Down
4 changes: 4 additions & 0 deletions typescript/test/conformance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ function constructFixture(id: string, expected: FixtureInput): unknown {
}

const manifest = readJson<Manifest>(resolve(SPEC_ROOT, "manifest.json"));
const packageJson = readJson<{ slackblocksSpecVersion: string }>(
resolve(dirname(fileURLToPath(import.meta.url)), "../package.json"),
);
const coverage = readJson<Coverage>(resolve(SPEC_ROOT, "coverage.json"));

function scalarPaths(value: unknown, prefix: string[] = []): string[] {
Expand All @@ -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,
Expand Down