diff --git a/README.rst b/README.rst index 4f2c60f..78dbaa8 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,4 @@ -colcon-ansi-colors-example -========================== +colcon-ansi-colors +================== An extension for `colcon-core `_ to colorize output using ANSI sequences. diff --git a/colcon_ansi_colors_example/__init__.py b/colcon_ansi_colors/__init__.py similarity index 100% rename from colcon_ansi_colors_example/__init__.py rename to colcon_ansi_colors/__init__.py diff --git a/colcon_ansi_colors_example/output_style/__init__.py b/colcon_ansi_colors/output_style/__init__.py similarity index 100% rename from colcon_ansi_colors_example/output_style/__init__.py rename to colcon_ansi_colors/output_style/__init__.py diff --git a/colcon_ansi_colors_example/output_style/catkin_tools.py b/colcon_ansi_colors/output_style/catkin_tools.py similarity index 97% rename from colcon_ansi_colors_example/output_style/catkin_tools.py rename to colcon_ansi_colors/output_style/catkin_tools.py index 01eb49d..745b686 100644 --- a/colcon_ansi_colors_example/output_style/catkin_tools.py +++ b/colcon_ansi_colors/output_style/catkin_tools.py @@ -75,7 +75,7 @@ def apply_style(self, style): # noqa: D102 style.PackageOrJobName = AnsiEscape.Cyan style.Pictogram = AnsiEscape.Bright + AnsiEscape.Green style.SectionStart = AnsiEscape.Default - style.SectionEnd = AnsiEscape.Bright + AnsiEscape.Black + style.SectionEnd = AnsiEscape.Faint + AnsiEscape.Default style.Strong = AnsiEscape.Bright style.Success = AnsiEscape.Green style.Warning = AnsiEscape.Yellow diff --git a/setup.cfg b/setup.cfg index f0ee6d3..fb03f9c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,10 +1,10 @@ [metadata] -name = colcon-ansi-colors-example -version = attr: colcon_ansi_colors_example.__version__ +name = colcon-ansi-colors +version = attr: colcon_ansi_colors.__version__ url = https://colcon.readthedocs.io project_urls = - Changelog = https://github.com/colcon/colcon-ansi-colors-example/milestones?direction=desc&sort=due_date&state=closed - GitHub = https://github.com/colcon/colcon-ansi-colors-example/ + Changelog = https://github.com/colcon/colcon-ansi-colors/milestones?direction=desc&sort=due_date&state=closed + GitHub = https://github.com/colcon/colcon-ansi-colors/ author = Scott K Logan author_email = logans@cottsay.net classifiers = @@ -46,17 +46,17 @@ test = scspell3k>=2.2 [tool:pytest] -junit_suite_name = colcon-ansi-colors-example +junit_suite_name = colcon-ansi-colors markers = flake8 linter [options.entry_points] colcon_core.output_style = - catkin_tools = colcon_ansi_colors_example.output_style.catkin_tools:CatkinToolsOutputStyle + catkin_tools = colcon_ansi_colors.output_style.catkin_tools:CatkinToolsOutputStyle [flake8] import-order-style = google [coverage:run] -source = colcon_ansi_colors_example +source = colcon_ansi_colors diff --git a/stdeb.cfg b/stdeb.cfg index de7192a..b7c2c49 100644 --- a/stdeb.cfg +++ b/stdeb.cfg @@ -1,4 +1,4 @@ -[colcon-ansi-colors-example] +[colcon-ansi-colors] No-Python2: Depends3: python3-colcon-core Suite: focal jammy noble bookworm trixie diff --git a/test/test_flake8.py b/test/test_flake8.py index 4d61d64..e237cc1 100644 --- a/test/test_flake8.py +++ b/test/test_flake8.py @@ -33,7 +33,7 @@ def test_flake8(): sys.stdout = sys.stderr # implicitly calls report_errors() report = style_guide.check_files([ - str(Path(__file__).parents[1] / 'colcon_ansi_colors_example'), + str(Path(__file__).parents[1] / 'colcon_ansi_colors'), ]) report_tests = style_guide_tests.check_files([ str(Path(__file__).parents[1] / 'test'), diff --git a/test/test_spell_check.py b/test/test_spell_check.py index 9ca9a66..49e9c7c 100644 --- a/test/test_spell_check.py +++ b/test/test_spell_check.py @@ -21,7 +21,7 @@ def test_spell_check(known_words): source_filenames = [Path(__file__).parents[1] / 'setup.py'] + \ list( - (Path(__file__).parents[1] / 'colcon_ansi_colors_example') + (Path(__file__).parents[1] / 'colcon_ansi_colors') .glob('**/*.py')) + \ list((Path(__file__).parents[1] / 'test').glob('**/*.py'))