Skip to main content

Common developer tools for Digital Marketplace repos

Project description

Digital Marketplace developer tools

Common developer tooling for Digital Marketplace repos.

Quickstart

Install the digitalmarketplace-developer-tools package from PyPI and run Invoke in a Digital Marketplace repo to see what tasks are available:

$ pip install digitalmarketplace-developer-tools
$ invoke --list

Stuff in this repo

Invoke tasks

Developers on the Digital Marketplace need to be able to easily set-up a developer environment for a repo, so they can quickly start making changes to the code.

Traditionally this need has been met with make, however on the Digital Marketplace we are starting to use Invoke instead.

Invoke lets us write tasks once and use them for multiple repos. Being written in Python, we can create a library of tasks and publish them on PyPI for reuse. The package for this repo includes these tasks.

To start using the tasks in a repo, add a tasks.py file and import the collection of tasks appropriate for the repo. For instance, for a frontend app:

# tasks.py
from dmdevtools.invoke_tasks import frontend_app_tasks as ns

The as ns part is needed so that the invoke command line tool sees the imported tasks, read the Invoke documentation on collections and namespaces for more details on how this works.

For backwards-compatibility, make can still be used for a repo. Just copy the Makefile from this repo (or just the % goal), and any unrecognised goals will be sent to invoke.

Pre-commit hooks

This project has a pre-commit hook to do some general file checks and check the pyproject.toml. Follow the Quick start to see how to set this up in your local checkout of this project.

Licence

Unless stated otherwise this codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation.

The documentation is © Crown copyright and available under the terms of the Open Government 3.0 licence.

Project details


Download files

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

Source Distribution

Built Distribution

File details

Details for the file digitalmarketplace_developer_tools-1.2.0.tar.gz.

File metadata

File hashes

Hashes for digitalmarketplace_developer_tools-1.2.0.tar.gz
Algorithm Hash digest
SHA256 ff44fbb48ca85e6fca5b25058df7f0fcfaa954dd8fea9c84c37bd3b916740ccb
MD5 600780ebc9f83e7864eaddb31d5b4d1c
BLAKE2b-256 0fd4be6e22e563f6509ee9840a4655bd133d5ca41562e81801346eb144ab7990

See more details on using hashes here.

File details

Details for the file digitalmarketplace_developer_tools-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for digitalmarketplace_developer_tools-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b95492e23045e2d698d0e33c3c30469f02dcba499bfbb6f4ab440d5bd064ff39
MD5 a50c109403e94fa52ace9f829d1ad4bd
BLAKE2b-256 22ee8d85adb1dc9aeb6d9de2e50589cb39e6ca313c0817ba54d5c3439a757c6b

See more details on using hashes here.

Supported by

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