annotate CONTRIBUTING.rst @ 14:628f82e72d72

Version as released on PyPI 0.1.0
author Vimalkumar Velayudhan <vimal@biotechcoder.com>
date Wed, 26 Aug 2015 16:37:10 +0100
parents 096c6bbf4a04
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
1 ============
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
2 Contributing
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
3 ============
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
4
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
5 Contributions are welcome, and they are greatly appreciated! Every
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
6 little bit helps, and credit will always be given.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
7
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
8 You can contribute in many ways:
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
9
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
10 Types of Contributions
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
11 ----------------------
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
12
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
13 Report Bugs
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
14 ~~~~~~~~~~~
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
15
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
16 Report bugs at https://github.com/vimalkumarvelayudhan/riboplot/issues.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
17
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
18 If you are reporting a bug, please include:
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
19
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
20 * Your operating system name and version.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
21 * Any details about your local setup that might be helpful in troubleshooting.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
22 * Detailed steps to reproduce the bug.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
23
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
24 Fix Bugs
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
25 ~~~~~~~~
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
26
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
27 Look through the GitHub issues for bugs. Anything tagged with "bug"
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
28 is open to whoever wants to implement it.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
29
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
30 Implement Features
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
31 ~~~~~~~~~~~~~~~~~~
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
32
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
33 Look through the GitHub issues for features. Anything tagged with "feature"
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
34 is open to whoever wants to implement it.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
35
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
36 Write Documentation
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
37 ~~~~~~~~~~~~~~~~~~~
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
38
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
39 RiboPlot could always use more documentation, whether as part of the
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
40 official RiboPlot docs, in docstrings, or even on the web in blog posts,
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
41 articles, and such.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
42
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
43 Submit Feedback
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
44 ~~~~~~~~~~~~~~~
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
45
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
46 The best way to send feedback is to file an issue at https://github.com/vimalkumarvelayudhan/riboplot/issues.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
47
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
48 If you are proposing a feature:
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
49
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
50 * Explain in detail how it would work.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
51 * Keep the scope as narrow as possible, to make it easier to implement.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
52 * Remember that this is a volunteer-driven project, and that contributions
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
53 are welcome :)
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
54
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
55 Get Started!
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
56 ------------
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
57
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
58 Ready to contribute? Here's how to set up `riboplot` for local development.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
59
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
60 1. Fork the `riboplot` repo on GitHub.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
61 2. Clone your fork locally::
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
62
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
63 $ git clone git@github.com:your_name_here/riboplot.git
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
64
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
65 3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
66
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
67 $ mkvirtualenv riboplot
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
68 $ cd riboplot/
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
69 $ python setup.py develop
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
70
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
71 4. Create a branch for local development::
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
72
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
73 $ git checkout -b name-of-your-bugfix-or-feature
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
74
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
75 Now you can make your changes locally.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
76
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
77 5. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox::
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
78
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
79 $ flake8 riboplot tests
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
80 $ python setup.py test
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
81 $ tox
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
82
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
83 To get flake8 and tox, just pip install them into your virtualenv.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
84
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
85 6. Commit your changes and push your branch to GitHub::
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
86
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
87 $ git add .
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
88 $ git commit -m "Your detailed description of your changes."
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
89 $ git push origin name-of-your-bugfix-or-feature
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
90
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
91 7. Submit a pull request through the GitHub website.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
92
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
93 Pull Request Guidelines
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
94 -----------------------
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
95
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
96 Before you submit a pull request, check that it meets these guidelines:
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
97
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
98 1. The pull request should include tests.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
99 2. If the pull request adds functionality, the docs should be updated. Put
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
100 your new functionality into a function with a docstring, and add the
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
101 feature to the list in README.rst.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
102 3. The pull request should work for Python 2.6, 2.7, 3.3, and 3.4, and for PyPy. Check
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
103 https://travis-ci.org/vimalkumarvelayudhan/riboplot/pull_requests
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
104 and make sure that the tests pass for all supported Python versions.
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
105
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
106 Tips
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
107 ----
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
108
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
109 To run a subset of tests::
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
110
628f82e72d72 Version as released on PyPI 0.1.0
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents: 7
diff changeset
111 $ python -m unittest tests.test_riboplot