continental-cdk-0.1.1
توضیحات
A Test package for Pip
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | continental-cdk-0.1.1 |
| نام | continental-cdk |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Wolfgang Unger |
| ایمیل نویسنده | wolfgang.r.unger@dxc.com |
| آدرس صفحه اصلی | https://github.com/ |
| آدرس اینترنتی | https://pypi.org/project/continental-cdk/ |
| مجوز | - |
# test pip package
## install required tools
pip install setuptools
pip install twine
pip install wheel
cdk_pip_poc
├── LICENSE
├── continental_poc
│ ├── __init__.py
│ ├── iam_construct.py
│ ├── batch_fargate_construct.py
├── README.md
└── setup.py
## check
python setup.py check
## create package
python setup.py bdist_wheel
## install local
python -m pip install dist/continental_cdk-0.1.1-py3-none-any.whl
install same version new
python -m pip install dist/continental_cdk-0.1.1-py3-none-any.whl --force
## .pypirc file
create this file in your user directory
C:\Users\UserName\.pypirc
for the public pypi repo the file would look like
[distutils]
index-servers=pypi
[pypi]
repository = https://upload.pypi.org/legacy/
username =wolfgang.r.unger
for the continental artifactory
[global]
index-url = https://<USERNAME>:<PASSWORD>@artifactory.8675.ccp.continental.exchange/artifactory/api/pypi/common-remote-pypi/simple
[conti]
index-url = https://<USERNAME>:<PASSWORD>@artifactory.8675.ccp.continental.exchange/artifactory/api/pypi/common-remote-pypi/simple
username =wolfgang-unger
## upload
(so far tested on https://pypi.org/ must be changed to the continental artifactory):
python -m twine upload dist/*
python -m twine upload dist/continental_cdk-0.1.1-py3-none-any.whl
see also
https://betterscientificsoftware.github.io/python-for-hpc/tutorials/python-pypi-packaging/
https://packaging.python.org/
https://dzone.com/articles/executable-package-pip-install
..
نحوه نصب
نصب پکیج whl continental-cdk-0.1.1:
pip install continental-cdk-0.1.1.whl
نصب پکیج tar.gz continental-cdk-0.1.1:
pip install continental-cdk-0.1.1.tar.gz