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
.
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.0rc1.tar.gz
.
File metadata
- Download URL: digitalmarketplace-developer-tools-1.2.0rc1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96a843085816af9ea0eb4441a5062d493ceefe7f359b68693264966f2dba8835 |
|
MD5 | 63cea70ba58994fdd41376cfced5e8cc |
|
BLAKE2b-256 | dda05095748e96ce423f599f5d18765ecc85d32a321598e85da57bfd5720b84b |
File details
Details for the file digitalmarketplace_developer_tools-1.2.0rc1-py3-none-any.whl
.
File metadata
- Download URL: digitalmarketplace_developer_tools-1.2.0rc1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf4a10143c9c140e7223c54b53fac54915c9abc8813201847fe57c73a1ff9c53 |
|
MD5 | f69f1fc8bfa29c01835f0c63429a1d1f |
|
BLAKE2b-256 | 22e18181d83c3d76aa40ae09a8823bf0a5a092f2f404027b86179796eff76f45 |