Adds a command to setup.py for displaying metadata about the package.
Project description
setuptools-metadata 0.1.2 - Adds metadata command to setup.py
Using custom_metadata in setup call
from setuptools import setup
setup(
name='spam',
custom_metadata={
'x_str': 'bla',
'x_int': 23,
'x_list': ['a', 'b', 'c']})
Using 'setup.py metadata'
./setup.py metadata --key=install_requires
pygraphviz
lxml
another-package
This prints out the 'install_requires' setup keyword argument.
If it can't find the requested key, it will also search the custom_metadata dict:
./setup.py metadata --key=x_str
bla
./setup.py metadata --key=x_int
23
./setup.py metadata --key=x_list
a
b
c
Installing
Install it into your system Python like this:
sudo pip install setuptools-metadata
Using custom_metadata in setup call
from setuptools import setup
setup(
name='spam',
custom_metadata={
'x_str': 'bla',
'x_int': 23,
'x_list': ['a', 'b', 'c']})
Using 'setup.py metadata'
./setup.py metadata --key=install_requires
pygraphviz
lxml
another-package
This prints out the 'install_requires' setup keyword argument.
If it can't find the requested key, it will also search the custom_metadata dict:
./setup.py metadata --key=x_str
bla
./setup.py metadata --key=x_int
23
./setup.py metadata --key=x_list
a
b
c
Installing
Install it into your system Python like this:
sudo pip install setuptools-metadata
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for setuptools-metadata-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e37f168fa18502e771dfa76374eb52bde295f5d77bce0b148a0d5a8aedcbe16d |
|
MD5 | 58b7ee5d47ddc59e498f5b7d6f7d5daf |
|
BLAKE2b-256 | f4611be84cd65af4c1a69752843ff24709d732cf44b14655e135f599d6ae0b53 |