我不知道这是否是您需要的,但对于 基于python的包装
您可以使用pastescript 生成您的 setup.py(或制作项目骨架/模板)
setup.py 示例
简单
from setuptools import setup, find_packages
setup(
name = "google killer",
version = "0.1.0",
url = 'http://example.com/',
license = 'AGPL',
description = 'best software ever',
author = 'me',
packages = find_packages('src'),
package_dir = {'': 'src'},
install_requires = ['numpy', 'scipy', 'sqlalchemy'],
)
复杂。由pastescript 在金字塔项目中制作
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = ['pyramid', 'WebError']
setup(name='test',
version='0.0',
description='test',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Pylons",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web pyramid pylons',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="test",
entry_points = """\
[paste.app_factory]
main = test:main
""",
paster_plugins=['pyramid'],
)
你可以在大多数 python 项目中找到它们
另外,阅读The Hitchhiker’s Guide to Packaging 以获得详细的叙述解释(快速入门很有帮助)