Skip to main content

Adds a command to setup.py for displaying metadata about the package.

Project description

setuptools-metadata 0.1.1 - 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-0.1.1

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.1.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

setuptools_metadata-0.1.1-py27-none-any.whl (3.7 kB view hashes)

Uploaded Python 2.7

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