"path" example doesn't work
Closed this issue · 1 comments
wimglenn commented
$ carthorse
Traceback (most recent call last):
File "/tmp/p/.venv/bin/carthorse", line 8, in <module>
sys.exit(main())
File "/tmp/p/.venv/lib/python3.10/site-packages/carthorse/cli.py", line 19, in main
version = config.run(plugins['version_from'], config['version-from'])
File "/tmp/p/.venv/lib/python3.10/site-packages/carthorse/config.py", line 44, in run
return plugins[config['name']](*config['args'], **kw)
KeyError: 'path'
Instead of
version-from = { name="path", path="setup.py", pattern="version='(?P<version>[^']+)" }
I needed to use
version-from = { file = { path="setup.py", pattern="version='(?P<version>[^']+)" } }