Skip to main content

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

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

setuptools-metadata-0.1.5.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

setuptools_metadata-0.1.5-py2-none-any.whl (3.8 kB view details)

Uploaded Python 2

File details

Details for the file setuptools-metadata-0.1.5.tar.gz.

File metadata

File hashes

Hashes for setuptools-metadata-0.1.5.tar.gz
Algorithm Hash digest
SHA256 acc0e33ba6d38ef782e4aaf229cc2f4a793959c6eb11284ec3481697f335a437
MD5 aa80d03d3eba25df8d49fa8c7149426c
BLAKE2b-256 4bd8b9ae393c6bb5848874363299e521fd680319426e26f2ac77e55c780702e1

See more details on using hashes here.

File details

Details for the file setuptools_metadata-0.1.5-py2-none-any.whl.

File metadata

File hashes

Hashes for setuptools_metadata-0.1.5-py2-none-any.whl
Algorithm Hash digest
SHA256 d8e41e492fc77aa28a6718885e9ae46b697619cdf8e58009ea7920855a9ab66c
MD5 79c41579b99ccd51ed09778b395d9441
BLAKE2b-256 b01939248c3725cc11e2cc72146af2e9891441fb0d10a90c97e9c7ce8f6edd84

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page