cpl_cli.publish

cpl_cli.publish.publisher_abc module

class cpl_cli.publish.publisher_abc.PublisherABC

Bases: abc.ABC

abstract build()
abstract property dist_path
abstract exclude(path: str)
abstract include(path: str)
abstract publish()
abstract property source_path

cpl_cli.publish.publisher_service module

class cpl_cli.publish.publisher_service.PublisherService(config: cpl.configuration.configuration_abc.ConfigurationABC, env: cpl.environment.application_environment_abc.ApplicationEnvironmentABC, project: cpl_cli.configuration.project_settings.ProjectSettings, build: cpl_cli.configuration.build_settings.BuildSettings)

Bases: cpl_cli.publish.publisher_abc.PublisherABC

build()

Build the CPL project to dist_path/build

  1. Reads all included source files

  2. Writes informations from template to all included __init__.py

3. Copies all included source files to dist_path/build :return:

property dist_path
exclude(path: str)

Excludes given path from sources :param path: :return:

include(path: str)

Includes given path from sources :param path: :return:

publish()

Publishes the CPL project to dist_path/publish

  1. Builds the project

  2. Generates setup.py

  3. Start setup.py

4. Remove all included source from dist_path/publish :return:

property source_path