# lcdp-deployment-manager
High level utilities to get/set AWS infrastructure items on prod
#### Instructions to deploy this package to PyPI:
1. Prepare your code for deployment: remove code outside of your classes.
2. Add your classes to the `__init__.py` file as follows:
from lcdp_deployment_manager.Filename1 import Classname1
from lcdp_deployment_manager.Filename2 import Classname2
> Warning: package users will only have access to the classes specified in this file.
3. Push your changes to Github:
* https://github.com/LeComptoirDesPharmacies/lcdp-deployment-manager
4. Edit the setup.py file.
> Instructions to edit this file are provided inside the script.
5. Create a link to download your source code using Github:
a. Navigate to your repository.
b. Click on the "releases" tab and "Create a new release".
c. Define a tag version (preferably use the same version as in the `Setup.py` file).
d. Add a release title and description and click on "publish release" (not necessary).
6. Install `setuptools`, `wheel` and `twine` and :
python3 -m pip install --user --upgrade setuptools wheel twine
7. Run this command from the same directory where `setup.py` is located:
python3 setup.py sdist bdist_wheel
8. Upload the distribution archive to PyPI:
*( Recommended: upload your package to "Test PyPI" first to make sure that your deployment will be successful)*
* Run this command to upload your package to "Test PyPI":
python3 -m twine upload --repository testpypi dist/*
* Run this command to upload your package to PyPI's Main website:
python3 -m twine upload dist/*
9. Test your deployment
* From Test PyPI:
python3 -m pip install --index-url https://test.pypi.org/simple/ lcdp-deployment-manager
* From PyPI:
python3 -m pip install lcdp-deployment-manager
10. For more information or if your deployment fails, check these links:
* https://medium.com/@joel.barmettler/how-to-upload-your-python-package-to-pypi-65edc5fe9c56
* https://packaging.python.org/tutorials/packaging-projects
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
资源分类:Python库 所属语言:Python 资源全名:lcdp_deployment_manager-1.0.21.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
lcdp_deployment_manager-1.0.21.tar.gz (19个子文件)
lcdp_deployment_manager-1.0.21
PKG-INFO 773B
lcdp_deployment_manager
common.py 923B
deployment_manager_factory.py 3KB
manage_alb.py 4KB
manage_ecs.py 971B
constant.py 648B
manage_ses.py 814B
__init__.py 111B
manage_ecr.py 1KB
deployment_manager.py 10KB
deployment_executor.py 1KB
setup.cfg 79B
setup.py 2KB
lcdp_deployment_manager.egg-info
PKG-INFO 773B
requires.txt 6B
SOURCES.txt 667B
top_level.txt 24B
dependency_links.txt 1B
README.md 2KB
共 19 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功