From da21acc5e06b33c0a5e32e2753438ebb658000d4 Mon Sep 17 00:00:00 2001 From: Dan Ott <1479603+danielott@users.noreply.github.com> Date: Mon, 20 Oct 2025 18:18:24 -0700 Subject: [PATCH 1/2] Adding additional detail to the readme --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index cf8395a..d045624 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -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` \ No newline at end of file From cace81600621fd2ee82eccdb3c2adea3dc05a22b Mon Sep 17 00:00:00 2001 From: Dan Ott <1479603+danielott@users.noreply.github.com> Date: Tue, 21 Oct 2025 00:12:08 -0700 Subject: [PATCH 2/2] Use prod rather than staging for tests --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index f68baac..1b6bbde 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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(