Skip to content

Commit

Permalink
Update python dependencies (#3695)
Browse files Browse the repository at this point in the history
The python dependencies are out of date, and this is reflected in the
integrations that are showing old (insecure) versions of libraries.
Attempts to update the dependencies in the integrations themselves will
fail as the requirement for the old versions is here.
  • Loading branch information
rossjones authored Mar 22, 2024
1 parent 0948775 commit 6f54e81
Show file tree
Hide file tree
Showing 5 changed files with 193 additions and 201 deletions.
18 changes: 8 additions & 10 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ The latter is listed as a dependency of this SDK and will be installed automatic

## Features

* List, create and inspect Bacalhau jobs using Python objects :balloon:
* Use the production network, or set the following environment variables to target any Bacalhau network out there:
* `BACALHAU_API_HOST`
* `BACALHAU_API_PORT`
* Generate a key pair used to sign requests stored in the path specified by the `BACALHAU_DIR` env var (default: `~/.bacalhau`)
- List, create and inspect Bacalhau jobs using Python objects :balloon:
- Use the production network, or set the following environment variables to target any Bacalhau network out there:
- `BACALHAU_API_HOST`
- `BACALHAU_API_PORT`
- Generate a key pair used to sign requests stored in the path specified by the `BACALHAU_DIR` env var (default: `~/.bacalhau`)

## Install

### From PyPi:
Expand All @@ -27,13 +28,13 @@ $ pip install bacalhau-sdk

Clone the public repository:

``` console
```console
$ git clone https://github.com/bacalhau-project/bacalhau/
```

Once you have a copy of the source, you can install it with:

``` console
```console
$ cd python/
$ pip install .
```
Expand All @@ -43,7 +44,6 @@ $ pip install .
Likewise the Bacalhau CLI, this SDK uses a key pair to be stored in `BACALHAU_DIR` used for signing requests.
If a key pair is not found there, it will create one for you.


## Example Use

Let's submit a Hello World job and then fetch its output data's CID.
Expand All @@ -58,7 +58,6 @@ from bacalhau_sdk.api import submit
from bacalhau_sdk.config import get_client_id
from bacalhau_apiclient.models.storage_spec import StorageSpec
from bacalhau_apiclient.models.spec import Spec
from bacalhau_apiclient.models.job_spec_language import JobSpecLanguage
from bacalhau_apiclient.models.job_spec_docker import JobSpecDocker
from bacalhau_apiclient.models.publisher_spec import PublisherSpec
from bacalhau_apiclient.models.deal import Deal
Expand All @@ -74,7 +73,6 @@ data = dict(
image="ubuntu",
entrypoint=["echo", "Hello World!"],
),
language=JobSpecLanguage(job_context=None),
wasm=None,
resources=None,
timeout=1800,
Expand Down
2 changes: 0 additions & 2 deletions python/examples/submit_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from bacalhau_apiclient.models.deal import Deal
from bacalhau_apiclient.models.job_spec_docker import JobSpecDocker
from bacalhau_apiclient.models.job_spec_language import JobSpecLanguage
from bacalhau_apiclient.models.publisher_spec import PublisherSpec
from bacalhau_apiclient.models.spec import Spec
from bacalhau_apiclient.models.storage_spec import StorageSpec
Expand All @@ -22,7 +21,6 @@
image="ubuntu",
entrypoint=["echo", "Hello World!"],
),
language=JobSpecLanguage(job_context=None),
wasm=None,
resources=None,
timeout=1800,
Expand Down
Loading

0 comments on commit 6f54e81

Please sign in to comment.