djangocms_blog/CONTRIBUTING.rst

115 lines
3.1 KiB
ReStructuredText
Raw Normal View History

2014-01-05 09:34:10 +00:00
============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
2016-06-26 10:25:12 +00:00
little bit helps, and credit will always be given.
2014-01-05 09:34:10 +00:00
You can contribute in many ways:
2016-06-26 10:25:12 +00:00
**********************
2014-01-05 09:34:10 +00:00
Types of Contributions
2016-06-26 10:25:12 +00:00
**********************
2014-01-05 09:34:10 +00:00
Report Bugs
2016-06-26 10:25:12 +00:00
===========
2014-01-05 09:34:10 +00:00
Report bugs at https://github.com/nephila/djangocms-blog/issues.
2014-01-05 09:34:10 +00:00
If you are reporting a bug, please include:
* Your operating system name and version.
* Any details about your local setup that might be helpful in troubleshooting.
* Detailed steps to reproduce the bug.
Fix Bugs
2016-06-26 10:25:12 +00:00
========
2014-01-05 09:34:10 +00:00
Look through the GitHub issues for bugs. Anything tagged with "bug"
is open to whoever wants to implement it.
Implement Features
2016-06-26 10:25:12 +00:00
==================
2014-01-05 09:34:10 +00:00
Look through the GitHub issues for features. Anything tagged with "feature"
is open to whoever wants to implement it.
Write Documentation
2016-06-26 10:25:12 +00:00
===================
2014-01-05 09:34:10 +00:00
2016-06-26 10:25:12 +00:00
djangocms-blog could always use more documentation, whether as part of the
2014-01-05 09:34:10 +00:00
official djangocms-blog docs, in docstrings, or even on the web in blog posts,
articles, and such.
Submit Feedback
2016-06-26 10:25:12 +00:00
===============
2014-01-05 09:34:10 +00:00
The best way to send feedback is to file an issue at https://github.com/nephila/djangocms-blog/issues.
2014-01-05 09:34:10 +00:00
If you are proposing a feature:
* Explain in detail how it would work.
* Keep the scope as narrow as possible, to make it easier to implement.
* Remember that this is a volunteer-driven project, and that contributions
are welcome :)
2016-06-26 10:25:12 +00:00
************
2014-01-05 09:34:10 +00:00
Get Started!
2016-06-26 10:25:12 +00:00
************
2014-01-05 09:34:10 +00:00
Ready to contribute? Here's how to set up `djangocms-blog` for local development.
1. Fork the `djangocms-blog` repo on GitHub.
2. Clone your fork locally::
$ git clone git@github.com:your_name_here/djangocms-blog.git
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
$ mkvirtualenv djangocms-blog
$ cd djangocms-blog/
$ python setup.py develop
4. Create a branch for local development::
$ git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally.
5. When you're done making changes, check that your changes pass flake8 and the
tests, including testing other Python versions with tox::
$ tox
2016-06-26 10:25:12 +00:00
To get tox, just pip install them into your virtualenv.
2014-01-05 09:34:10 +00:00
6. Commit your changes and push your branch to GitHub::
$ git add .
$ git commit -m "Your detailed description of your changes."
$ git push origin name-of-your-bugfix-or-feature
7. Submit a pull request through the GitHub website.
2016-06-26 10:25:12 +00:00
***********************
2014-01-05 09:34:10 +00:00
Pull Request Guidelines
2016-06-26 10:25:12 +00:00
***********************
2014-01-05 09:34:10 +00:00
Before you submit a pull request, check that it meets these guidelines:
1. The pull request should include tests.
2. If the pull request adds functionality, the docs should be updated. Put
your new functionality into a function with a docstring, and add the
feature to the list in README.rst.
2016-06-26 10:25:12 +00:00
3. The pull request should work for Python 2.7, 3.4, and 3.5. Check
https://travis-ci.org/nephila/djangocms-blog/pull_requests
2014-01-05 09:34:10 +00:00
and make sure that the tests pass for all supported Python versions.
2016-06-26 10:25:12 +00:00
****
2014-01-05 09:34:10 +00:00
Tips
2016-06-26 10:25:12 +00:00
****
2014-01-05 09:34:10 +00:00
To run a subset of tests::
2016-06-26 10:25:12 +00:00
$ python cms_helper.py test tests.test_views