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

made CFG_PATH_GFILE and CFG_PATH_PDFTOTEXT configurable from the environment #29

Closed
wants to merge 1 commit into from

Conversation

erickpeirson
Copy link
Contributor

In order to containerize refextract for use in a web service, I needed to be able to explicitly specify the location of the pdftotext binary. So I altered refextract/references/config.py slightly so that the environment variables CFG_PATH_GFILE and CFG_PATH_PDFTOTEXT are preferred over shutil.which. This may be relevant for #9.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.009%) to 79.022% when pulling e3efc23 on erickpeirson:master into ec837cb on inspirehep:master.

@jacquerie
Copy link
Contributor

jacquerie commented Jun 20, 2017

Woah, someone else is actually using refextract ? Great!

Commit looks ok, except for the commit message. What about

config: make file and pdftotext paths configurable

Makes `CFG_PATH_GFILE` and `CFG_PATH_PDFTOTEXT` configurable
through shell variables, with fallback on the output of `which`,
in order to allow for easier containerization.

Signed-off-by: Erick Peirson <[email protected]>

?

@erickpeirson
Copy link
Contributor Author

erickpeirson commented Jun 20, 2017 via email

@jacquerie
Copy link
Contributor

jacquerie commented Jun 20, 2017

That's the thing, we generate the release notes from the commit messages!

As for the Signed-off-by, eh, we had this debate internally, and we have people on your side and people that like the trailers for things like Co-authored-by to share credits. But ok, I'd rather have your commit than not. Can we compromise on

config: make file and pdftotext paths configurable

Makes `CFG_PATH_GFILE` and `CFG_PATH_PDFTOTEXT` configurable
through shell variables, with fallback on the output of `which`,
in order to allow for easier containerization.

or even

config: make file and pdftotext paths configurable

?

@jacquerie
Copy link
Contributor

Ping @erickpeirson: if you answer the above I can include the commit in the next release...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants