Skip to content

Latest commit

 

History

History
107 lines (67 loc) · 3.56 KB

HOWTOCONTRIBUTE.rst

File metadata and controls

107 lines (67 loc) · 3.56 KB

Contribution Guide

Contributions are highly welcomed and appreciated. Every little help counts, so do not hesitate!

The following sections cover some general guidelines regarding development in remote_climate_data for maintainers and contributors. Nothing here is set in stone and can't be changed. Feel free to suggest improvements or changes in the workflow.

How to contribute a new dataset

  • assign a new remote dataset to one of the catalogs: ocean, land, atmosphere or if nothing fits climate
  • assign a new remote shapefile to the shapefiles catalog
  • try to add "simplecache::" to the urlpath to allow caching
  • try to add documentation as URL and DOI in metadata
  • try to add informative quick plots to metadata.plot
  • try to account for many versions or variables with templating the urlpath with parameters

Report bugs

Report bugs for remote_climate_data in the issue tracker with the label "bug".

If you are reporting a bug, please include:

  • Your operating system name and version.
  • Any details about your local setup that might be helpful in troubleshooting, specifically the Python interpreter version and installed libraries.
  • Detailed steps to reproduce the bug.

Fix bugs

Look through the GitHub issues for bugs.

Talk to developers to find out how you can fix specific bugs.

Preparing Pull Requests

  1. Fork the remote_climate_data GitHub repository. It's fine to use remote_climate_data as your fork repository name because it will live under your user.
  2. Clone your fork locally using git, connect your repository to the upstream (main project), and create a branch:

    $ git clone git@github.com:YOUR_GITHUB_USERNAME/remote_climate_data.git
    $ cd remote_climate_data
    $ git remote add upstream git@github.com:aaronspring/remote_climate_data.git
    
    # now, to fix a bug or add feature create your own branch off "master":
    
    $ git checkout -b your-bugfix-feature-branch-name master

    If you need some help with Git, follow this quick start guide: https://git.wiki.kernel.org/index.php/QuickStart

  3. Install dependencies into a new conda environment:

    $ conda env update -f ci/environment-dev-3.7.yml
    $ conda activate remote_climate_data-dev
  4. Make an editable install of remote_climate_data by running:

    $ pip install -e .
  5. Break your edits up into reasonably sized commits:

    $ git commit -a -m "<commit message>"
    $ git push -u
  6. Create a new changelog entry in CHANGELOG.rst:

    • The entry should be entered as:

    <description> (:pr:`#<pull request number>) <author's names>`_

    where <description> is the description of the PR related to the change and <pull request number> is the pull request number and <author's names> are your first and last names.

  7. Finally, submit a pull request through the GitHub website using this data:

    head-fork: YOUR_GITHUB_USERNAME/remote_climate_data
    compare: your-branch-name
    
    base-fork: aaronspring/remote_climate_data
    base: master

Note that you can create the Pull Request while you're working on this. The PR will update as you add more commits. remote_climate_data developers and contributors can then review your code and offer suggestions.