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
Release history Release notifications | RSS feed
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.1.tar.gz
.
File metadata
- Download URL: digitalmarketplace_developer_tools-1.2.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65ae5a0f682002bbf61f7d7d8fd20c6c301c4cf7686b68c387cd70dad77e4b96 |
|
MD5 | d041517108d6c52753b5c22597e6196b |
|
BLAKE2b-256 | c39cd5a2cd0c7498a2210267e5a71beccd903946e3251471ed324678935c26e9 |
File details
Details for the file digitalmarketplace_developer_tools-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: digitalmarketplace_developer_tools-1.2.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 826c1abb6b989bedc2562a7ff13bf85e19bf11574d395a2925140abcd740eec0 |
|
MD5 | abe079c1a6664daa60f2502a5df00072 |
|
BLAKE2b-256 | 63eb762e8b161d4aa203d64fd1d1544d208a798d575f91be23a4867875179ddf |