Adds a command to setup.py for displaying metadata about the package.
Project description
setuptools-metadata - 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
Built Distribution
File details
Details for the file setuptools-metadata-0.1.5.tar.gz
.
File metadata
- Download URL: setuptools-metadata-0.1.5.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acc0e33ba6d38ef782e4aaf229cc2f4a793959c6eb11284ec3481697f335a437 |
|
MD5 | aa80d03d3eba25df8d49fa8c7149426c |
|
BLAKE2b-256 | 4bd8b9ae393c6bb5848874363299e521fd680319426e26f2ac77e55c780702e1 |
File details
Details for the file setuptools_metadata-0.1.5-py2-none-any.whl
.
File metadata
- Download URL: setuptools_metadata-0.1.5-py2-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8e41e492fc77aa28a6718885e9ae46b697619cdf8e58009ea7920855a9ab66c |
|
MD5 | 79c41579b99ccd51ed09778b395d9441 |
|
BLAKE2b-256 | b01939248c3725cc11e2cc72146af2e9891441fb0d10a90c97e9c7ce8f6edd84 |