-
Notifications
You must be signed in to change notification settings - Fork 13
[DOC] move installation instructions to .rst #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d322369
Update plot_basic_tutorial.py
flothesof f53daa1
rewrite installation instructions
flothesof 40414ef
move contribution tutorial to separate page
flothesof 81dbe94
change contributors attribution
flothesof d43f000
change navbar
flothesof File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
|
|
||
| Contributing to tofu | ||
| ==================== | ||
|
|
||
| You found a bug, or you want to add something to the library ? This | ||
| tutorial will show you how to get the repository and the first steps to | ||
| contribute to the project. | ||
|
|
||
| There are many tools and concepts to get familiar with when contributing | ||
| to an **open-source python library**. A good place to get started is the | ||
| `scikit-project <https://github.com/nathanshammah/scikit-project>`__. | ||
| And here is a list of tools you should get familiar with: | ||
|
|
||
| - ``Python``: the main language of **tofu** | ||
| - ``IPython``: powerful interactive shell for python, and check this | ||
| `tutorial <https://ipython.org/ipython-doc/3/interactive/tutorial.html>`__ | ||
| - ``git``, and the `feature branch | ||
| workflow <https://www.atlassian.com/git/tutorials/comparing-workflows/feature-branch-workflow>`__ | ||
| - ``github``: follow and watch `our | ||
| project <https://github.com/ToFuProject/tofu>`__ | ||
| - A text editor: ``emacs``, ``vim``, ``sublime``, or whichever you want | ||
|
|
||
|
|
||
| We will use Miniconda (light version of Anaconda, but you can also work | ||
| with Anaconda or another python package manager of your choice) not only | ||
| to install and manage the packages necessary for installing ToFu, but | ||
| also to have a working bash-like Terminal. | ||
|
|
||
| - `Get the latest version and install | ||
| it. <https://docs.conda.io/en/latest/miniconda.html>`__ | ||
| - Follow the directions (you can use default options) | ||
|
|
||
| We are going to create an environment specific for ToFu. | ||
|
|
||
| :: | ||
|
|
||
| $ conda create -n tofu3 python scipy numpy cython git ipython | ||
| $ conda activate tofu3 | ||
|
|
||
| This creates a conda environment named "tofu3" and installs scipy, | ||
| numpy, git, ipython and cython. The second command activates this | ||
| environment. | ||
|
|
||
| - Create a ssh public key and add it to your GitHub account: `follow | ||
| this | ||
| tutorial. <https://help.github.com/en/articles/adding-a-new-ssh-key-to-your-github-account>`__ | ||
| - Go to ToFu's GitHub repository: | ||
| `here. <https://github.com/ToFuProject/tofu/>`__ | ||
| - Click on "clone or download" and swith to the option "Use SSH". Copy | ||
| the link. | ||
| - Move to where you would like to install ToFu ``$ cd some_path`` | ||
| - ``$ git clone git@github.com:ToFuProject/tofu.git`` (make sure you | ||
| remember the path where you are installing, if you want to install it | ||
| into your home repository, just make sure to ``cd ~`` before the | ||
| ``git clone...``) | ||
|
|
||
|
|
||
| - Move to the tofu directory, probably: ``cd ~/tofu`` | ||
| - Switch to the ``git`` branch you will be working on. If you are just | ||
| starting you probably want to start from the latest develop branch: | ||
| ``git checkout devel``. If you are not familiar with **git** take a | ||
| look at `this tutorial | ||
| (long) <https://www.atlassian.com/git/tutorials>`__ or `this short | ||
| one <https://rogerdudler.github.io/git-guide/>`__ | ||
| - Compile ``python setup.py build_ext --inplace`` | ||
| - Make sure tests are running ``nosetests`` | ||
|
|
||
|
|
||
|
|
||
| If you wish to contribute, but don't know where to start, check `our | ||
| open issues <https://github.com/ToFuProject/tofu/issues>`__. You can | ||
| also read `this | ||
| tutorial <https://github.com/firstcontributions/first-contributions>`__, | ||
| on how to contribute to a github project. Before modifying the code, you | ||
| should create a new branch (based on the *devel* branch) and switch to it. | ||
|
|
||
| :: | ||
|
|
||
| git checkout -b <theNameOfYourBranch> # probably IssueNumber eg. Issue123 | ||
| # change the source code | ||
| git add <files you changed> | ||
| git commit -m "[a tag] a message that explains what you changed" | ||
| git push -u origin <theNameOfYourBranch> | ||
|
|
||
| Now you can open a pull request in our `github | ||
| page <https://github.com/ToFuProject/tofu/pulls>`__, from your branch, | ||
| ``theNameOfYourBranch`` to ``devel``. We will review it, comment it, and | ||
| accept it. | ||
|
|
||
|
|
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The final version of this should be (partially) based on big projects. I think this is the direction most open source projects aiming, to have a homogeneity across all projects.