duckinator / bork

A Python build and release management tool.
https://bork.readthedocs.io
MIT License
12 stars 2 forks source link

`bork.api.dependencies()` is broken #296

Closed duckinator closed 1 year ago

duckinator commented 1 year ago

bork.api.dependencies() is broken and, because of that, so is the bork dependencies command.

I frankly forgot this command existed?

$ bork dependencies
Traceback (most recent call last):
  File "/usr/home/puppy/dev/duckinator/bork/venv/bin/bork", line 8, in <module>
    sys.exit(main())
  File "/usr/home/puppy/dev/duckinator/bork/venv/lib/python3.9/site-packages/bork/cli.py", line 134, in main
    cli()
  File "/usr/home/puppy/dev/duckinator/bork/venv/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/usr/home/puppy/dev/duckinator/bork/venv/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/usr/home/puppy/dev/duckinator/bork/venv/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/home/puppy/dev/duckinator/bork/venv/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/home/puppy/dev/duckinator/bork/venv/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/usr/home/puppy/dev/duckinator/bork/venv/lib/python3.9/site-packages/bork/cli.py", line 47, in dependencies
    for dep in api.dependencies():
  File "/usr/home/puppy/dev/duckinator/bork/venv/lib/python3.9/site-packages/bork/api.py", line 69, in dependencies
    return pep517.meta.load('.').metadata.get_all('Requires-Dist')
AttributeError: module 'pep517' has no attribute 'meta'
$