Skip to main content

CDK python package

Project description

generic cdk pip packages

this project is for generic cdk classes

install required tools

pip install setuptools pip install twine pip install wheel

cdk_pip_poc
├── LICENSE
├── continental_cdk
│ ├── init.py
│ ├── cdk classes
│ ├── ... ├── 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.0.1-py3-none-any.whl install same version new python -m pip install dist/continental_cdk-0.0.1-py3-none-any.whl --force

upload

twine upload -r conti dist/continental_cdk-0.0.1-py3-none-any.whl --config-file /home/ec2-user/.pypirc --client-cert /home/ec2-user/.ccp/client.cert twine upload -r conti dist/continental_cdk-0.0.1-py3-none-any.whl --config-file /home/ec2-user/.pypirc --client-cert /home/ec2-user/.ccp/client.cert

use in client project

setup requirements.txt: continental-cdk==0.0.1

import class: from continental_cdk.mts_auth_stack import MTSAuthStack

naming

to be discussed: what should be the package name and what should be the clustering and its granularity? continental_cdk ? caedge_sim ?

clustering: for not updating the whole packge after change/update of one file the packages should be designed in smaller units for example caedge_sim_iam caedge_sim_batch caedge_sim_storage etc

##see also:

https://confluence.6543.ccp.continental.exchange/confluence/display/PCPUM/Upload+to+PyPI+repository+in+Artifactory+using+twine

https://betterscientificsoftware.github.io/python-for-hpc/tutorials/python-pypi-packaging/

https://packaging.python.org/

https://dzone.com/articles/executable-package-pip-install

pypic config

the file should look like this:

[distutils] index-servers=conti

[conti] ####repo for internal users #repository: https://artifactory.8675.ccp.continental.exchange/artifactory/api/pypi/caedge-generic-simulation ####repo for external users or cloud 9 repository: https://artifactory-tls.8675.ccp.continental.exchange/artifactory/api/pypi/caedge-generic-simulation username: password: AKCp8k8iZw .... token

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

wunger_cdk-0.0.1-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page