Skip to content

Commit 53e00af

Browse files
authored
Merge branch 'master' into python_updates
2 parents 4e86d09 + 4a03fe8 commit 53e00af

File tree

6 files changed

+15
-12
lines changed

6 files changed

+15
-12
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ jobs:
2323
- name: Build distribution
2424
run: python -m build
2525
- name: Publish
26-
uses: pypa/gh-action-pypi-publish@v1.9.0
26+
uses: pypa/gh-action-pypi-publish@v1.12.4
2727
with:
2828
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
- name: Test
2323
run: make test-cov
2424
- name: Coverage
25-
uses: codecov/codecov-action@v4.5.0
25+
uses: codecov/codecov-action@v5.3.1

ellar_jwt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""JWT Module for Ellar"""
22

3-
__version__ = "0.2.2"
3+
__version__ = "0.2.4"
44
from .module import JWTModule
55
from .schemas import JWTConfiguration
66
from .services import JWTService

ellar_jwt/module.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from .services import JWTService
1313

1414

15-
@Module()
15+
@Module(exports=[JWTService, JWTConfiguration])
1616
class JWTModule(ModuleBase, IModuleSetup):
1717
@classmethod
1818
def setup(
@@ -43,7 +43,7 @@ def setup(
4343
return DynamicModule(
4444
cls,
4545
providers=[
46-
JWTService,
46+
ProviderConfig(JWTService),
4747
ProviderConfig(JWTConfiguration, use_value=configuration),
4848
],
4949
)
@@ -53,13 +53,15 @@ def register_setup(cls) -> ModuleSetup:
5353
return ModuleSetup(cls, inject=[Config], factory=cls.register_setup_factory)
5454

5555
@staticmethod
56-
def register_setup_factory(module: ModuleRefBase, config: Config) -> DynamicModule:
56+
def register_setup_factory(
57+
module_ref: ModuleRefBase, config: Config
58+
) -> DynamicModule:
5759
if config.get("JWT_CONFIG") and isinstance(config.JWT_CONFIG, dict):
5860
schema = JWTConfiguration(**dict(config.JWT_CONFIG))
5961
return DynamicModule(
60-
module.module,
62+
module_ref.module,
6163
providers=[
62-
JWTService,
64+
ProviderConfig(JWTService),
6365
ProviderConfig(JWTConfiguration, use_value=schema),
6466
],
6567
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ classifiers = [
4040
]
4141

4242
dependencies = [
43-
"ellar >= 0.5.8",
43+
"ellar >= 0.8.2",
4444
"pyjwt>=1.7.1,<3",
4545
"pyjwt[crypto]"
4646
]

requirements-tests.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
autoflake
2-
mypy == 1.11.1
2+
mypy == 1.15.0
33
pytest >= 7.1.3,< 9.0.0
44
pytest-asyncio
5-
pytest-cov >= 2.12.0,< 6.0.0
6-
ruff ==0.5.5
5+
pytest-cov >= 2.12.0,< 7.0.0
6+
ruff ==0.13.3
7+
pytest-cov >= 2.12.0,< 7.0.0
78
types-python-dateutil
89
types-pytz
910
httpx

0 commit comments

Comments
 (0)