Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / ceph-detect-init / README.rst
1 ceph-detect-init
2 ================
3
4 ceph-detect-init is a command line tool that displays a normalized
5 string describing the init system of the host on which it is running:
6
7 Home page : https://pypi.python.org/pypi/ceph-detect-init
8
9 Hacking
10 =======
11
12 * Get the code : git clone https://git.ceph.com/ceph.git
13 * Run the unit tests : tox
14 * Run the integration tests (requires docker) : tox -e integration
15 * Check the documentation : rst2html < README.rst > /tmp/a.html
16 * Prepare a new version
17
18  - version=1.0.0 ; perl -pi -e "s/^version.*/version='$version',/" setup.py ; do python setup.py sdist ; amend=$(git log -1 --oneline | grep --quiet "version $version" && echo --amend) ; git commit $amend -m "version $version" setup.py ; git tag -a -f -m "version $version" $version ; done
19
20 * Publish a new version
21
22  - python setup.py sdist upload --sign
23  - git push ; git push --tags
24
25 * pypi maintenance
26
27  - python setup.py register # if the project does not yet exist
28  - trim old versions at https://pypi.python.org/pypi/ceph-detect-init