跳转到主要内容

从setup.py检索包规范

项目描述

setup.py包含一个名为setup的函数。

当编写与Python包一起工作的软件时,从setup.py检索包元数据非常不方便。这个包使其变得简单,只需将其指向setup.py即可获取字典。

>>> import setupreader, json
>>> foo = setupreader.load('setup.py')
>>> print json.dumps(foo, indent=4)
{
    "description": "retrieve package specification from setup,py",
    "install_requires": [
        "setuptools",
        "mock"
    ],
    "zip_safe": false,
    "keywords": "",
    "packages": [],
    "classifiers": [],
    "entry_points": {
        "console_scripts": [
            "read-setup = setupreader:main"
        ]
    },
    "name": "setupreader",
    "license": "",
    "author": "Lars van de Kerkhof",
    "url": "",
    "include_package_data": true,
    "py_modules": [
        "setupreader"
    ],
    "long_description": "",
    "author_email": "lars@permanentmarkers.nl",
    "version": "0.0.1"
}

项目详情


下载文件

下载适合您平台文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分布

setupreader-0.0.3.tar.gz (2.7 kB 查看哈希值)

上传时间:

支持者:

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面