Skip to content

Commit dab0fda

Browse files
committed
Initial package
1 parent 6222d29 commit dab0fda

File tree

7 files changed

+17
-24
lines changed

7 files changed

+17
-24
lines changed

README.rst

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
template-package
2-
================
1+
colcon-ansi-colors-example
2+
==========================
33

4-
An extension for `colcon-core <https://github.com/colcon/colcon-core>`_ to act as a template for new extensions.
5-
6-
When using this template, be sure to replace all instances of the word "template" in the repository::
7-
8-
$ find * -type f | xargs sed -i 's/template-package/colcon-package-name/g'
9-
$ find * -type f | xargs sed -i 's/template_package/colcon_package_name/g'
10-
$ mv template_package colcon_package_name
11-
$ grep -iR template *
4+
An extension for `colcon-core <https://github.com/colcon/colcon-core>`_ to colorize output using ANSI sequences.
File renamed without changes.

setup.cfg

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[metadata]
2-
name = template-package
3-
version = attr: template_package.__version__
2+
name = colcon-ansi-colors-example
3+
version = attr: colcon_ansi_colors_example.__version__
44
url = https://colcon.readthedocs.io
55
project_urls =
6-
Changelog = https://github.com/colcon/template-package/milestones?direction=desc&sort=due_date&state=closed
7-
GitHub = https://github.com/colcon/template-package/
8-
author = Colcon Template Author
9-
author_email = [email protected]
6+
Changelog = https://github.com/colcon/colcon-ansi-colors-example/milestones?direction=desc&sort=due_date&state=closed
7+
GitHub = https://github.com/colcon/colcon-ansi-colors-example/
8+
author = Scott K Logan
9+
author_email = [email protected]
1010
classifiers =
1111
Development Status :: 3 - Alpha
1212
Environment :: Plugins
@@ -17,14 +17,14 @@ classifiers =
1717
Programming Language :: Python
1818
Topic :: Software Development :: Build Tools
1919
license = Apache License, Version 2.0
20-
description = Extension for colcon to serve as a template for new extensions.
20+
description = Extension for colcon to colorize output using ANSI.
2121
long_description = file: README.rst
2222
keywords = colcon
2323

2424
[options]
2525
python_requires = >=3.6
2626
install_requires =
27-
colcon-core
27+
colcon-core >= 0.19.0
2828
packages = find:
2929
zip_safe = true
3030

@@ -46,7 +46,7 @@ test =
4646
scspell3k>=2.2
4747

4848
[tool:pytest]
49-
junit_suite_name = template-package
49+
junit_suite_name = colcon-ansi-colors-example
5050
markers =
5151
flake8
5252
linter
@@ -57,4 +57,4 @@ markers =
5757
import-order-style = google
5858

5959
[coverage:run]
60-
source = template_package
60+
source = colcon_ansi_colors_example

stdeb.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[template-package]
1+
[colcon-ansi-colors-example]
22
No-Python2:
33
Depends3: python3-colcon-core
44
Suite: focal jammy noble bookworm trixie

test/spell_check.words

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
ansi
12
apache
23
colcon
34
iterdir

test/test_flake8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_flake8():
3333
sys.stdout = sys.stderr
3434
# implicitly calls report_errors()
3535
report = style_guide.check_files([
36-
str(Path(__file__).parents[1] / 'template_package'),
36+
str(Path(__file__).parents[1] / 'colcon_ansi_colors_example'),
3737
])
3838
report_tests = style_guide_tests.check_files([
3939
str(Path(__file__).parents[1] / 'test'),

test/test_spell_check.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
@pytest.fixture(scope='module')
1212
def known_words():
13-
global spell_check_words_path
1413
return spell_check_words_path.read_text().splitlines()
1514

1615

@@ -22,7 +21,7 @@ def test_spell_check(known_words):
2221

2322
source_filenames = [Path(__file__).parents[1] / 'setup.py'] + \
2423
list(
25-
(Path(__file__).parents[1] / 'template_package')
24+
(Path(__file__).parents[1] / 'colcon_ansi_colors_example')
2625
.glob('**/*.py')) + \
2726
list((Path(__file__).parents[1] / 'test').glob('**/*.py'))
2827

0 commit comments

Comments
 (0)