Solution to issue cannot be found in the documentation.
[X] I checked the documentation.
Issue
I noticed that conda smithy regenerate started to fail with my conda-forge.yml because of the skip_render entries failing validation. So I created a minimal setup using ci-skeleton. It generated the following conda-forge.yml
When trying to regenerate, it raised the same error.
(conda_build) PS C:\Users\XXXX\Documents\workspace\test> conda-smithy regenerate
+ Exception Group Traceback (most recent call last):
| File "C:\Users\XXXX\.conda\envs\conda_build\Scripts\conda-smithy-script.py", line 9, in <module>
| sys.exit(main())
| File "C:\Users\XXXX\.conda\envs\conda_build\lib\site-packages\conda_smithy\cli.py", line 733, in main
| args.subcommand_func(args)
| File "C:\Users\XXXX\.conda\envs\conda_build\lib\site-packages\conda_smithy\cli.py", line 584, in __call__
| self._call(args, tmpdir)
| File "C:\Users\XXXX\.conda\envs\conda_build\lib\site-packages\conda_smithy\cli.py", line 589, in _call
| configure_feedstock.main(
| File "C:\Users\XXXX\.conda\envs\conda_build\lib\site-packages\conda_smithy\configure_feedstock.py", line 2537, in main
| config = _load_forge_config(forge_dir, exclusive_config_file, forge_yml)
| File "C:\Users\XXXX\.conda\envs\conda_build\lib\site-packages\conda_smithy\configure_feedstock.py", line 2087, in _load_forge_config
| config = _read_forge_config(forge_dir, forge_yml=forge_yml)
| File "C:\Users\XXXX\.conda\envs\conda_build\lib\site-packages\conda_smithy\configure_feedstock.py", line 2003, in _read_forge_config
| raise ExceptionGroup("lints", [*map(ValueError, validate_lints)])
| exceptiongroup.ExceptionGroup: lints (1 sub-exception)
+-+---------------- 1 ----------------
| ValueError: ['README.md', 'LICENSE.txt', '.gitattributes', '.gitignore', 'build-locally.py', 'LICENSE', '.github/CONTRIBUTING.md', '.github/ISSUE_TEMPLATE.md', '.github/PULL_REQUEST_TEMPLATE.md', '.github/workflows'] is not valid under any of the given schemas
|
| Failed validating 'anyOf' in schema['properties']['skip_render']:
| {'anyOf': [{'items': {'$ref': '#/$defs/BotConfigSkipRenderChoices'},
| 'type': 'array'},
| {'type': 'null'}],
| 'description': 'This option specifies a list of files which `conda '
| 'smithy` will skip rendering.\n'
| 'This is useful for files that are not templates, but '
| 'are still in the recipe\n'
| 'directory. The default value is an empty list [ ], '
| 'which will consider that\n'
| 'all files can be rendered. For example, if you want '
| 'to skip rendering\n'
| 'the .gitignore and LICENSE.txt files, you can add the '
| 'following:\n'
| '\n'
| '```yaml\n'
| 'skip_render:\n'
| ' - .gitignore\n'
| ' - LICENSE.txt\n'
| '```',
| 'title': 'Skip Render'}
|
| On instance['skip_render']:
| ['README.md',
| 'LICENSE.txt',
| '.gitattributes',
| '.gitignore',
| 'build-locally.py',
| 'LICENSE',
| '.github/CONTRIBUTING.md',
| '.github/ISSUE_TEMPLATE.md',
| '.github/PULL_REQUEST_TEMPLATE.md',
| '.github/workflows']
+------------------------------------
Solution to issue cannot be found in the documentation.
Issue
I noticed that
conda smithy regenerate
started to fail with my conda-forge.yml because of theskip_render
entries failing validation. So I created a minimal setup usingci-skeleton
. It generated the following conda-forge.ymlWhen trying to regenerate, it raised the same error.
Installed packages
Environment info