Created
April 1, 2021 00:26
-
-
Save scbedd/ab3ec3990bfc522d5ee330de526354b8 to your computer and use it in GitHub Desktop.
Get Poetry Dependencies from entire repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import os | |
packages = glob.glob('C:/repo/sdk-for-python/sdk/*/*/setup.py') | |
for pkg in packages: | |
name = os.path.dirname(pkg).split(os.sep)[-1] | |
path = os.path.dirname(pkg.split('python/')[1]).replace(os.sep, '/') | |
print('{} = {{path = "{}"}}'.format(name, path)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment