Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ predictions = func.invoke(["New text"])

### Setup dev environment

Create a `python3.11` venv and run:

```bash
pip install -r requirements.txt
```
Expand All @@ -62,3 +64,17 @@ mkdocs build
### Testing

Testing locally requires a local server running the API. CI will run tests against a staging environment.

1. Ensure the local server is running
2. Ensure the `nyckel` package is installed in the venv using `pip install -e .`
3. Run `pytest` from the root directory

### Deploying

#### One time

1. `pip install hatch`

#### Each time

`hatch publish`
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def get_test_credentials() -> Credentials:
credentials = Credentials(
client_id="python-sdk-test",
client_secret=os.environ["NYCKEL_PYTHON_SDK_CLIENT_SECRET"],
server_url="https://www.nyckel-staging.com",
server_url="https://www.nyckel.com",
)
else:
credentials = Credentials(
Expand Down