Skip to content

Commit ce926df

Browse files
committed
migrations to uv
1 parent 971c0ba commit ce926df

2 files changed

Lines changed: 10 additions & 20 deletions

File tree

.github/workflows/tests.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,16 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v3
2424

25-
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v4
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v5
2727
with:
28-
python-version: ${{ matrix.python-version }}
28+
enable-cache: true
2929

30-
- name: Install Poetry Action
31-
uses: snok/install-poetry@v1
30+
- name: Set up Python ${{ matrix.python-version }}
31+
run: uv python install ${{ matrix.python-version }}
3232

3333
- name: Install Dependencies
34-
run: poetry install
35-
if: steps.cache.outputs.cache-hit != 'true'
36-
37-
- name: Cache Poetry virtualenv
38-
uses: actions/cache@v3
39-
id: cache
40-
with:
41-
path: ~/.virtualenvs
42-
key: poetry-${{ hashFiles('**/poetry.lock') }}
43-
restore-keys: |
44-
poetry-${{ hashFiles('**/poetry.lock') }}
34+
run: uv sync
4535

4636
- name: Test with pytest
47-
run: poetry run pytest --cov .
37+
run: uv run pytest --cov .

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ NOTE: This is a work in progress. IAMSpy currently does not support all features
88

99
NOTE: Should you pull newer changes for IAMSpy, it is recommended to re-generate any models that may have been pre-computed. This is because internal representations of data are likely to regularly change whilst IAMSpy is being built out to completion.
1010

11-
IAMSpy can be installed through `poetry install` from a checked out repository. This will set up a python virtualenv to be used with IAMSpy. If you would like to install IAMSpy into another python environment, `pip install /path/to/iamspy`
11+
IAMSpy can be installed through `uv sync` from a checked out repository. This will set up a python virtualenv to be used with IAMSpy. If you would like to install IAMSpy into another python environment, `pip install /path/to/iamspy`
1212

1313
It should be noted that GAADs generated by by the `get-account-authorization-details` might miss some required data. For example, when using permission boundaries, managed policies may not be included in the GAAD that are used by boundaries but nothing else.
1414

@@ -104,8 +104,8 @@ iamspy who-can s3:GetObject arn:aws:s3:::bucket/object --strict-conditions
104104
## Development
105105

106106
- Checkout the repo
107-
- `poetry install`
108-
- `poetry shell`
107+
- `uv sync`
108+
- `uv run <command>` or activate the venv with `source .venv/bin/activate`
109109

110110
### Code Quality
111111

0 commit comments

Comments
 (0)