-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from versatica/use-a-single-bidirectional-sock…
…et-to-communicate-with-worker Use a single and bidirectional socket to communicate with the worker (fix Python3 <= 3.10 requirement)
- Loading branch information
Showing
8 changed files
with
41 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -256,38 +256,19 @@ When sending, `dataChannel.send()` (and hence `dataProducer.send()`) allows pass | |
## Development | ||
In order to run `npm run lint` task, the following Python dependencies are required: | ||
### Lint task | ||
- `flake8` >= 5.0.4 | ||
- `mypy` >= 0.982 | ||
In order to run `npm run lint` task, install Python dev dependencies: | ||
```bash | ||
$ npm run install-python-dev-deps | ||
``` | ||
### Issue with Python >= 3.11 | ||
See https://github.com/versatica/mediasoup-client-aiortc/issues/22. | ||
As a workaround: | ||
1. Install `python@3.10`. | ||
2. Make `PYTHON` environment variable point to it: | ||
```bash | ||
export PYTHON=python3.10 | ||
``` | ||
3. Make `PIP` environment variable point to `[email protected]`: | ||
```bash | ||
export PIP=pip3.10 | ||
``` | ||
4. Install deps: | ||
```bash | ||
npm ci | ||
``` | ||
5. Run tests: | ||
```bash | ||
npm test | ||
``` | ||
### Make Python log to stdout/stderr while running tests | ||
```bash | ||
PYTHON_LOG_TO_STDOUT=true npm run test | ||
``` | ||
## Caveats | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters