contributing to an os project

32
Contributing to an OS Project On the example of coala

Upload: lasse-schuirmann

Post on 19-Jan-2017

124 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Contributing to an os project

Contributing to an OS Project On the example of coala

Page 2: Contributing to an os project

WHOAMI

Page 3: Contributing to an os project

TODO:

- Do a contribution- Learn workflows- Discuss workflows

Page 4: Contributing to an os project

TODO at Home

- Contribute outside!- Have fun!

Page 5: Contributing to an os project

Who is Who?

- Name- Experience with OS- GitHub Nick- Organization- Logo (Note)- Expectations (Note)

Prep: 3 minutesThen: 2 minutes each

Page 6: Contributing to an os project

Welcome!

Page 7: Contributing to an os project

Join tinyurl.com/coala-workshop

Page 8: Contributing to an os project
Page 9: Contributing to an os project

Grab an issue attinyurl.com/coala-newhttp://www.tickcounter.com/5minutes

Page 10: Contributing to an os project
Page 11: Contributing to an os project
Page 12: Contributing to an os project

A Git Commit

diff --git a/presentation/Makefile b/presentation/Makefileindex f0c41e9..093b844 100644--- a/presentation/Makefile+++ b/presentation/Makefile@@ -10,5 +10,5 @@ continuous: default

_compile: @echo -n "Compiling markdown to pdf..."- @pandoc $(PRES) -s -o $(TARGET)+ @pandoc $(PRES) -s -o $(TARGET) -V classoption:aspectratio=169 @echo " DONE."

Page 13: Contributing to an os project

Install and Configure

- You should have git (git-scm.com)- On windows:

- $ git config --global core.editor notepad

$ git config --global user.name "Ford Prefect"$ git config --global user.email [email protected]

http://www.tickcounter.com/15minutes

Page 14: Contributing to an os project

Fork and Clone

Page 15: Contributing to an os project
Page 16: Contributing to an os project

Fork and Pull: Excercise

- https://github.com/coala-analyzer/coala/- https://github.com/coala-analyzer/coala-bears/- Fork!- Star, optionally.- Don’t watch!- git clone <url-of-your-fork-shown-by-github>

http://www.tickcounter.com/10minutes

Page 17: Contributing to an os project

Staging

Page 18: Contributing to an os project

$ git commit --all

Page 19: Contributing to an os project
Page 20: Contributing to an os project

setup: Install .coafile via package_data

When installing the .coafile todistutils.sysconfig.get_python_lib, we ignore that thisis not the installation directory in every case. Thusit is easier, more reliable and platform independent tolet distutils install it by itself.

Fixes https://github.com/coala-analyzer/coala/issues/269

Page 21: Contributing to an os project

$ git push

Page 22: Contributing to an os project

Let’s Code

- Code- $ git commit --all- $ git push- Create a Pull Request

Page 23: Contributing to an os project

Code Review

Page 24: Contributing to an os project

setup: Install .coafile via package_data

When installing the .coafile todistutils.sysconfig.get_python_lib, we ignore that thisis not the installation directory in every case. Thusit is easier, more reliable and platform independent tolet distutils install it by itself.

Fixes https://github.com/coala-analyzer/coala/issues/269

Page 25: Contributing to an os project

$ git commit --amend --all

Page 26: Contributing to an os project

Rebase

Page 27: Contributing to an os project

$ git remote add upstream <url>$ git fetch upstream$ git rebase -i upstream/master

Page 28: Contributing to an os project

Discussion:Pro’s and con’s of this workflow

Page 29: Contributing to an os project

Discussion:What other workflows do you know?

Page 30: Contributing to an os project

What Else Would you Like to Hear?

- What is coala- Designing Software- Testing Software- Internationalization and Localization- Advanced Git- Continuous Integration

Page 31: Contributing to an os project

This Workshop is Free

But I need to pay may rent. You can help me:

- Provide a quote- Provide feedback- Hire me- Have fun contribute open source - and tell me about it!

Lasse Schuirmann - http://viperdev.io/

Page 32: Contributing to an os project

Feedbackhttp://tinyurl.com/cos-workshop