Skip to content

Docspec Changelog

$ cd ../docspec && slap changelog format --all --markdown  # exited with return code 1
Could not find a slap.toml configuration file in the current directory or any of its parents. Assuming that the current directory is the Slap repository root.
Traceback (most recent call last):
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/bin/slap", line 10, in <module>
    sys.exit(main())
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/__main__.py", line 4, in main
    Application().run()
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/application.py", line 261, in run
    self.cleo.run()
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/cleo/application.py", line 324, in run
    self._configure_io(io)
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/application.py", line 146, in _configure_io
    self._init_callback(io)
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/application.py", line 256, in _cleo_init
    self.load_plugins()
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/application.py", line 252, in load_plugins
    plugin_config = plugin.load_configuration(self)
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/ext/application/changelog.py", line 674, in load_configuration
    return get_changelog_manager(app.repository, app.main_project())
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/util/once.py", line 22, in __call__
    self._value = self._supplier()
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/application.py", line 208, in _get_main_project
    for project in self.repository.projects():
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/util/once.py", line 22, in __call__
    self._value = self._supplier()
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/repository.py", line 128, in _get_projects
    return sorted(handler.get_projects(self), key=lambda p: p.id)
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/repository.py", line 128, in <lambda>
    return sorted(handler.get_projects(self), key=lambda p: p.id)
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/project.py", line 204, in id
    return self.dist_name() or self.directory.resolve().name
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/util/once.py", line 22, in __call__
    self._value = self._supplier()
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/project.py", line 153, in _get_dist_name
    return self.handler().get_dist_name(self)
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/util/once.py", line 22, in __call__
    self._value = self._supplier()
  File "/home/runner/.cache/uv/archive-v0/G1OAroNUg9I84AdefkfmI/lib/python3.10/site-packages/slap/project.py", line 123, in _get_project_handler
    raise RuntimeError(f"unable to identify project handler for {self!r}")
RuntimeError: unable to identify project handler for Project(directory="/home/runner/work/python-docspec/python-docspec/docspec")