X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fceph-detect-init%2FREADME.rst;fp=src%2Fceph%2Fsrc%2Fceph-detect-init%2FREADME.rst;h=e40f22fd9aaf0cf71a054387ed223e1a70078170;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/ceph-detect-init/README.rst b/src/ceph/src/ceph-detect-init/README.rst new file mode 100644 index 0000000..e40f22f --- /dev/null +++ b/src/ceph/src/ceph-detect-init/README.rst @@ -0,0 +1,28 @@ +ceph-detect-init +================ + +ceph-detect-init is a command line tool that displays a normalized +string describing the init system of the host on which it is running: + +Home page : https://pypi.python.org/pypi/ceph-detect-init + +Hacking +======= + +* Get the code : git clone https://git.ceph.com/ceph.git +* Run the unit tests : tox +* Run the integration tests (requires docker) : tox -e integration +* Check the documentation : rst2html < README.rst > /tmp/a.html +* Prepare a new version + + - 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 + +* Publish a new version + + - python setup.py sdist upload --sign + - git push ; git push --tags + +* pypi maintenance + + - python setup.py register # if the project does not yet exist + - trim old versions at https://pypi.python.org/pypi/ceph-detect-init