Skip to content

Commit

Permalink
fix: release info in docs (#1794)
Browse files Browse the repository at this point in the history
* Fix release info in docs.

Signed-off-by: Lou DeGenaro <[email protected]>

* add trestle v0 and generalize current version to 3.x.x

Signed-off-by: Lou DeGenaro <[email protected]>

* specify 0.3.7 explicitly

Signed-off-by: Lou DeGenaro <[email protected]>

* fix: version is 0.37.x

Signed-off-by: Lou DeGenaro <[email protected]>

---------

Signed-off-by: Lou DeGenaro <[email protected]>
  • Loading branch information
degenaro authored Jan 17, 2025
1 parent 8171357 commit bdb6444
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 8 deletions.
60 changes: 55 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,61 @@ Trestle provides tooling to help orchestrate the compliance process across a num

## Important Note:

The current version of trestle supports NIST OSCAL 1.0.0-4. There was a breaking change in OSCAL moving from
version 1.0.0 to 1.0.2 mainly due to `prop` becoming `props` in AssessmentResults. As a result, the current development path of trestle requires OSCAL 1.0.4, but for those who require OSCAL 1.0.0 please use trestle version 0.37.x. That version is stable but will not have any features added, and we encourage users to move to OSCAL 1.0.4.
The current version of trestle 3.x supports NIST OSCAL 1.1.2.
Below shows trestle versions correspondence with OSCAL versions:

OSCAL version 1.0.0 files are still handled on import but any AssessmentResults must conform to the OSCAL 1.0.4 schema, with
props instead of prop. And all files created by trestle will be output as OSCAL version 1.0.4.
```
trestle 3.x => OSCAL 1.1.2
trestle 2.x => OSCAL 1.0.4
trestle 1.x => OSCAL 1.0.2
trestle 0.37.x => OSCAL 1.0.0
```

Visit [pypi](https://pypi.org/project/compliance-trestle/#history) for trestle release history and downloads.

## Notes for install of current and older versions of trestle

#### Install of trestle 3.x

Use python 3.11.

```
python3.11 -m venv venv.trestle
source venv.trestle/bin/activate
pip install compliance-trestle==3.6.0
trestle version
Trestle version v3.6.0 based on OSCAL version 1.1.2
```

#### Install of trestle 2.x

Use python 3.9.

```
python3.9 -m venv venv.trestle
source venv.trestle/bin/activate
pip install compliance-trestle==2.6.0
trestle version
Trestle version v2.6.0 based on OSCAL version 1.0.4
```

#### Install of trestle 1.x

Use python 3.9.

Due to dependency updates since the release of trestle 1.2.0, perform the following in your venv:

```
python3.9 -m venv venv.trestle
source venv.trestle/bin/activate
pip install compliance-trestle==1.2.0
pip uninstall pydantic
pip uninstall pydantic_core
pip install pydantic==1.10.2
pip install requests
trestle version
Trestle version v1.2.0 based on OSCAL version 1.0.2
```

## Why Trestle

Expand Down Expand Up @@ -79,7 +129,7 @@ Trestle runs on most all python platforms (e.g. Linux, Mac, Windows) and is avai

## Development status

Compliance trestle is currently stable and is based on NIST OSCAL version 1.0.4, with active development continuing.
Compliance trestle is currently stable and is based on NIST OSCAL version 1.1.2, with active development continuing.

## Contributing to Trestle

Expand Down
6 changes: 3 additions & 3 deletions docs/tutorials/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ This command will return the current version of Trestle and OSCAL it is using.

Running `trestle version` will return:

> Trestle version v2.0.0 based on OSCAL version 1.0.4
> Trestle version v3.x.x based on OSCAL version 1.1.2
It can also be used to retrieve the metadata version of the OSCAL object:

Expand All @@ -165,7 +165,7 @@ It can also be used to retrieve the metadata version of the OSCAL object:

"version": "0.1.10", <<< this version here

"oscal-version": "1.0.4"
"oscal-version": "1.1.2"

},
...
Expand All @@ -176,7 +176,7 @@ It can also be used to retrieve the metadata version of the OSCAL object:

Running `trestle version -n nist -t catalog` will return:

> Version of OSCAL object of nist catalog is: 1.0.0
> Version of OSCAL object of nist catalog is: 1.1.2

## `trestle init`

Expand Down

0 comments on commit bdb6444

Please sign in to comment.