Bash script get version from setup.py or from PKG-INFO file and export as environment variable
Bash script get version from setup.py or from PKG-INFO file and export as environment variable Question: I need to get version value from setup.py or from PKG-INFO using bash and extract environment variable with the version value for later use. (Actually I need version value for GitHub Action) from setuptools import setup, find_packages with open("README.md", …