Skip to content
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

Merged
merged 4 commits into from
Oct 17, 2024

Conversation

zzacharo
Copy link
Member

@zzacharo zzacharo commented Oct 16, 2024

closes #105

@zzacharo zzacharo requested a review from tmorrell October 16, 2024 08:52
@@ -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
Copy link
Contributor

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?

Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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.

Copy link
Contributor

@tmorrell tmorrell left a 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.

@zzacharo
Copy link
Member Author

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.

@zzacharo zzacharo force-pushed the add-class-registry branch 3 times, most recently from 3643570 to 5cbac53 Compare October 17, 2024 07:17
@zzacharo zzacharo merged commit e770384 into inveniosoftware:master Oct 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Flask requirement breaks package use
3 participants