python
Submodule ¶
Structs ¶
PagesPdoc3Props ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
module |
str |
The Python module name. |
job_name |
str |
The name of the job. |
job_stage |
str |
The stage of the job. |
output_path |
str |
A sub path of the Gitlab Pages public directory to output generated HTML/markdown files to. |
module
Required ¶
- Type: str
The Python module name.
This may be an import path resolvable in the current environment, or a file path to a Python module or package.
job_name
Optional ¶
- Type: str
The name of the job.
job_stage
Optional ¶
- Type: str
The stage of the job.
output_path
Optional ¶
- Type: str
A sub path of the Gitlab Pages public
directory to output generated HTML/markdown files to.
Defaults to "/".
PagesSphinxProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
job_name |
str |
The name of the job. |
job_stage |
str |
The stage of the job. |
pip |
PipInstallRequirementsProps |
No description. |
job_name
Optional ¶
- Type: str
The name of the job.
job_stage
Optional ¶
- Type: str
The stage of the job.
pip
Optional ¶
PipInstallRequirementsProps ¶
Represents the properties for the pipInstallRequirements
static method.
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
pipenv_version_specifier |
str |
The version hint of pipenv to install if Pipfile.lock is found. For example '==2022.08.15'. Defaults to an empty string, indicating installation of the latest version. |
requirements_file |
str |
The location and name of the requirements file. |
pipenv_version_specifier
Optional ¶
- Type: str
- Default: ""
The version hint of pipenv to install if Pipfile.lock
is found. For example '==2022.08.15'. Defaults to an empty string, indicating installation of the latest version.
requirements_file
Optional ¶
- Type: str
- Default: "requirements.txt"
The location and name of the requirements file.
PythonBuildBdistWheelProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
job_name |
str |
No description. |
job_stage |
str |
No description. |
pip_requirements |
PipInstallRequirementsProps |
No description. |
job_name
Optional ¶
- Type: str
job_stage
Optional ¶
- Type: str
pip_requirements
Optional ¶
PythonDeployTwineUploadProps ¶
Represents the properties for the TwineUpload
class.
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
job_name |
str |
The name of the job. |
job_stage |
str |
The stage of the job. |
twine_password_env_var |
str |
The name of the environment variable containing the password. |
twine_repository_url |
str |
The URL to the PyPI repository to which the Python artifacts will be deployed. |
twine_username_env_var |
str |
The name of the environment variable containing the username value. |
job_name
Optional ¶
- Type: str
The name of the job.
job_stage
Optional ¶
- Type: str
The stage of the job.
twine_password_env_var
Optional ¶
- Type: str
The name of the environment variable containing the password.
DO NOT PROVIDE THE LOGIN VALUE ITSELF! This would be a security issue! Defaults to 'TWINE_PASSWORD'.
twine_repository_url
Optional ¶
- Type: str
The URL to the PyPI repository to which the Python artifacts will be deployed.
If undefined
the package is published to https://pypi.org
.
twine_username_env_var
Optional ¶
- Type: str
The name of the environment variable containing the username value.
DO NOT PROVIDE THE USERNAME VALUE ITSELF! This would be a security issue! Defaults to 'TWINE_USERNAME'.
PythonFullStackProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
twine_prod_job_props |
PythonDeployTwineUploadProps |
No description. |
b_dist_wheel_job_props |
PythonBuildBdistWheelProps |
No description. |
evaluate_git_tag_pep440_conformity_job_props |
PythonTestEvaluateGitTagPep440ConformityProps |
No description. |
flake8_job_props |
PythonLintFlake8Props |
No description. |
isort_job_props |
PythonLintIsortProps |
No description. |
mypy_job_props |
PythonLintMyPyProps |
No description. |
pytest_job_props |
PythonTestPytestProps |
No description. |
sphinx_props_job_props |
PagesSphinxProps |
No description. |
twine_dev_job_props |
PythonDeployTwineUploadProps |
No description. |
twine_prod_job_props
Required ¶
b_dist_wheel_job_props
Optional ¶
evaluate_git_tag_pep440_conformity_job_props
Optional ¶
flake8_job_props
Optional ¶
- Type: PythonLintFlake8Props
isort_job_props
Optional ¶
- Type: PythonLintIsortProps
mypy_job_props
Optional ¶
- Type: PythonLintMyPyProps
pytest_job_props
Optional ¶
- Type: PythonTestPytestProps
sphinx_props_job_props
Optional ¶
- Type: PagesSphinxProps
twine_dev_job_props
Optional ¶
PythonLintFlake8Props ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
job_name |
str |
The name of the job. |
job_stage |
str |
The stage of the job. |
job_name
Optional ¶
- Type: str
The name of the job.
job_stage
Optional ¶
- Type: str
The stage of the job.
PythonLintIsortProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
job_name |
str |
The name of the job. |
job_stage |
str |
The stage of the job. |
job_name
Optional ¶
- Type: str
The name of the job.
job_stage
Optional ¶
- Type: str
The stage of the job.
PythonLintMyPyProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
package_dir |
str |
Package directory to type check. |
job_name |
str |
The name of the job. |
job_stage |
str |
The stage of the job. |
my_py_options |
str |
Adds arguments to mypy execution. |
my_py_version |
str |
If mypy is not already installed, this version will be installed. |
package_dir
Required ¶
- Type: str
Package directory to type check.
job_name
Optional ¶
- Type: str
The name of the job.
job_stage
Optional ¶
- Type: str
The stage of the job.
my_py_options
Optional ¶
- Type: str
Adds arguments to mypy execution.
my_py_version
Optional ¶
- Type: str
If mypy
is not already installed, this version will be installed.
Installs latest version if undefined
.
PythonTestEvaluateGitTagPep440ConformityProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
job_name |
str |
The name of the Bootstrap job. |
job_stage |
str |
The stage of the Bootstrap job. |
job_name
Optional ¶
- Type: str
The name of the Bootstrap job.
job_stage
Optional ¶
- Type: str
The stage of the Bootstrap job.
PythonTestPytestProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
job_name |
str |
The name of the Bootstrap job. |
job_stage |
str |
The stage of the Bootstrap job. |
pipenv_version_specifier |
str |
The version hint of pipenv to install if Pipfile.lock is found. For example '==2022.08.15'. Defaults to latest package version. |
pytest_command |
str |
This argument is only required if you have a custom command to call pytest. |
job_name
Optional ¶
- Type: str
The name of the Bootstrap job.
job_stage
Optional ¶
- Type: str
The stage of the Bootstrap job.
pipenv_version_specifier
Optional ¶
- Type: str
The version hint of pipenv to install if Pipfile.lock
is found. For example '==2022.08.15'. Defaults to latest package version.
pytest_command
Optional ¶
- Type: str
This argument is only required if you have a custom command to call pytest.
Classes ¶
PagesPdoc3 ¶
- Implements: IPagesPdoc3
Generate a HTML API documentation of you python code as Gitlab Pages.
Runs pdoc3 --html -f --skip-errors --output-dir public{path} {module}
and stores the output
as artifact under the public
directory.
This subclass of Job
will configure following defaults for the superclass:
- name: pdoc3-pages
- stage: build
- artifacts: Path 'public'
Initializers ¶
Name | Type | Description |
---|---|---|
module |
str |
The Python module name. |
job_name |
str |
The name of the job. |
job_stage |
str |
The stage of the job. |
output_path |
str |
A sub path of the Gitlab Pages public directory to output generated HTML/markdown files to. |
module
Required ¶
- Type: str
The Python module name.
This may be an import path resolvable in the current environment, or a file path to a Python module or package.
job_name
Optional ¶
- Type: str
The name of the job.
job_stage
Optional ¶
- Type: str
The stage of the job.
output_path
Optional ¶
- Type: str
A sub path of the Gitlab Pages public
directory to output generated HTML/markdown files to.
Defaults to "/".
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_image
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image |
gcix.Image |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
original |
gcix.Job |
No description. |
rules |
typing.List[gcix.Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
module |
str |
The Python module name. |
output_path |
str |
A sub path of the Gitlab Pages public directory to output generated HTML/markdown files to. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image
Optional ¶
- Type: gcix.Image
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
original
Optional ¶
- Type: gcix.Job
rules
Optional ¶
- Type: typing.List[gcix.Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
module
Required ¶
- Type: str
The Python module name.
This may be an import path resolvable in the current environment, or a file path to a Python module or package.
output_path
Required ¶
- Type: str
A sub path of the Gitlab Pages public
directory to output generated HTML/markdown files to.
Defaults to "/".
PagesSphinx ¶
- Implements: IPagesSphinx
Runs sphinx-build -b html -E -a docs public/${CI_COMMIT_REF_NAME}
and installs project requirements. Uses: (PythonScripts.PipInstallRequirements()
).
- Requires a
docs/requirements.txt
in your project foldercontaining at least
sphinx` - Creates artifacts for Gitlab Pages under
pages
This subclass of Job
will configure following defaults for the superclass:
- name: sphinx-pages
- stage: build
- artifacts: Path 'public'
Initializers ¶
Name | Type | Description |
---|---|---|
job_name |
str |
The name of the job. |
job_stage |
str |
The stage of the job. |
pip |
PipInstallRequirementsProps |
No description. |
job_name
Optional ¶
- Type: str
The name of the job.
job_stage
Optional ¶
- Type: str
The stage of the job.
pip
Optional ¶
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_image
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image |
gcix.Image |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
original |
gcix.Job |
No description. |
rules |
typing.List[gcix.Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
pip |
PipInstallRequirementsProps |
No description. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image
Optional ¶
- Type: gcix.Image
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
original
Optional ¶
- Type: gcix.Job
rules
Optional ¶
- Type: typing.List[gcix.Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
pip
Optional ¶
PythonBuildBdistWheel ¶
- Implements: IPythonBuildBdistWheel
Runs python3 setup.py bdist_wheel
and installs project requirements Requirements are installed by LinuxScripts.pipInstallRequirements()
.
This subclass of Job
configures the following defaults for the superclass:
- name: bdist_wheel
- stage: build
- artifacts: Path 'dist/'
Requires a Pipfile.lock
or requirements.txt
in your project folder
containing at least setuptools
. Creates artifacts under the path 'dist/'.
Initializers ¶
Name | Type | Description |
---|---|---|
job_name |
str |
No description. |
job_stage |
str |
No description. |
pip_requirements |
PipInstallRequirementsProps |
No description. |
job_name
Optional ¶
- Type: str
job_stage
Optional ¶
- Type: str
pip_requirements
Optional ¶
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_image
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image |
gcix.Image |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
original |
gcix.Job |
No description. |
rules |
typing.List[gcix.Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
pipenv_version_specifier |
str |
No description. |
requirements_file |
str |
No description. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image
Optional ¶
- Type: gcix.Image
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
original
Optional ¶
- Type: gcix.Job
rules
Optional ¶
- Type: typing.List[gcix.Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
pipenv_version_specifier
Optional ¶
- Type: str
requirements_file
Optional ¶
- Type: str
PythonDeployTwineUpload ¶
- Implements: IPythonDeployTwineUpload
Runs:.
Requires artifacts from a build job under dist/
(e.g. from BdistWheel()
)
This subclass of Job
configures the following defaults for the superclass:
- name: twine
- stage: deploy
Initializers ¶
Name | Type | Description |
---|---|---|
job_name |
str |
The name of the job. |
job_stage |
str |
The stage of the job. |
twine_password_env_var |
str |
The name of the environment variable containing the password. |
twine_repository_url |
str |
The URL to the PyPI repository to which the Python artifacts will be deployed. |
twine_username_env_var |
str |
The name of the environment variable containing the username value. |
job_name
Optional ¶
- Type: str
The name of the job.
job_stage
Optional ¶
- Type: str
The stage of the job.
twine_password_env_var
Optional ¶
- Type: str
The name of the environment variable containing the password.
DO NOT PROVIDE THE LOGIN VALUE ITSELF! This would be a security issue! Defaults to 'TWINE_PASSWORD'.
twine_repository_url
Optional ¶
- Type: str
The URL to the PyPI repository to which the Python artifacts will be deployed.
If undefined
the package is published to https://pypi.org
.
twine_username_env_var
Optional ¶
- Type: str
The name of the environment variable containing the username value.
DO NOT PROVIDE THE USERNAME VALUE ITSELF! This would be a security issue! Defaults to 'TWINE_USERNAME'.
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_image
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image |
gcix.Image |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
original |
gcix.Job |
No description. |
rules |
typing.List[gcix.Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
twine_password_env_var |
str |
The name of the environment variable containing the password. |
twine_username_env_var |
str |
The name of the environment variable containing the username value. |
twine_repository_url |
str |
The URL to the PyPI repository to which the Python artifacts will be deployed. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image
Optional ¶
- Type: gcix.Image
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
original
Optional ¶
- Type: gcix.Job
rules
Optional ¶
- Type: typing.List[gcix.Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
twine_password_env_var
Required ¶
- Type: str
The name of the environment variable containing the password.
DO NOT PROVIDE THE LOGIN VALUE ITSELF! This would be a security issue! Defaults to 'TWINE_PASSWORD'.
twine_username_env_var
Required ¶
- Type: str
The name of the environment variable containing the username value.
DO NOT PROVIDE THE USERNAME VALUE ITSELF! This would be a security issue! Defaults to 'TWINE_USERNAME'.
twine_repository_url
Optional ¶
- Type: str
The URL to the PyPI repository to which the Python artifacts will be deployed.
If undefined
the package is published to https://pypi.org
.
PythonFullStack ¶
- Implements: IPythonFullStack
Returns a sequence containing following jobs: - isort - flake8 - pytest - evaluating CI_COMMIT_TAG as valid PyPI version string (if exists) - bdist_wheel - Gitlab Pages sphinx - twine upload Optional jobs: - mypy The varname_dev_password
and varname_stable_password
arguments are only used to specify the variable name and not the actuall password.
The variable name has to be set outside of the pipeline itself, if you set it within the pipline, that would be a security risk.
Initializers ¶
Name | Type | Description |
---|---|---|
twine_prod_job_props |
PythonDeployTwineUploadProps |
No description. |
b_dist_wheel_job_props |
PythonBuildBdistWheelProps |
No description. |
evaluate_git_tag_pep440_conformity_job_props |
PythonTestEvaluateGitTagPep440ConformityProps |
No description. |
flake8_job_props |
PythonLintFlake8Props |
No description. |
isort_job_props |
PythonLintIsortProps |
No description. |
mypy_job_props |
PythonLintMyPyProps |
No description. |
pytest_job_props |
PythonTestPytestProps |
No description. |
sphinx_props_job_props |
PagesSphinxProps |
No description. |
twine_dev_job_props |
PythonDeployTwineUploadProps |
No description. |
twine_prod_job_props
Required ¶
b_dist_wheel_job_props
Optional ¶
evaluate_git_tag_pep440_conformity_job_props
Optional ¶
flake8_job_props
Optional ¶
- Type: PythonLintFlake8Props
isort_job_props
Optional ¶
- Type: PythonLintIsortProps
mypy_job_props
Optional ¶
- Type: PythonLintMyPyProps
pytest_job_props
Optional ¶
- Type: PythonTestPytestProps
sphinx_props_job_props
Optional ¶
- Type: PagesSphinxProps
twine_dev_job_props
Optional ¶
Methods ¶
Name | Description |
---|---|
add_children |
Add gcix.Job s or other gcix.JobCollection s to this JobCollection. |
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
No description. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
get_all_instance_names |
Return all instance names from the given child. |
initialize_allow_failure |
Calling gcix.Job.assignAllowFailure() to all jobs within this JobCollection that haven't been set the allowFailure before. |
initialize_artifacts |
Sets gcix.Job.artifacts to all jobs within this JobCollection that haven't been set the artifacs before. |
initialize_cache |
Calling gcix.Job.assigneCache() to all jobs within this JobCollection that haven't been set the cache before. |
initialize_dependencies |
Calling gcix.Job.assignDependencies() to all jobs within the first stage of this JobCollection that haven't been added dependencies before. |
initialize_image |
Calling gcix.Job.assignImage() to all jobs within this JobCollection. |
initialize_needs |
Calling gcix.Job.assignNeeds() to all jobs within the first stage of this JobCollection that haven't been added needs before. |
initialize_rules |
Calling gcix.Job.append_rules() to all jobs within this JobCollection that haven't been added rules before. |
initialize_tags |
Calling gcix.Job.addTags([...]) to all jobs within this JobCollection that haven't been added tags before. |
initialize_variables |
Calling gcix.Job.addVariables({...}) to all jobs within this JobCollection that haven't been added variables before. |
is_equal |
isEqual checks if this object is equal to given object. |
override_allow_failure |
Calling gcix.Job.assignAllowFailure() to all jobs within this JobCollection overriding any previous set value. |
override_dependencies |
Calling gcix.Job.assignDependencies() to all jobs within the first stage of this JobCollection and overriding any previously added dependencies to that jobs. |
override_image |
Calling gcix.Job.assignImage() to all jobs within this JobCollection overriding any previous set value. |
override_needs |
Calling gcix.Job.assignNeeds() to all jobs within the first stage of this JobCollection and overriding any previously added needs to that jobs. |
override_rules |
Calling gcix.Job.overrideRules() to all jobs within this JobCollection and overriding any previously added rules to that jobs. |
override_tags |
Calling gcix.Job.addTags([...]) to all jobs within this JobCollection and overriding any previously added tags to that jobs. |
override_variables |
Calling gcix.Job.addVariables({...}) to all jobs within this JobCollection and overriding any previously added variables to that jobs. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_children
¶
Add gcix.Job
s or other gcix.JobCollection
s to this JobCollection.
Adding a child creates a copy of that child. You should provide a name or stage when adding children, to make them different from other places where they will be used.
jobs_or_job_collections
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
name
Optional ¶
- Type: str
stage
Optional ¶
- Type: str
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
parent
Required ¶
- Type: gcix.JobCollection
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
get_all_instance_names
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this JobCollection and all parent JobCollection's.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
initialize_allow_failure
¶
Calling gcix.Job.assignAllowFailure()
to all jobs within this JobCollection that haven't been set the allowFailure before.
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
initialize_artifacts
¶
Sets gcix.Job.artifacts
to all jobs within this JobCollection that haven't been set the artifacs before.
artifacts
Required ¶
- Type: gcix.Artifacts
initialize_cache
¶
Calling gcix.Job.assigneCache()
to all jobs within this JobCollection that haven't been set the cache before.
cache
Required ¶
- Type: gcix.Cache
initialize_dependencies
¶
Calling gcix.Job.assignDependencies()
to all jobs within the first stage of this JobCollection that haven't been added dependencies before.
An empty parameter list means that jobs will get an empty dependency list and thus does not download artifacts by default.
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
initialize_image
¶
Calling gcix.Job.assignImage()
to all jobs within this JobCollection.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
initialize_needs
¶
Calling gcix.Job.assignNeeds()
to all jobs within the first stage of this JobCollection that haven't been added needs before.
An empty parameter list means that jobs will get an empty dependency list and thus does not depend on other jobs by default.
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
initialize_rules
¶
Calling gcix.Job.append_rules()
to all jobs within this JobCollection that haven't been added rules before.
rules
Required ¶
- Type: typing.List[gcix.Rule]
initialize_tags
¶
Calling gcix.Job.addTags([...])
to all jobs within this JobCollection that haven't been added tags before.
tags
Required ¶
- Type: typing.List[str]
initialize_variables
¶
Calling gcix.Job.addVariables({...})
to all jobs within this JobCollection that haven't been added variables before.
variables
Required ¶
- Type: typing.Mapping[str]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
override_allow_failure
¶
Calling gcix.Job.assignAllowFailure()
to all jobs within this JobCollection overriding any previous set value.
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
override_dependencies
¶
Calling gcix.Job.assignDependencies()
to all jobs within the first stage of this JobCollection and overriding any previously added dependencies to that jobs.
An empty parameter list means that jobs will get an empty dependency list and thus does not download artifacts.
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
override_image
¶
Calling gcix.Job.assignImage()
to all jobs within this JobCollection overriding any previous set value.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
override_needs
¶
Calling gcix.Job.assignNeeds()
to all jobs within the first stage of this JobCollection and overriding any previously added needs to that jobs.
An empty parameter list means that jobs will get an empty dependency list and thus does not depend on other jobs.
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
override_rules
¶
Calling gcix.Job.overrideRules()
to all jobs within this JobCollection and overriding any previously added rules to that jobs.
rules
Required ¶
- Type: typing.List[gcix.Rule]
override_tags
¶
Calling gcix.Job.addTags([...])
to all jobs within this JobCollection and overriding any previously added tags to that jobs.
tags
Required ¶
- Type: typing.List[str]
override_variables
¶
Calling gcix.Job.addVariables({...})
to all jobs within this JobCollection and overriding any previously added variables to that jobs.
variables
Required ¶
- Type: typing.Mapping[str]
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
last_jobs_executed |
typing.List[gcix.Job] |
This property returns all Jobs from the last stage of this JobCollection. |
nested_jobs |
typing.List[gcix.Job] |
No description. |
populated_jobs |
typing.List[gcix.Job] |
Returns a list with populated copies of all nested jobs of this JobCollection. |
children |
typing.List[gcix.ChildDict] |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
ordered_tags_for_initialization |
gcix.OrderedStringSet |
No description. |
ordered_tags_for_replacement |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
allow_failure_for_initialization |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
allow_failure_for_replacement |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
artifacts |
gcix.Artifacts |
No description. |
artifacts_for_initialization |
gcix.Artifacts |
No description. |
artifacts_for_replacement |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
cache_for_initialization |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
dependencies_for_initialization |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
dependencies_for_replacement |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image_for_initialization |
typing.Union[str, gcix.Image] |
No description. |
image_for_replacement |
typing.Union[str, gcix.Image] |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
needs_for_initialization |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
needs_for_replacement |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
rules_for_initialization |
typing.List[gcix.Rule] |
No description. |
rules_for_replacement |
typing.List[gcix.Rule] |
No description. |
rules_to_append |
typing.List[gcix.Rule] |
No description. |
rules_to_prepend |
typing.List[gcix.Rule] |
No description. |
scripts_to_append |
typing.List[str] |
No description. |
scripts_to_prepend |
typing.List[str] |
No description. |
variables |
typing.Mapping[str] |
No description. |
variables_for_initialization |
typing.Mapping[str] |
No description. |
variables_for_replacement |
typing.Mapping[str] |
No description. |
b_dist_wheel_job |
PythonBuildBdistWheel |
No description. |
evaluate_git_tag_pep440_conformity_job |
PythonTestEvaluateGitTagPep440Conformity |
No description. |
flake8_job |
PythonLintFlake8 |
No description. |
isort_job |
PythonLintIsort |
No description. |
pytest_job |
PythonTestPytest |
No description. |
twine_prod_job |
PythonDeployTwineUpload |
No description. |
mypy_job |
PythonLintMyPy |
No description. |
sphinx_job |
PagesSphinx |
No description. |
twine_dev_job |
PythonDeployTwineUpload |
No description. |
last_jobs_executed
Required ¶
- Type: typing.List[gcix.Job]
This property returns all Jobs from the last stage of this JobCollection.
This is typically be requested from a job which has setup this JobCollection as need, to determine all actual jobs of this JobCollection as need.
nested_jobs
Required ¶
- Type: typing.List[gcix.Job]
populated_jobs
Required ¶
- Type: typing.List[gcix.Job]
Returns a list with populated copies of all nested jobs of this JobCollection.
Populated means, that all attributes of a Job which depends on its context are resolved to their final values. The context is primarily the JobCollection within the jobs resides but also dependencies to other jobs and JobCollection's. Thus this JobCollection will apply its own configuration, like variables to add, tags to set, etc., to all its jobs and JobCollection's.
Copies means what it says, that the returned job are not the same job objects, originally added to this JobCollection, but copies of them.
Nested means, that also jobs from JobCollection's within this JobCollection, are returned, as well as jobs from JobCollection's within JobCollection's within this JobCollection and so on.
children
Required ¶
- Type: typing.List[gcix.ChildDict]
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
ordered_tags_for_initialization
Required ¶
- Type: gcix.OrderedStringSet
ordered_tags_for_replacement
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
allow_failure_for_initialization
Optional ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
allow_failure_for_replacement
Optional ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
artifacts
Optional ¶
- Type: gcix.Artifacts
artifacts_for_initialization
Optional ¶
- Type: gcix.Artifacts
artifacts_for_replacement
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
cache_for_initialization
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
dependencies_for_initialization
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
dependencies_for_replacement
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image_for_initialization
Optional ¶
- Type: typing.Union[str, gcix.Image]
image_for_replacement
Optional ¶
- Type: typing.Union[str, gcix.Image]
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
needs_for_initialization
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
needs_for_replacement
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
rules_for_initialization
Optional ¶
- Type: typing.List[gcix.Rule]
rules_for_replacement
Optional ¶
- Type: typing.List[gcix.Rule]
rules_to_append
Optional ¶
- Type: typing.List[gcix.Rule]
rules_to_prepend
Optional ¶
- Type: typing.List[gcix.Rule]
scripts_to_append
Optional ¶
- Type: typing.List[str]
scripts_to_prepend
Optional ¶
- Type: typing.List[str]
variables
Optional ¶
- Type: typing.Mapping[str]
variables_for_initialization
Optional ¶
- Type: typing.Mapping[str]
variables_for_replacement
Optional ¶
- Type: typing.Mapping[str]
b_dist_wheel_job
Required ¶
- Type: PythonBuildBdistWheel
evaluate_git_tag_pep440_conformity_job
Required ¶
flake8_job
Required ¶
- Type: PythonLintFlake8
isort_job
Required ¶
- Type: PythonLintIsort
pytest_job
Required ¶
- Type: PythonTestPytest
twine_prod_job
Required ¶
- Type: PythonDeployTwineUpload
mypy_job
Optional ¶
- Type: PythonLintMyPy
sphinx_job
Optional ¶
- Type: PagesSphinx
twine_dev_job
Optional ¶
- Type: PythonDeployTwineUpload
PythonLintFlake8 ¶
- Implements: IPythonLintFlake8
Runs:.
This subclass of Job
configures the following defaults for the superclass:
- name: flake8
- stage: lint
Initializers ¶
Name | Type | Description |
---|---|---|
job_name |
str |
The name of the job. |
job_stage |
str |
The stage of the job. |
job_name
Optional ¶
- Type: str
The name of the job.
job_stage
Optional ¶
- Type: str
The stage of the job.
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_image
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image |
gcix.Image |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
original |
gcix.Job |
No description. |
rules |
typing.List[gcix.Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image
Optional ¶
- Type: gcix.Image
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
original
Optional ¶
- Type: gcix.Job
rules
Optional ¶
- Type: typing.List[gcix.Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
PythonLintIsort ¶
- Implements: IPythonLintIsort
Runs:.
This subclass of Job
will configure following defaults for the superclass:
- name: isort
- stage: lint
Initializers ¶
Name | Type | Description |
---|---|---|
job_name |
str |
The name of the job. |
job_stage |
str |
The stage of the job. |
job_name
Optional ¶
- Type: str
The name of the job.
job_stage
Optional ¶
- Type: str
The stage of the job.
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_image
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image |
gcix.Image |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
original |
gcix.Job |
No description. |
rules |
typing.List[gcix.Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image
Optional ¶
- Type: gcix.Image
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
original
Optional ¶
- Type: gcix.Job
rules
Optional ¶
- Type: typing.List[gcix.Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
PythonLintMyPy ¶
- Implements: IPythonLintMyPy
Install mypy if not already installed. Execute mypy for packageDir
.
This subclass of Job
configures the following defaults for the superclass:
- name: mypy
- stage: lint
Initializers ¶
Name | Type | Description |
---|---|---|
package_dir |
str |
Package directory to type check. |
job_name |
str |
The name of the job. |
job_stage |
str |
The stage of the job. |
my_py_options |
str |
Adds arguments to mypy execution. |
my_py_version |
str |
If mypy is not already installed, this version will be installed. |
package_dir
Required ¶
- Type: str
Package directory to type check.
job_name
Optional ¶
- Type: str
The name of the job.
job_stage
Optional ¶
- Type: str
The stage of the job.
my_py_options
Optional ¶
- Type: str
Adds arguments to mypy execution.
my_py_version
Optional ¶
- Type: str
If mypy
is not already installed, this version will be installed.
Installs latest version if undefined
.
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_image
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image |
gcix.Image |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
original |
gcix.Job |
No description. |
rules |
typing.List[gcix.Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
package_dir |
str |
Package directory to type check. |
my_py_options |
str |
Adds arguments to mypy execution. |
my_py_version |
str |
If mypy is not already installed, this version will be installed. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image
Optional ¶
- Type: gcix.Image
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
original
Optional ¶
- Type: gcix.Job
rules
Optional ¶
- Type: typing.List[gcix.Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
package_dir
Required ¶
- Type: str
Package directory to type check.
my_py_options
Optional ¶
- Type: str
Adds arguments to mypy execution.
my_py_version
Optional ¶
- Type: str
If mypy
is not already installed, this version will be installed.
Installs latest version if undefined
.
PythonScripts ¶
Represents a collection of utility functions for scripting tasks.
Static Functions ¶
Name | Description |
---|---|
pip_install_requirements |
Generates a shell command to install project requirements using pipenv and pip based on the presence of a Pipfile.lock or requirements.txt . |
pip_install_requirements
¶
Generates a shell command to install project requirements using pipenv
and pip
based on the presence of a Pipfile.lock
or requirements.txt
.
pipenv_version_specifier
Optional ¶
- Type: str
- Default: ""
The version hint of pipenv to install if Pipfile.lock
is found. For example '==2022.08.15'. Defaults to an empty string, indicating installation of the latest version.
requirements_file
Optional ¶
- Type: str
- Default: "requirements.txt"
The location and name of the requirements file.
PythonTestEvaluateGitTagPep440Conformity ¶
- Implements: IPythonTestEvaluateGitTagPep440Conformity
Checks if the current pipelines $CI_COMMIT_TAG
validates to a valid Python package version according to https://www.python.org/dev/peps/pep-0440.
This job already contains a rule to only run when a $CI_COMMIT_TAG
is
present (rules.only_tags()
).
Runs pytest
and installs project requirements before
PythonScripts.pipInstallRequirements
- Requires a
requirements.txt
in your project folder containing at leastpytest
This subclass of Job
will configure following defaults for the superclass:
- name: tag-pep440-conformity
- stage: test
- image: PredefinedImages.GCIP
- rules: on_tagsg
Initializers ¶
Name | Type | Description |
---|---|---|
job_name |
str |
The name of the Bootstrap job. |
job_stage |
str |
The stage of the Bootstrap job. |
job_name
Optional ¶
- Type: str
The name of the Bootstrap job.
job_stage
Optional ¶
- Type: str
The stage of the Bootstrap job.
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_image
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image |
gcix.Image |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
original |
gcix.Job |
No description. |
rules |
typing.List[gcix.Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image
Optional ¶
- Type: gcix.Image
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
original
Optional ¶
- Type: gcix.Job
rules
Optional ¶
- Type: typing.List[gcix.Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
PythonTestPytest ¶
- Implements: IPythonTestPytest
Runs pytest
and installs project requirements before PythonScripts.pipInstallRequirements
.
- Requires a
Pipfile.lock
orrequirements.txt
in your project folder containing at leastpytest
This subclass of Job
will configure following defaults for the superclass:
- name: pytest
- stage: test
Initializers ¶
Name | Type | Description |
---|---|---|
job_name |
str |
The name of the Bootstrap job. |
job_stage |
str |
The stage of the Bootstrap job. |
pipenv_version_specifier |
str |
The version hint of pipenv to install if Pipfile.lock is found. For example '==2022.08.15'. Defaults to latest package version. |
pytest_command |
str |
This argument is only required if you have a custom command to call pytest. |
job_name
Optional ¶
- Type: str
The name of the Bootstrap job.
job_stage
Optional ¶
- Type: str
The stage of the Bootstrap job.
pipenv_version_specifier
Optional ¶
- Type: str
The version hint of pipenv to install if Pipfile.lock
is found. For example '==2022.08.15'. Defaults to latest package version.
pytest_command
Optional ¶
- Type: str
This argument is only required if you have a custom command to call pytest.
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_image
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image |
gcix.Image |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
original |
gcix.Job |
No description. |
rules |
typing.List[gcix.Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
pipenv_version_specifier |
str |
The version hint of pipenv to install if Pipfile.lock is found. For example '==2022.08.15'. Defaults to latest package version. |
pytest_command |
str |
This argument is only required if you have a custom command to call pytest. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image
Optional ¶
- Type: gcix.Image
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
original
Optional ¶
- Type: gcix.Job
rules
Optional ¶
- Type: typing.List[gcix.Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
pipenv_version_specifier
Required ¶
- Type: str
The version hint of pipenv to install if Pipfile.lock
is found. For example '==2022.08.15'. Defaults to latest package version.
pytest_command
Required ¶
- Type: str
This argument is only required if you have a custom command to call pytest.
Protocols ¶
IPagesPdoc3 ¶
- Implemented By: PagesPdoc3, IPagesPdoc3
Properties ¶
Name | Type | Description |
---|---|---|
module |
str |
The Python module name. |
output_path |
str |
A sub path of the Gitlab Pages public directory to output generated HTML/markdown files to. |
module
Required ¶
- Type: str
The Python module name.
This may be an import path resolvable in the current environment, or a file path to a Python module or package.
output_path
Required ¶
- Type: str
A sub path of the Gitlab Pages public
directory to output generated HTML/markdown files to.
Defaults to "/".
IPagesSphinx ¶
- Implemented By: PagesSphinx, IPagesSphinx
Properties ¶
Name | Type | Description |
---|---|---|
pip |
PipInstallRequirementsProps |
No description. |
pip
Optional ¶
IPythonBuildBdistWheel ¶
- Implemented By: PythonBuildBdistWheel, IPythonBuildBdistWheel
Properties ¶
Name | Type | Description |
---|---|---|
pipenv_version_specifier |
str |
No description. |
requirements_file |
str |
No description. |
pipenv_version_specifier
Optional ¶
- Type: str
requirements_file
Optional ¶
- Type: str
IPythonDeployTwineUpload ¶
- Implemented By: PythonDeployTwineUpload, IPythonDeployTwineUpload
Properties ¶
Name | Type | Description |
---|---|---|
twine_password_env_var |
str |
The name of the environment variable containing the password. |
twine_username_env_var |
str |
The name of the environment variable containing the username value. |
twine_repository_url |
str |
The URL to the PyPI repository to which the Python artifacts will be deployed. |
twine_password_env_var
Required ¶
- Type: str
The name of the environment variable containing the password.
DO NOT PROVIDE THE LOGIN VALUE ITSELF! This would be a security issue! Defaults to 'TWINE_PASSWORD'.
twine_username_env_var
Required ¶
- Type: str
The name of the environment variable containing the username value.
DO NOT PROVIDE THE USERNAME VALUE ITSELF! This would be a security issue! Defaults to 'TWINE_USERNAME'.
twine_repository_url
Optional ¶
- Type: str
The URL to the PyPI repository to which the Python artifacts will be deployed.
If undefined
the package is published to https://pypi.org
.
IPythonFullStack ¶
- Implemented By: PythonFullStack, IPythonFullStack
Properties ¶
Name | Type | Description |
---|---|---|
b_dist_wheel_job |
PythonBuildBdistWheel |
No description. |
evaluate_git_tag_pep440_conformity_job |
PythonTestEvaluateGitTagPep440Conformity |
No description. |
flake8_job |
PythonLintFlake8 |
No description. |
isort_job |
PythonLintIsort |
No description. |
pytest_job |
PythonTestPytest |
No description. |
twine_prod_job |
PythonDeployTwineUpload |
No description. |
mypy_job |
PythonLintMyPy |
No description. |
sphinx_job |
PagesSphinx |
No description. |
twine_dev_job |
PythonDeployTwineUpload |
No description. |
b_dist_wheel_job
Required ¶
- Type: PythonBuildBdistWheel
evaluate_git_tag_pep440_conformity_job
Required ¶
flake8_job
Required ¶
- Type: PythonLintFlake8
isort_job
Required ¶
- Type: PythonLintIsort
pytest_job
Required ¶
- Type: PythonTestPytest
twine_prod_job
Required ¶
- Type: PythonDeployTwineUpload
mypy_job
Optional ¶
- Type: PythonLintMyPy
sphinx_job
Optional ¶
- Type: PagesSphinx
twine_dev_job
Optional ¶
- Type: PythonDeployTwineUpload
IPythonLintFlake8 ¶
- Implemented By: PythonLintFlake8, IPythonLintFlake8
IPythonLintIsort ¶
- Implemented By: PythonLintIsort, IPythonLintIsort
IPythonLintMyPy ¶
- Implemented By: PythonLintMyPy, IPythonLintMyPy
Properties ¶
Name | Type | Description |
---|---|---|
package_dir |
str |
Package directory to type check. |
my_py_options |
str |
Adds arguments to mypy execution. |
my_py_version |
str |
If mypy is not already installed, this version will be installed. |
package_dir
Required ¶
- Type: str
Package directory to type check.
my_py_options
Optional ¶
- Type: str
Adds arguments to mypy execution.
my_py_version
Optional ¶
- Type: str
If mypy
is not already installed, this version will be installed.
Installs latest version if undefined
.
IPythonTestEvaluateGitTagPep440Conformity ¶
IPythonTestPytest ¶
- Implemented By: PythonTestPytest, IPythonTestPytest
Properties ¶
Name | Type | Description |
---|---|---|
pipenv_version_specifier |
str |
The version hint of pipenv to install if Pipfile.lock is found. For example '==2022.08.15'. Defaults to latest package version. |
pytest_command |
str |
This argument is only required if you have a custom command to call pytest. |
pipenv_version_specifier
Required ¶
- Type: str
The version hint of pipenv to install if Pipfile.lock
is found. For example '==2022.08.15'. Defaults to latest package version.
pytest_command
Required ¶
- Type: str
This argument is only required if you have a custom command to call pytest.
Created: November 14, 2023