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
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Most other uses are easily done with any http/REST client like `requests` or `ht

## Installation

TODO INSTALL setup a KBase pypi org and publish there
```
pip install kbase-auth-client
```

## Usage

Expand Down Expand Up @@ -103,7 +105,7 @@ uv run scripts/process_unasync.py
* Releases
* The main branch is the stable branch. Releases are made from the develop branch to the main
branch.
* Update the version in `auth.py`.
* Update the version in `auth.py` and `pyproject.toml`.
* Tag the version in git and github.
* Create a github release.

Expand Down
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.1

* Update README with install instructions

## 0.1.0

* Initial release
16 changes: 12 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "kbase-auth"
version = "0.1.0"
name = "kbase-auth-client"
version = "0.1.1"
description = "Client for the KBase Authentication Service"
readme = "README.md"
authors = [{ name = "KBase Development Team" }]
Expand All @@ -12,8 +12,8 @@ classifiers = [
"Operating System :: OS Independent",
]
dependencies = [
"cacheout==0.16.0",
"httpx==0.28.1",
"cacheout>=0.16.0",
"httpx>=0.28.1",
]

[build-system]
Expand All @@ -33,3 +33,11 @@ dev = [
"requests==2.32.5",
"unasync==0.6.0",
]

[project.urls]
Homepage = "https://github.com/kbase/auth2_client_python"
Repository = "https://github.com/kbase/auth2_client_python"
Issues = "https://github.com/kbase/auth2_client_python/issues"

[tool.uv]
package = true
1 change: 0 additions & 1 deletion src/kbase/_auth/_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from kbase._auth.exceptions import InvalidTokenError, InvalidUserError
from kbase._auth.models import Token, User, VALID_TOKEN_FIELDS, VALID_USER_FIELDS

# TODO PUBLISH make a pypi kbase org and publish there
# TODO RELIABILITY could add retries for these methods, tenacity looks useful
# should be safe since they're all read only
# We might want to expand exceptions to include the request ID for debugging purposes
Expand Down
1 change: 0 additions & 1 deletion src/kbase/_auth/_sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from kbase._auth.exceptions import InvalidTokenError, InvalidUserError
from kbase._auth.models import Token, User, VALID_TOKEN_FIELDS, VALID_USER_FIELDS

# TODO PUBLISH make a pypi kbase org and publish there
# TODO RELIABILITY could add retries for these methods, tenacity looks useful
# should be safe since they're all read only
# We might want to expand exceptions to include the request ID for debugging purposes
Expand Down
2 changes: 1 addition & 1 deletion src/kbase/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
)


__version__ = "0.1.0"
__version__ = "0.1.1"
2 changes: 1 addition & 1 deletion test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


def test_version():
assert ver == "0.1.0"
assert ver == "0.1.1"


async def _create_fail(url: str, expected: Exception, cachesize=1, timer=time.time):
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.