-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1015 from ocefpaf/firefox_headless
Use firefox headless instead of phantomjs
- Loading branch information
Showing
6 changed files
with
98 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,32 +44,37 @@ Whenever possible, please also include a [short, self-contained code example](ht | |
|
||
First of all, thanks for your interest in contributing! | ||
|
||
- If you are new to git/Github, please take check a few tutorials | ||
on [git](https://git-scm.com/docs/gittutorial) and [GitHub](https://guides.github.com/). | ||
- The basic workflow for contributing is: | ||
1. [Fork](https://help.github.com/articles/fork-a-repo/) the repository | ||
2. [Clone](https://help.github.com/articles/cloning-a-repository/) the repository to create a local copy on your computer: | ||
``` | ||
git clone [email protected]:${user}/folium.git | ||
cd folium | ||
``` | ||
3. Create a branch for your changes | ||
``` | ||
git checkout -b name-of-your-branch | ||
``` | ||
4. Make change to your local copy of the folium repository | ||
5. Make sure the tests pass: | ||
* in the repository folder do `pip install -e .` (needed for notebook tests) | ||
* along with all the dependencies install `phantomjs` via `npm install -g phantomjs` or by downloading it from [here](http://phantomjs.org/download.html) and installing manually | ||
* run `python -m pytest tests` | ||
* resolve all errors | ||
6. Commit those changes | ||
``` | ||
git add file1 file2 file3 | ||
git commit -m 'a descriptive commit message' | ||
``` | ||
7. Push your updated branch to your fork | ||
``` | ||
git push origin name-of-your-branch | ||
``` | ||
8. [Open a pull request](https://help.github.com/articles/creating-a-pull-request/) to the python-visualization/folium | ||
If you are new to git/Github, please take check a few tutorials | ||
on [git](https://git-scm.com/docs/gittutorial) and [GitHub](https://guides.github.com/). | ||
|
||
The basic workflow for contributing is: | ||
|
||
1. [Fork](https://help.github.com/articles/fork-a-repo/) the repository | ||
2. [Clone](https://help.github.com/articles/cloning-a-repository/) the repository to create a local copy on your computer: | ||
``` | ||
git clone [email protected]:${user}/folium.git | ||
cd folium | ||
``` | ||
3. Create a branch for your changes | ||
``` | ||
git checkout -b name-of-your-branch | ||
``` | ||
4. Install the dependencies listed in `requirements.txt` and `requirements-dev.txt`. | ||
5. Install Firefox, download [geckodriver](https://github.com/mozilla/geckodriver/releases) | ||
and put it in the PATH. | ||
6. Make changes to your local copy of the folium repository | ||
7. Make sure the tests pass: | ||
* in the repository folder do `pip install -e .` (needed for notebook tests) | ||
* run `python -m pytest tests` | ||
* run `flake8 folium --max-line-length=120` | ||
* resolve all errors | ||
8. Commit those changes | ||
``` | ||
git add file1 file2 file3 | ||
git commit -m 'a descriptive commit message' | ||
``` | ||
9. Push your updated branch to your fork | ||
``` | ||
git push origin name-of-your-branch | ||
``` | ||
10. [Open a pull request](https://help.github.com/articles/creating-a-pull-request/) to the python-visualization/folium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ examples/results/* | |
/codestyles/*.xml | ||
/_mac/*.xml | ||
/inspection/*.xml | ||
geckodriver.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters