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 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(