Skip to content

Commit

Permalink
Update projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaMaul committed Oct 8, 2024
1 parent d3d2651 commit db772f4
Show file tree
Hide file tree
Showing 21 changed files with 653 additions and 224 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ all:

.PHONY: dev
dev: $(VENV)/pyvenv.cfg
maturin develop --uv
@. $(VENV_BIN)/activate && maturin develop --uv

$(VENV)/pyvenv.cfg: pyproject.toml
uv venv $(VENV)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protocol described in the RFC 3161.

# License

TBD
Apache 2.0

# Authors
Trail of Bits
13 changes: 13 additions & 0 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,16 @@
openssl ts -query -data README.md -no_nonce -sha512 -cert -out file.tsq
```

# Updating fixtures

As we use `Sigstore TSA`](https://github.com/sigstore/timestamp-authority),
we generate the fixture against it.

Download the binaries or build them and run the server.


## Run the script
```shell
# Warning, this requires sigstore-tsp, which is not yet available
uv run scripts/update_fixtures.py
```
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ module-name = "sigstore_tsp._rust"

[tool.ruff]
line-length = 100
include = ["src/**/*.py"]
include = ["src/**/*.py", "test/**/*.py", "scripts/*.py"]
target-version = "py39"

[tool.ruff.lint]
select = ["E", "F", "I", "W", "UP", "TCH"]

[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
]
87 changes: 87 additions & 0 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ hex = "0.4"
sha2 = "0.10.8"
rand = "0.8.5"
cryptography-x509 = { git = "https://github.com/pyca/cryptography.git"}
openssl = "0.10.66"

[features]
extension-module = ["pyo3/extension-module"]
Loading

0 comments on commit db772f4

Please sign in to comment.