Skip to content

Commit

Permalink
Add print-meta command.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Oct 20, 2021
1 parent 538c9f4 commit d3e5243
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v7.9.0
======

* Add ``print-meta`` command.

v7.8.0
======

Expand Down
9 changes: 9 additions & 0 deletions jaraco/develop/print-meta.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import autocommand
from pep517 import meta


@autocommand.autocommand(__name__)
def main(path='.', field='Requires-Dist'):
md = meta.load(path).metadata
for spec in md.get_all(field):
print(spec)

0 comments on commit d3e5243

Please sign in to comment.