-
Notifications
You must be signed in to change notification settings - Fork 155
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
[Discussion] Source files and processing references #51
Comments
Comments on 1:
|
|
I thought new-style modules didn't require Also, there's a difference between Python enforcing a language standard and us... Personally, I just think that enforcing things never does well... however! maybe I'm just being pessimistic and we should do it and see if anybody complains. Fairpoint that the toml doesn't come down when we install! |
*although I can't find any evidence for my first point right now... |
Ok, let's ignore where to put it. Do we agree we need a way for each package to indicate where their reference source is? Does something like |
I'd be happy with that. It was my original plan when I started yesterday but I decided to use cli-parameters to keep things inline with what was already being used. :-) |
Yep, I guess things evolve with time and the complexity of the code. The cli is still neded for users to define in what output format they want the references list, but the input of those references is up to the package using R2T2. |
Yea, that makes sense. |
The main use case of R2T2 - at least in my mind - is to annotate libraries and then retrieve the references used when running a script that uses those libraries.
Under this circumstances, two comments come to my mind:
numpy
,scipy
andscikit-learn
adopt R2T2 and I run a script using them, when processing the used references, each should be look for the information in the corresponding source file.So, for this to work, we have to enable a way of adding references source files to the BIBLIOGRAPHY object, something like
BIBLIOGRPAHY.add_source(path_to_source)
in the__init__.py
of the library. Then we can probably use theinspect
to figure out what's the library adding the source.In summary:
The text was updated successfully, but these errors were encountered: