Skip to content

Commit

Permalink
Bring rqt_topic rewrite together, use in main
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Flynn <[email protected]>
  • Loading branch information
evan-flynn-apexai committed Mar 25, 2024
1 parent 96a51b8 commit 3ed3ed7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions rqt_topic/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@

def main():
main = Main()
sys.exit(main.main(sys.argv, standalone='rqt_topic.topic.Topic'))
sys.exit(main.main(sys.argv, standalone="rqt_topic.topic.Topic"))


if __name__ == '__main__':
if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion rqt_topic/topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
class Topic(Plugin):
def __init__(self, context):
super(Topic, self).__init__(context)
self.setObjectName('Topic')
self.setObjectName("Topic")

self._widget = TopicWidget(context.node, self)

Expand Down
34 changes: 17 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from setuptools import setup

package_name = 'rqt_topic'
package_name = "rqt_topic"
setup(
name=package_name,
version='1.7.1',
package_dir={'': 'src'},
package_dir={'': '.'},
packages=[
package_name,
f'{package_name}/models',
Expand All @@ -18,27 +18,27 @@
('share/' + package_name, ['package.xml']),
('share/' + package_name, ['plugin.xml']),
],
install_requires=['setuptools'],
install_requires=["setuptools"],
zip_safe=True,
author='Dorian Scholz',
maintainer='Brandon Ong',
maintainer_email='[email protected]',
keywords=['ROS'],
author="Dorian Scholz",
maintainer="Brandon Ong",
maintainer_email="[email protected]",
keywords=["ROS"],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Topic :: Software Development',
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Topic :: Software Development",
],
description=(
'rqt_topic provides a GUI plugin for displaying debug information about ROS topics '
'including publishers, subscribers, publishing rate, and ROS Messages.'
"rqt_topic provides a GUI plugin for displaying debug information about ROS topics "
"including publishers, subscribers, publishing rate, and ROS Messages."
),
license='BSD',
tests_require=['pytest'],
license="BSD",
tests_require=["pytest"],
entry_points={
'console_scripts': [
'rqt_topic = ' + package_name + '.main:main',
"console_scripts": [
"rqt_topic = " + package_name + ".main:main",
],
},
)
4 changes: 2 additions & 2 deletions test/test_xmllint.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
@pytest.mark.linter
@pytest.mark.xmllint
def test_xmllint():
rc = main(argv=['.'])
assert rc == 0, 'Found errors'
rc = main(argv=["."])
assert rc == 0, "Found errors"

0 comments on commit 3ed3ed7

Please sign in to comment.