Add autometa keyword to setuptools.setup for automatic version, description and long_desctiption.
Project description
To use it, pass module (without .py), or package name as autometa keyword argument for setup():
#! /usr/bin/env python from setuptools import setup setup( autometa='test', name='Test', packages=['test'], ... )
Example package __init__.py:
"""First line of docstring. Many more lines of docstring. """ __version__ = '1.2.3.dev0' # alternatively: (1, 2, 3, 'dev0')
It will parse specified module file or package’s __init__.py and set version to its __version__ attribute, description to first line of its docstring, and long_description to the rest of the docstring.
NOTE Please note, that version is parsed by running ast.literal_eval on the right side of assignment to __version__, so keep in mind that it can only be a string literal, or a list/tuple of string/integer literals.
Additionally you can whitelist which fields are to be parsed by using autometa_fields keyword argument and setting it to an iterable of field names.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for Setuptools-Autometa-0.1.0.post2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2640699b640a8a115efe9e143fee1a2ad98735eafe5f9f08c8e869e441ca0ed7 |
|
MD5 | 33267a859153ec6868356d157c2f63fa |
|
BLAKE2b-256 | b64413c5c5e39c5d3950dc4cd542b8128f20d5025edc5068e2861805ebd4d6e7 |
Hashes for Setuptools_Autometa-0.1.0.post2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d705306f68dad4aaf7f95408ad84c461222be25ff86b04d007ebe4f178b6b65 |
|
MD5 | 9fdec6965254c90e487ad55353fb4373 |
|
BLAKE2b-256 | 7500064737cc8ce2aba777411d2ca77b9245858915fe5c55e6e66651925312eb |
Hashes for Setuptools_Autometa-0.1.0.post2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfbf56909d7c78f06d6cae4265571be555a08d55937e26d06cf396649df977cb |
|
MD5 | 6a809950a546ec0f2733f63a2dff8109 |
|
BLAKE2b-256 | a39c4bd8c8666ed111789fc14cf4ac3ac9138ff3d6491120e88cb55b6f8dd06e |