Skip to content

Commit 1eda9b5

Browse files
authored
Merge pull request #11 from kbase/dev-client
Publish auth client
2 parents 10f7d29 + 1e71b59 commit 1eda9b5

File tree

8 files changed

+26
-14
lines changed

8 files changed

+26
-14
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ Most other uses are easily done with any http/REST client like `requests` or `ht
88

99
## Installation
1010

11-
TODO INSTALL setup a KBase pypi org and publish there
11+
```
12+
pip install kbase-auth-client
13+
```
1214

1315
## Usage
1416

@@ -103,7 +105,7 @@ uv run scripts/process_unasync.py
103105
* Releases
104106
* The main branch is the stable branch. Releases are made from the develop branch to the main
105107
branch.
106-
* Update the version in `auth.py`.
108+
* Update the version in `auth.py` and `pyproject.toml`.
107109
* Tag the version in git and github.
108110
* Create a github release.
109111

RELEASE_NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.1
2+
3+
* Update README with install instructions
4+
15
## 0.1.0
26

37
* Initial release

pyproject.toml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
2-
name = "kbase-auth"
3-
version = "0.1.0"
2+
name = "kbase-auth-client"
3+
version = "0.1.1"
44
description = "Client for the KBase Authentication Service"
55
readme = "README.md"
66
authors = [{ name = "KBase Development Team" }]
@@ -12,8 +12,8 @@ classifiers = [
1212
"Operating System :: OS Independent",
1313
]
1414
dependencies = [
15-
"cacheout==0.16.0",
16-
"httpx==0.28.1",
15+
"cacheout>=0.16.0",
16+
"httpx>=0.28.1",
1717
]
1818

1919
[build-system]
@@ -33,3 +33,11 @@ dev = [
3333
"requests==2.32.5",
3434
"unasync==0.6.0",
3535
]
36+
37+
[project.urls]
38+
Homepage = "https://github.com/kbase/auth2_client_python"
39+
Repository = "https://github.com/kbase/auth2_client_python"
40+
Issues = "https://github.com/kbase/auth2_client_python/issues"
41+
42+
[tool.uv]
43+
package = true

src/kbase/_auth/_async/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from kbase._auth.exceptions import InvalidTokenError, InvalidUserError
1717
from kbase._auth.models import Token, User, VALID_TOKEN_FIELDS, VALID_USER_FIELDS
1818

19-
# TODO PUBLISH make a pypi kbase org and publish there
2019
# TODO RELIABILITY could add retries for these methods, tenacity looks useful
2120
# should be safe since they're all read only
2221
# We might want to expand exceptions to include the request ID for debugging purposes

src/kbase/_auth/_sync/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from kbase._auth.exceptions import InvalidTokenError, InvalidUserError
1717
from kbase._auth.models import Token, User, VALID_TOKEN_FIELDS, VALID_USER_FIELDS
1818

19-
# TODO PUBLISH make a pypi kbase org and publish there
2019
# TODO RELIABILITY could add retries for these methods, tenacity looks useful
2120
# should be safe since they're all read only
2221
# We might want to expand exceptions to include the request ID for debugging purposes

src/kbase/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
)
1616

1717

18-
__version__ = "0.1.0"
18+
__version__ = "0.1.1"

test/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
def test_version():
20-
assert ver == "0.1.0"
20+
assert ver == "0.1.1"
2121

2222

2323
async def _create_fail(url: str, expected: Exception, cachesize=1, timer=time.time):

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)