Maybe using the ConfigParser Python module ?
python -c "from configparser import ConfigParser; cf = ConfigParser(); cf.read('setup.cfg'); print(cf['metadata']['name'])"
More Related Contents:
- What is setup.py?
- Post-install script with Python setuptools
- Src layout to dispense .src prefix in imports? Activate venv in PyCharm terminal for development installs
- “pip install –editable ./” vs “python setup.py develop”
- How may I override the compiler (GCC) flags that setup.py uses by default?
- How to force a python wheel to be platform specific when building it?
- pip install . creates only the dist-info not the package
- How to include and install local dependencies in setup.py in Python?
- How can I include package_data without a MANIFEST.in file?
- What is the difference between `extras_require()` and `install_requires()` in setup.py?
- How can I import other Python files?
- Why use pip over easy_install?
- How to include package data with setuptools/distutils?
- Python setup.py develop vs install
- Why is python setup.py saying invalid command ‘bdist_wheel’ on Travis CI?
- Reference requirements.txt for the install_requires kwarg in setuptools setup.py file
- What is the official “preferred” way to install pip and virtualenv systemwide?
- Difference between ‘python setup.py install’ and ‘pip install’
- How to write setup.py to include a Git repository as a dependency
- requirements.txt vs setup.py
- Symbol not found: __PyCodecInfo_GetIncrementalDecoder
- How to accomplish relative import in python
- Why is pip installing an old version of my package?
- Is it possible to exclude data file sources and intermediary files from bdist?
- distutils: How to pass a user defined parameter to setup.py?
- Is it possible to express a platform-specific dependency in setup.py without building platform-specific versions of my egg?
- Relative imports in Python
- How can I use setuptools to generate a console_scripts entry point which calls `python -m mypackage`?
- Is it possible to require PyQt from setuptools setup.py?
- python setuptools install_requires is ignored when overriding cmdclass