Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
36 lines (32 loc) · 1.52 KB
/
Copy pathpyproject.toml
File metadata and controls
36 lines (32 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[project]
name = "coderifts-verifier"
version = "0.2.0"
description = "Offline verifier for CodeRifts chain receipts and DSSE/in-toto envelopes. Ed25519, no network."
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.10"
# A real dependency is correct here: this package verifies signatures. It is a
# different artifact from the coderifts SDK, which is deliberately crypto-free
# and talks to the API over `requests`.
dependencies = ["cryptography>=41"]
[project.urls]
Homepage = "https://github.com/coderifts/receipt-verifier"
[tool.setuptools]
packages = ["coderifts_verifier"]
# P-2 -- the vendored key snapshot must ship WITH the wheel, or the offline default has nothing
# to read: the package would install, the CLI would run, and the no-flag path would fail at
# verify time on an end user's machine rather than in our tests.
#
# WARNING -- BACKEND-SPECIFIC, AND THE FIRST ATTEMPT WAS WRONG. A
# `[tool.hatch.build.targets.wheel.force-include]` block was written here first and was INERT:
# this project builds with SETUPTOOLS (see [build-system] above), so a hatch table is config for
# a backend that never runs. An inert build setting is worse than a missing one, because the
# repository looks as though the question was handled. `tests/test_vendored_keys.py` asserts the
# declaration is the setuptools one.
include-package-data = true
[tool.setuptools.package-data]
coderifts_verifier = ["keys/*.json", "keys/*.sha256"]