-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type error on init_app #71
Comments
On which Python version does that happen? |
python 3.10.3 |
Correction: 3.9.5, the problem doesn't seem to occur on the 3.10 environment. |
OK that makes more sense, because there were some significant changes to |
I'm thinking something like if sys.version_info < (3, 10):
entry_points= [ep for ep in entry_points().get(base._entry_point, []) if ep.name == type_]
else:
entry_points= entry_points(group=base._entry_point, name=type_) |
first of all i need to get the tests to fail ;) maybe i'm mocking too much there... |
ok, found a minimal repro that makes use of the real entrypoints instead of mocked ones def test_load_providers():
app = Flask('test')
app.config['SECRET_KEY'] = 'testing'
app.config['MULTIPASS_AUTH_PROVIDERS'] = {'test': {'type': 'static'}}
app.config['MULTIPASS_IDENTITY_PROVIDERS'] = {'test': {'type': 'static'}}
app.config['MULTIPASS_PROVIDER_MAP'] = {'test': 'test'}
Multipass(app) |
OK please check the PR; i think that should be fine on all supported python versions now... |
That seems to be behaving now, thank you. |
v0.5.1 is now released |
While updating another extension I realized that it's probably much better/easier/cleaner to simply add I might change this in a point release in order to be less exposed to future changes in |
I see this error and version 0.5 dies while loading.
It's trying to call
importlib.metadata.entrypoints
but that doesn't have a group argument.The text was updated successfully, but these errors were encountered: