Skip to content

Commit 2c1a2bf

Browse files
rossburtonbryteise
authored andcommitted
config: support tests_extras
Some test suites install files that can't be auto-detected, so support a tests-extras file to add extra files to the -tests package (not -extras-tests).
1 parent d46769b commit 2c1a2bf

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,12 @@ dev_extras
391391
functionality to place files used only for development against this
392392
software that Autospec does not automatically detect.
393393
394+
tests_extras
395+
Same as "extras" above, but instead of the files being placed in an
396+
``-extras`` subpackage, they will be placed in the ``-tests`` one. Use this
397+
functionality to place files used only for testing against this
398+
software that Autospec does not automatically detect.
399+
394400
${custom}_extras
395401
Same as "extras" above, but instead of the files being placed in an
396402
``-extras`` subpackage, they will be placed in the ``extras-${custom}``

autospec/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ def parse_config_files(self, path, bump, filemanager, version, requirements):
756756
if re.search(r'.+_extras$', fname):
757757
# Prefix all but blessed names with extras-
758758
name = fname[:-len("_extras")]
759-
if name not in ('dev'):
759+
if name not in ('dev', 'tests'):
760760
name = f'extras-{name}'
761761
elif fname == 'extras':
762762
name = 'extras'

0 commit comments

Comments
 (0)