docs(tutorials): update all deprecated poetry shell references (#7002)

This commit is contained in:
Hugo Pereira Brito
2025-02-20 12:19:19 +01:00
committed by GitHub
parent 931df361bf
commit fe25e7938e
4 changed files with 23 additions and 7 deletions

View File

@@ -19,8 +19,13 @@ For isolation and to avoid conflicts with other environments, we recommend using
Then install all dependencies including the ones for developers:
```
poetry install --with dev
poetry shell
eval $(poetry env activate) \
```
> [!IMPORTANT]
> Starting from Poetry v2.0.0, `poetry shell` has been deprecated in favor of `poetry env activate`.
>
> If your poetry version is below 2.0.0 you must keep using `poetry shell` to activate your environment.
> In case you have any doubts, consult the Poetry environment activation guide: https://python-poetry.org/docs/managing-environments/#activating-the-environment
## Contributing with your code or fixes to Prowler

View File

@@ -76,7 +76,7 @@ Prowler App can be installed in different ways, depending on your environment:
git clone https://github.com/prowler-cloud/prowler \
cd prowler/api \
poetry install \
poetry shell \
eval $(poetry env activate) \
set -a \
source .env \
docker compose up postgres valkey -d \
@@ -85,6 +85,12 @@ Prowler App can be installed in different ways, depending on your environment:
gunicorn -c config/guniconf.py config.wsgi:application
```
???+ important
Starting from Poetry v2.0.0, `poetry shell` has been deprecated in favor of `poetry env activate`.
If your poetry version is below 2.0.0 you must keep using `poetry shell` to activate your environment.
In case you have any doubts, consult the Poetry environment activation guide: https://python-poetry.org/docs/managing-environments/#activating-the-environment
> Now, you can access the API documentation at http://localhost:8080/api/v1/docs.
_Commands to run the API Worker_:
@@ -93,7 +99,7 @@ Prowler App can be installed in different ways, depending on your environment:
git clone https://github.com/prowler-cloud/prowler \
cd prowler/api \
poetry install \
poetry shell \
eval $(poetry env activate) \
set -a \
source .env \
cd src/backend \
@@ -106,7 +112,7 @@ Prowler App can be installed in different ways, depending on your environment:
git clone https://github.com/prowler-cloud/prowler \
cd prowler/api \
poetry install \
poetry shell \
eval $(poetry env activate) \
set -a \
source .env \
cd src/backend \

View File

@@ -27,7 +27,12 @@ cd prowler
pip install poetry
mkdir /tmp/poetry
poetry config cache-dir /tmp/poetry
poetry shell
eval $(poetry env activate)
poetry install
python prowler.py -v
```
> [!IMPORTANT]
> Starting from Poetry v2.0.0, `poetry shell` has been deprecated in favor of `poetry env activate`.
>
> If your poetry version is below 2.0.0 you must keep using `poetry shell` to activate your environment.
> In case you have any doubts, consult the Poetry environment activation guide: https://python-poetry.org/docs/managing-environments/#activating-the-environment