Contributing to an os project
-
Upload
lasse-schuirmann -
Category
Software
-
view
124 -
download
0
Transcript of Contributing to an os project
![Page 1: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/1.jpg)
Contributing to an OS Project On the example of coala
![Page 2: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/2.jpg)
WHOAMI
![Page 3: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/3.jpg)
TODO:
- Do a contribution- Learn workflows- Discuss workflows
![Page 4: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/4.jpg)
TODO at Home
- Contribute outside!- Have fun!
![Page 5: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/5.jpg)
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](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/6.jpg)
Welcome!
![Page 7: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/7.jpg)
Join tinyurl.com/coala-workshop
![Page 8: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/8.jpg)
![Page 9: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/9.jpg)
Grab an issue attinyurl.com/coala-newhttp://www.tickcounter.com/5minutes
![Page 10: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/10.jpg)
![Page 11: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/11.jpg)
![Page 12: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/12.jpg)
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](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/13.jpg)
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](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/14.jpg)
Fork and Clone
![Page 15: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/15.jpg)
![Page 16: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/16.jpg)
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](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/17.jpg)
Staging
![Page 18: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/18.jpg)
$ git commit --all
![Page 19: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/19.jpg)
![Page 20: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/20.jpg)
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](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/21.jpg)
$ git push
![Page 22: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/22.jpg)
Let’s Code
- Code- $ git commit --all- $ git push- Create a Pull Request
![Page 23: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/23.jpg)
Code Review
![Page 24: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/24.jpg)
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](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/25.jpg)
$ git commit --amend --all
![Page 26: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/26.jpg)
Rebase
![Page 27: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/27.jpg)
$ git remote add upstream <url>$ git fetch upstream$ git rebase -i upstream/master
![Page 28: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/28.jpg)
Discussion:Pro’s and con’s of this workflow
![Page 29: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/29.jpg)
Discussion:What other workflows do you know?
![Page 30: Contributing to an os project](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/30.jpg)
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](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/31.jpg)
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](https://reader031.fdocuments.in/reader031/viewer/2022022202/587ff0b41a28ab46228b710d/html5/thumbnails/32.jpg)
Feedbackhttp://tinyurl.com/cos-workshop