Skip to content

Commit

Permalink
Use in-toto-attestation v0.9.2
Browse files Browse the repository at this point in the history
Signed-off-by: Marcela Melara <[email protected]>
  • Loading branch information
marcelamelara committed Aug 29, 2023
1 parent 016fcc3 commit 49a2ff4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

VENVDIR ?= ./scai-venv
INTOTODIR ?= ../attestation

PY_VERSION=${shell python3 --version | sed 's/Python \(3\.[0-9]\).*/\1/'}
PYTHON_DIR=$(VENVDIR)/lib/python$(PY_VERSION)/site-packages/
Expand All @@ -24,7 +23,7 @@ $(PYTHON_DIR):
. $(abspath $(VENVDIR)/bin/activate) && pip install --upgrade pip
. $(abspath $(VENVDIR)/bin/activate) && pip install --upgrade wheel
. $(abspath $(VENVDIR)/bin/activate) && pip install --upgrade in-toto
. $(abspath $(VENVDIR)/bin/activate) && pip install --upgrade ${INTOTODIR}/python
. $(abspath $(VENVDIR)/bin/activate) && pip install --upgrade in-toto-attestation>=0.9.2
. $(abspath $(VENVDIR)/bin/activate) && pip install --upgrade ./python

$(VENVDIR):
Expand Down
11 changes: 2 additions & 9 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,11 @@ are required on a minimal Ubuntu system. We assume Ubuntu 20.04 or higher.
sudo apt install git python3 python3-dev python3-venv virtualenv build-essential
```

Then, clone the in-toto Attestation Framework repository, on which the
SCAI tools are built

```
git clone https://github.com/in-toto/attestation.git
```

Finally, set up the Python virtualenv for the SCAI CLI tools from this
Then, set up the Python virtualenv for the SCAI CLI tools from this
repo's root directory.

```
make VENVDIR=<dest dir> INTOTODIR=<path to in-toto attestation repo> py-venv
make VENVDIR=<dest dir> py-venv
```

## Basic CLI Invocation
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# scai library python requirements
in-toto-attestation>=0.9.1
in-toto-attestation>=0.9.2

0 comments on commit 49a2ff4

Please sign in to comment.