-
Notifications
You must be signed in to change notification settings - Fork 108
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
Move to pipenv #411
Move to pipenv #411
Conversation
We will need to update and sync our content to only promote the use of |
Now that we have `pipenv` allowing us to isolate a specific python version and its dependencies, we don't need docker anymore for running the tests. I added `pytest` to the `Pipfile` and updated the `./docsearch test` command to run `./pytest scraper/src` instead of building and running a docker image. I also updated the Travis script to install `pipenv` and then run `pipenv run ./docsearc test` instead of using docker once again.
95d7b19
to
b081c66
Compare
@s-pace All checks are ok, I think this can be merged if it looks good to you. Once merged we'll be able to update the docs on the other repo. |
@pixelastic Did you check that everything was ready with Travis? |
Great, thanks. Merging it then |
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.
🎉
Hi, is there an updated documentation on how to work with this repo now? I'm not a Python user and running |
Sorry, it's probably documented here: |
Also, running
|
Hi @borekb, We will update the whole documentation very soon. We want to unify the way we promote the installation of the scraper. It will mainly be thanks to Sorry about the docker issue, we have forgotten to update this part. We are currently updating the Dockerfile. In the meantime, you can use the following
|
Thanks, @s-pace! I worked around it by doing By the way, I'm not sure if it's possible from your end but as a user, I would strongly prefer just being able to run something like |
I replaced the use of
requirements.txt
withPipfile
frompipenv
.Now that we have
pipenv
allowing us to isolate a specific pythonversion and its dependencies, we don't need docker anymore for running
the tests.
I added
pytest
to thePipfile
and updated the./docsearch test
command to run
./pytest scraper/src
instead of building and runninga docker image.
I also updated the Travis script to install
pipenv
and then runpipenv run ./docsearc test
instead of using docker once again.⚠ Note that this PR is still a WIP. I'll need to push stuff a few times to test Travis.