Skip to content

Commit

Permalink
fixing release commands and adding Code Health badge
Browse files Browse the repository at this point in the history
  • Loading branch information
asmodehn committed Feb 13, 2018
1 parent b79846a commit 4bab7d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
|Build Status|
|Build Status| |Code Health|

Pyros-msgs
==========
Expand All @@ -18,6 +18,9 @@ ROS
.. |Build Status| image:: https://travis-ci.org/pyros-dev/pyros-msgs.svg?branch=master
:target: https://travis-ci.org/pyros-dev/pyros-msgs

.. |Code Health| image:: https://landscape.io/github/pyros-dev/pyros-msgs/master/landscape.svg?style=flat
:target: https://landscape.io/github/pyros-dev/pyros-msgs/master
:alt: Code Health
Testing
-------
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import runpy

# Ref : https://packaging.python.org/single_source_version/#single-sourcing-the-version
# runpy is safer and a beter habit than exec
# runpy is safer and a better habit than exec
version = runpy.run_path('pyros_msgs/_version.py')
__version__ = version.get('__version__')

Expand Down Expand Up @@ -47,7 +47,7 @@ def run(self):
# $ gitchangelog >CHANGELOG.rst
# change version in code and changelog
subprocess.check_call(
"git commit CHANGELOG.rst pyros_msgs/typecheck/_version.py -m 'v{0}'".format(__version__), shell=True)
"git commit CHANGELOG.rst pyros_msgs/_version.py -m 'v{0}'".format(__version__), shell=True)
subprocess.check_call("git push", shell=True)

print("You should verify travis checks, and you can publish this release with :")
Expand Down Expand Up @@ -220,6 +220,8 @@ def run(self):
'numpy>=1.8.2', # from trusty version
],
cmdclass={
'prepare_release': PrepareReleaseCommand,
'publish': PublishCommand,
'rosdevelop': RosDevelopCommand,
'rospublish': ROSPublishCommand,
},
Expand Down

0 comments on commit 4bab7d8

Please sign in to comment.