Skip to content

Commit 36a28c0

Browse files
committed
feat!: move to poetry and remove ID pool feature
1 parent 3251445 commit 36a28c0

File tree

14 files changed

+1394
-396
lines changed

14 files changed

+1394
-396
lines changed

.github/workflows/release-please.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@ jobs:
1717
id: release
1818
- uses: actions/checkout@v4
1919
if: ${{ steps.release.outputs.release_created }}
20+
- name: Install poetry
21+
if: ${{ steps.release.outputs.release_created }}
22+
run: pipx install poetry
2023
- uses: actions/setup-python@v5
2124
if: ${{ steps.release.outputs.release_created }}
2225
with:
23-
python-version: '3.10'
24-
cache: 'pip'
25-
- run: pip install -r requirements.txt
26-
if: ${{ steps.release.outputs.release_created }}
27-
- run: python3 -m build
26+
python-version: '3.11'
27+
cache: 'poetry'
28+
- run: poetry install --without dev
2829
if: ${{ steps.release.outputs.release_created }}
29-
- uses: pypa/gh-action-pypi-publish@release/v1
30+
- run: poetry publish --build --username __token__ --password ${{ secrets.PYPI_PASSWORD }}
3031
if: ${{ steps.release.outputs.release_created }}
31-
with:
32-
password: ${{ secrets.PYPI_PASSWORD }}

.github/workflows/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,23 @@ jobs:
1515
steps:
1616
- name: Clone
1717
uses: actions/checkout@v4
18+
- name: Install poetry
19+
run: pipx install poetry
1820
- uses: actions/setup-python@v5
1921
with:
20-
python-version: '3.10'
21-
cache: 'pip'
22+
python-version: '3.11'
23+
cache: 'poetry'
2224
- name: Install deps
23-
run: pip install -r requirements.txt
25+
run: poetry install
2426
- name: Run tests
25-
run: python -m coverage run -m pytest
27+
run: poetry run pytest
2628
env:
2729
CLIENT_ID: ${{ secrets.CLIENT_ID }}
2830
USERNAME: ${{ secrets.USERNAME }}
2931
USERNAME2: ${{ secrets.USERNAME2 }}
3032
PASSWORD: ${{ secrets.PASSWORD }}
3133
OTPCODE: ${{ secrets.OTPCODE }}
3234
USER_POOL_ID: ${{ secrets.USER_POOL_ID }}
33-
FEDERATED_POOL_ID: ${{ secrets.FEDERATED_POOL_ID }}
3435
- name: Publish code coverage
3536
uses: paambaati/[email protected]
3637
env:

.github/workflows/update-doc.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v4
14+
- name: Install poetry
15+
run: pipx install poetry
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.11'
19+
cache: 'poetry'
1420
- name: Install deps
15-
run: pip install -r requirements.txt
21+
run: poetry install
1622
- name: Create md files
1723
run: sphinx-build -M markdown ./docs_source ./docs
1824
- name: Update docs website

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Scribe Labs Limited
3+
Copyright (c) 2025 Scribe Labs Limited
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docs_source/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
# -- Project information -----------------------------------------------------
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88

9+
import json
10+
911
project = "Scribe Auth"
10-
copyright = "2023, Scribe Labs Limited"
12+
copyright = "2025, Scribe Labs Limited"
1113
author = "Ailin Venerus"
12-
release = "1.0.2"
14+
with open("../.release-please-manifest.json") as f:
15+
release = json.load(f)["."]
1316

1417
# -- General configuration ---------------------------------------------------
1518
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

docs_source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ To use Scribe Auth, first install it using pip:
77
88
(.venv) $ pip install scribeauth
99
10-
This library requires Python >= 3.10 that supports typings.
10+
This library requires Python >= 3.11 that supports typings.
1111

1212

1313
--------------

poetry.lock

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

pyproject.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[project]
2+
name = "scribeauth"
3+
version = "1.2.0"
4+
description = "Library to authenticate to Scribe's platform"
5+
readme = "README.md"
6+
license = "LICENSE.md"
7+
requires-python = ">=3.11"
8+
dependencies = [
9+
"boto3[cognito-idp] (>=1.37.11,<2.0.0)"
10+
]
11+
keywords = [
12+
'Development Status :: 4 - Beta',
13+
'Intended Audience :: Developers',
14+
'Operating System :: OS Independent',
15+
'License :: OSI Approved :: MIT License',
16+
'Natural Language :: English',
17+
'Programming Language :: Python :: 3.11',
18+
'Topic :: Security',
19+
'Typing :: Typed'
20+
]
21+
url = 'https://github.com/ScribeLabsAI/ScribeAuth'
22+
23+
24+
[build-system]
25+
requires = ["poetry-core>=2.0.0,<3.0.0"]
26+
build-backend = "poetry.core.masonry.api"
27+
28+
[tool.poetry.group.dev.dependencies]
29+
types-boto3 = {extras = ["cognito-idp"], version = "^1.37.11"}
30+
pytest = "^8.3.5"
31+
sphinx = "^8.2.3"
32+
pyotp = "^2.9.0"
33+
dotenv = "^0.9.9"
34+
sphinx-markdown-builder = "^0.6.8"
35+

requirements.txt

Lines changed: 0 additions & 62 deletions
This file was deleted.

scribeauth/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
from .scribeauth import (
2+
Challenge,
23
MissingIdException,
34
ResourceNotFoundException,
45
ScribeAuth,
56
Tokens,
7+
TooManyRequestsException,
68
UnauthorizedException,
79
)

0 commit comments

Comments
 (0)