tomtom-international / cookiecutter-python

:cookie: Cookiecutter template for Python packages
Apache License 2.0
17 stars 9 forks source link
azure-pipelines cookiecutter cookiecutter-template jenkins jenkins-pipeline python python3 setuptools tomtom

Cookiecutter Python

Cookiecutter template for Python packages.

Features

Experimental Features

TODO

Getting Started

Prerequisites

Install the following minimum requirements

Installing

Install the latest Cookiecutter if you haven't installed it yet (this requires Cookiecutter 1.4.0 or higher):

pip install cookiecutter

Generate the Python package project:

cookiecutter gh:tomtom-international/cookiecutter-python

Then:

Variables explained

Cookiecutter will prompt you for various settings which we are explained here:

Tips

Azure

In order to use Azure DevOps/Pipelines, first create an Azure DevOps account, create an organization and project.

For detailed instructions please read the Azure DevOps documentation.

Creating Azure Pipelines

A detailed description on how to create Azure Pipelines can be found as well here.

Remark:

In case you want to host a project in the tomtom-international organization and you chose Azure for the CI contact the @nav-pipeline team to request a build pipeline in the TomTom Azure DevOps account.

Jenkins

In case of hosting on Jenkins/Bitbucket Server we recommend using the BitBucket Branch Source Plugin that allows you to configure a folder in Jenkins that will scan the whole BitBucket project for repositories with a Jenkinsfile.

The following Jenkins plugins are required by the pythonSetupPyPipeline used in the Jenkinsfile:

Credits

This package is inspired by Cookiecutter PyPackage project template.