Skip to content

Latest commit

 

History

History
67 lines (54 loc) · 2.45 KB

Contrib.rst

File metadata and controls

67 lines (54 loc) · 2.45 KB

Contributing to Skyfield

There are many ways you can contribute to Skyfield.

  • Contributing documentation in the form of python doc, and documents like this.
  • Using Skyfield; reporting bugs and patches into the issue tracker.
  • Following up on current Issues by posting comments in the issue tracker and/or submitting pull requests.

Contributing Overview

Because we are using Github the process for contributing is as follows:

  1. We acquire a github account.
  1. We fork Brandon/Skyfield's repo.
  1. We git clone our Fork to a local working copy on our own machine.
  1. We create development branches in our own working copy.
  • git checkout -b Issue31
  1. We code by adding/modifying/deleting documentation or code
  2. We commit
  • git commit -m "#31 Fix involved: blah blah blah"
  1. We push our fix branches to our Forked repo.
  • git push origin Issue31
  1. On Github we submit a pull request from this forked branch into Brandon/Skyfield's main repo.

Very small Git Example of Contributing

You can experiment with what works for you from a git perspective. The following is just some examples of what a developer can do.

  1. Created a Fork in my own github space.
  2. Cloned my Forks master branch.
  1. Add skyfield reference to my local git repo.
  • git remote add skyfield [email protected]:skyfielders/python-skyfield.git
  • git fetch skyfield
  • git branch -r <-- Shows me what remote repo's I have fetched references from
  1. Make sure my master is up to date with the main repo.
  • git checkout master
  • git rebase skyfield/master
  1. Fork a development branch
  • git checkout -b fix42
  1. Commit the change
  • git commit -m "#42 I fixed by ....."
  1. Push the development branch to GitHub
  • git push origin fix42
  1. Login to GitHub and issue a Pull request for my fix42 branch

From this point you can actually keep fetching from skyfield repo as follows:

  1. Make sure things are up to date
  • git checkout master
  • git rebase skyfield/master
  1. create a new development branch
  • git checkout -b issue43

You could even do this:

  • git fetch skyfield
  • git checkout -b issue43 skyfield/master