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.

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.0.2.tar.gz.

File metadata

  • Download URL: digitalmarketplace-developer-tools-1.0.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.15

File hashes

Hashes for digitalmarketplace-developer-tools-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d066812fa32b36b285931452cf825843b7b90261921f0da66cdde98b7d1bcdeb
MD5 a45acf75a7aef992eec71c2a4aa58b98
BLAKE2b-256 b1b62bf130c3ce42024b0b69b0c253f6b9b6867ea1c4df8c8ea8dbb315b8fbae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: digitalmarketplace_developer_tools-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.15

File hashes

Hashes for digitalmarketplace_developer_tools-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d2b4ea55aae3042f25b88b28d2fdcc55143a6cf9145f79b778eeeaa01fa6fc22
MD5 52eb839931573714b7ad11dedadfde16
BLAKE2b-256 4a4115c245a47f4495b63980cdee1d4d30f0e9b4f374e5c64b8df6fcf7421f7b

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