mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge branch 'develop' of git://github.com/saltstack/salt into develop
This commit is contained in:
commit
cd274352bf
26
HACKING
26
HACKING
@ -1,26 +0,0 @@
|
|||||||
Hacking on Salt
|
|
||||||
===============
|
|
||||||
|
|
||||||
Contributing
|
|
||||||
------------
|
|
||||||
|
|
||||||
TODO
|
|
||||||
|
|
||||||
|
|
||||||
Running Tests
|
|
||||||
-------------
|
|
||||||
|
|
||||||
To run the full suite, you'll need mock:
|
|
||||||
|
|
||||||
`pip install mock`
|
|
||||||
|
|
||||||
On Python < 2.7, unittest compatibility is provided by unittest2
|
|
||||||
|
|
||||||
`pip install unittest2`
|
|
||||||
|
|
||||||
|
|
||||||
Community
|
|
||||||
---------
|
|
||||||
|
|
||||||
The #salt irc channel is on irc.freenode.net
|
|
||||||
|
|
76
HACKING.rst
Normal file
76
HACKING.rst
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
Developing Salt
|
||||||
|
===============
|
||||||
|
|
||||||
|
If you want to help develop Salt there is a great need and your patches are
|
||||||
|
welcome!
|
||||||
|
|
||||||
|
To assist in Salt development, you can help in a number of ways.
|
||||||
|
|
||||||
|
Posting patches to the mailing list
|
||||||
|
-----------------------------------
|
||||||
|
|
||||||
|
If you have a patch for Salt, please format it via :command:`git format-patch` and
|
||||||
|
send it to the Salt users mailing list. This allows the patch to give you the
|
||||||
|
contributor the credit for your patch, and gives the Salt community an archive
|
||||||
|
of the patch and a place for discussion.
|
||||||
|
|
||||||
|
Setting a Github pull request
|
||||||
|
-----------------------------
|
||||||
|
|
||||||
|
This is probably the preferred method for contributions, simply create a Github
|
||||||
|
fork, commit your changes to the fork, and then open up a pull request.
|
||||||
|
|
||||||
|
Contributions Welcome!
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
The goal here it to make contributions clear, make sure there is a trail for
|
||||||
|
where the code has come from, but most importantly, to give credit where credit
|
||||||
|
is due!
|
||||||
|
|
||||||
|
The `Open Comparison Contributing Docs`__ has some good suggestions and tips for
|
||||||
|
those who are looking forward to contribute.
|
||||||
|
|
||||||
|
.. __: http://opencomparison.readthedocs.org/en/latest/contributing.html
|
||||||
|
|
||||||
|
Getting the tests running
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
Clone the repository using::
|
||||||
|
|
||||||
|
git clone https://github.com/saltstack/salt
|
||||||
|
|
||||||
|
File descriptor limit
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Check your file descriptor limit with::
|
||||||
|
|
||||||
|
ulimit -n
|
||||||
|
|
||||||
|
If it is less than 1024, you should increase it with::
|
||||||
|
|
||||||
|
ulimit -n 1024
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
|
First you'll want to create a `virtualenv`_. Once you've done that
|
||||||
|
install the requirements like so::
|
||||||
|
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
You'll also need ``mock`` to run the tests::
|
||||||
|
|
||||||
|
pip install mock
|
||||||
|
|
||||||
|
If you are on Python < 2.7 then you'll also need::
|
||||||
|
|
||||||
|
pip install unittest2
|
||||||
|
|
||||||
|
.. _`virtualenv`: http://pypi.python.org/pypi/virtualenv
|
||||||
|
|
||||||
|
Run them
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
|
Finally you use setup.py to run the tests with the following command::
|
||||||
|
|
||||||
|
./setup.py test
|
@ -75,36 +75,4 @@ Follow on ohloh
|
|||||||
|
|
||||||
https://www.ohloh.net/p/salt
|
https://www.ohloh.net/p/salt
|
||||||
|
|
||||||
Developing Salt
|
.. include:: hacking.rst
|
||||||
===============
|
|
||||||
|
|
||||||
If you want to help develop Salt there is a great need and your patches are
|
|
||||||
welcome!
|
|
||||||
|
|
||||||
To assist in Salt development, you can help in a number of ways.
|
|
||||||
|
|
||||||
Posting patches to the mailing list
|
|
||||||
-----------------------------------
|
|
||||||
|
|
||||||
If you have a patch for Salt, please format it via :command:`git format-patch` and
|
|
||||||
send it to the Salt users mailing list. This allows the patch to give you the
|
|
||||||
contributor the credit for your patch, and gives the Salt community an archive
|
|
||||||
of the patch and a place for discussion.
|
|
||||||
|
|
||||||
Setting a Github pull request
|
|
||||||
-----------------------------
|
|
||||||
|
|
||||||
This is probably the preferred method for contributions, simply create a Github
|
|
||||||
fork, commit your changes to the fork, and then open up a pull request.
|
|
||||||
|
|
||||||
Contributions Welcome!
|
|
||||||
----------------------
|
|
||||||
|
|
||||||
The goal here it to make contributions clear, make sure there is a trail for
|
|
||||||
where the code has come from, but most importantly, to give credit where credit
|
|
||||||
is due!
|
|
||||||
|
|
||||||
The `Open Comparison Contributing Docs`__ has some good suggestions and tips for
|
|
||||||
those who are looking forward to contribute.
|
|
||||||
|
|
||||||
.. __: http://opencomparison.readthedocs.org/en/latest/contributing.html
|
|
||||||
|
1
doc/topics/hacking.rst
Symbolic link
1
doc/topics/hacking.rst
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../HACKING
|
Loading…
Reference in New Issue
Block a user