aws胶库包
gluepkg的Python项目详细描述
这是一个命令行应用程序
AWS胶水包装助手。根据所需的AWS胶水准备包装 外部库依赖项的设置。
这是基于以下规定的规范: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-libraries.html
安装
pip install gluepkg
用法
gluepkg --src_dir <src> --pkg_s3_path <target>
Arg | Status | Description |
---|---|---|
src_dir | required | the source directory path to be packaged |
pkg_s3_path | required | the target object location in s3 (s3 URI) |
基本上,它创建一个zip文件到所需的目标位置s3
example:
gluepkg --src_dir gluepkg/ --pkg_s3_path s3://bucket/folder/gluepkg.zip
构建
- 生成分布
python setup.py bdist_wheel --universal
- 分发到pypi
twine upload dist/*
- 项目安装(开发)
python setup.py install
然后,您可以运行命令gluepkg–src_dir<;src>;–pkg_s3_path<;target>; 在开发此软件包期间