Skip to content

Commit

Permalink
removed npm suffix from poetry command
Browse files Browse the repository at this point in the history
  • Loading branch information
zurdi15 committed Dec 13, 2023
1 parent 25aab26 commit 72ff2b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ jobs:
- name: Install poetry
run: |
pipx install --suffix _npm git+https://github.com/radoering/poetry.git@non-package-mode
ln -s /opt/pipx_bin/poetry_npm /opt/pipx_bin/poetry
pipx install git+https://github.com/radoering/poetry.git@non-package-mode
- name: Set up Python 3.10
uses: actions/setup-python@v4
Expand Down
12 changes: 6 additions & 6 deletions DEVELOPER-SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ https://python-poetry.org/docs/#installing-with-the-official-installer
**_WARNING:_** Until poetry 1.8.0 version is released, poetry needs to be installed with the new non-package-mode feature branch:

```sh
pipx install --suffix _npm git+https://github.com/radoering/poetry.git@non-package-mode
pipx install git+https://github.com/radoering/poetry.git@non-package-mode
```

More info: https://github.com/python-poetry/poetry/pull/8650
Expand All @@ -44,9 +44,9 @@ More info: https://github.com/python-poetry/poetry/pull/8650
Then creat the virtual environment

```sh
# Fix disable parallel installation stuck: $> poetry_npm config experimental.new-installer false
# Fix disable parallel installation stuck: $> poetry config experimental.new-installer false
# Fix Loading macOS/linux stuck: $> export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
poetry_npm install --sync
poetry install --sync
```

### - Spin up mariadb in docker
Expand All @@ -61,15 +61,15 @@ docker-compose up -d

```sh
cd backend
poetry_npm run python3 main.py
poetry run python3 main.py
```


### - Start a worker

```sh
cd backend
poetry_npm run python3 worker.py
poetry run python3 worker.py
```

## Setting up the frontend
Expand Down Expand Up @@ -110,5 +110,5 @@ docker exec -i mariadb mysql -u root -p<root password> < backend/romm_test/setup
```sh
cd backend
# path or test file can be passed as argument to test only a subset
poetry_npm run pytest [path/file]
poetry run pytest [path/file]
```

0 comments on commit 72ff2b1

Please sign in to comment.