-
Notifications
You must be signed in to change notification settings - Fork 37
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
global: add class based registry to extend idutils schemes #106
Conversation
bcc4b70
to
34c02e9
Compare
@@ -37,7 +37,6 @@ install_requires = | |||
|
|||
[options.extras_require] | |||
tests = | |||
invenio-app>=1.4.0 | |||
pytest-black-ng>=0.4.0 | |||
pytest-cache>=1.0 | |||
pytest-runner>=2.6.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should the section [options.entry_points]
be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! Nice catch :)
("swh", validators.is_swh), | ||
("viaf", validators.is_viaf), | ||
] | ||
IDUTILS_PID_SCHEMES = _IDUTILS_PID_SCHEMES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kept for backwards compatibility when importing.
), | ||
("pmid", ["viaf"]), | ||
] | ||
IDUTILS_SCHEME_FILTER = _IDUTILS_SCHEME_FILTER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kept for backwards compatibility when importing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested and this doesn't break my usage. It would be useful to have some documentation on how the scheme extension works. This is one repository where maybe readthedocs would be a good place, just in https://github.com/inveniosoftware/idutils/blob/master/docs/index.rst. It will need #107 merged at a minimum to render.
Hey, thanks for testing it! I have added some documentation in https://github.com/inveniosoftware/idutils/blob/master/idutils/__init__.py#L19 but I am happy to add it also as part of the readthedocs too. |
3643570
to
5cbac53
Compare
5cbac53
to
90b42b9
Compare
closes #105