File tree Expand file tree Collapse file tree 6 files changed +15
-12
lines changed Expand file tree Collapse file tree 6 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11"""JWT Module for Ellar"""
22
3- __version__ = "0.2.2 "
3+ __version__ = "0.2.4 "
44from .module import JWTModule
55from .schemas import JWTConfiguration
66from .services import JWTService
Original file line number Diff line number Diff line change 1212from .services import JWTService
1313
1414
15- @Module ()
15+ @Module (exports = [ JWTService , JWTConfiguration ] )
1616class 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 )
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ classifiers = [
4040]
4141
4242dependencies = [
43- " ellar >= 0.5.8 " ,
43+ " ellar >= 0.8.2 " ,
4444 " pyjwt>=1.7.1,<3" ,
4545 " pyjwt[crypto]"
4646]
Original file line number Diff line number Diff line change 11autoflake
2- mypy == 1.11.1
2+ mypy == 1.15.0
33pytest >= 7.1.3,< 9.0.0
44pytest-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
78types-python-dateutil
89types-pytz
910httpx
You can’t perform that action at this time.
0 commit comments