-
Notifications
You must be signed in to change notification settings - Fork 31
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
bibtexparser integration #185
Comments
Thanks for this Ralf. I'll have a look. I thought I had set habanero up so bibtexparser is optional, but I guess it's only optional if you don't use the default |
My guess is that you need to check the version of bibtexparser or the availability of |
Sorry, the last two sentences do not make sense. It runs into bibtexparser v1 afterwards. |
@rjaiser sorry for delay. See change in commit above. I'm not sure if that change is a good approach with respect to checking |
According to Basically, this would have been my idea: Issue a warning if bibtexparser is not available or not present in the right version, but let it run through in good hope that there are no problems with the acquired bibtex content. As I mentioned for my use case, it works with habanero 1.2.3, when bibtexparser was not yet implemented. I guess you had a good reason to implement it. You could go the hard way and make bibtextparser>=2 a dependency for habanero>1.2.3 (or whatever version). That would be a clean and easy way? I am sorry that I cannot help more, as I am not familiar with the best practices around version checking. Unfortunately, I wasn't able to do a quick and dirty test on your new code either, as it threw more errors at me - surely because I did something wrong. |
…imum, skip fixing bibtex if vers not > 2 just in case
ok, closing this out. I removed bibtexparser as a required dependency - now is an optional dependency, and if used v2 is required, so standard install of habanero doesn't use bibtexparser at all. |
Hi
the integration of bibtexparser can lead to conflicts. As default pip and conda install v1 of bibtexparser. By default pip and conda install v1 of bibtexparser. Unfortunately,
bibtexparser.parse_string
is only available in v2 of bibtexparser. More problematically, v1 and v2 are not compatible. If someone is using bibtexparser v1 in their own project, and also using habanero, they will have to stick with versions prior to 1.2.6.Thanks for looking into this
Ralf
The text was updated successfully, but these errors were encountered: