Skip to main content

cfgov-setup

This package provides a central home for our logic for building front-end assets as part of the Python build process (for example, when generating a wheel), which has until now simply been duplicated everywhere. Open source examples:

https://github.com/cfpb/complaint/blob/v1.2.3/setup.py#L20 https://github.com/cfpb/retirement/blob/0.5.0/setup.py#L20

We've also added a crucial check that allows front-end build failures to propogate up to Python. They previously ignored the result of subprocess.call and happily continued even if the frontend build failed.

Dependencies

  • Python 2.7

Installation

Edit your package's 'setup.py' to require this module at build-time (setup_requires=['cfgov-setup']), and set the 'do_frontend_build' keyword in the setup arguments. This pull request demonstrates the kind of changes to make.

Testing

To lint and run the unit tests you will need to:

  1. Install Tox in a virtualenv or your local Python environment: pip install tox
  2. Run tox: tox

Open source licensing info

  1. TERMS
  2. LICENSE
  3. CFPB Source Code Policy

Release files for cfgov-setup 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cfgov-setup 1.3
File Size Uploaded
cfgov-setup-1.3.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cfgov-setup 1.3
File Interpreter ABI Platform
cfgov_setup-1.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 8.7 kB

Release files / cfgov-setup-1.3.tar.gz

Download URL cfgov-setup-1.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6f00ec97b38274d4860b13643b1adafbdf3f766e72016a142eea88e5eb627d72
BLAKE2b-256 checksum
How to use checksums
3c2e1c4c2d700a96f6ab13f9eab308003b0262108795867fd100334a64a64c22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.9

Release files / cfgov_setup-1.3-py2.py3-none-any.whl

Download URL cfgov_setup-1.3-py2.py3-none-any.whl
Size 6.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
68feac569f801e512e0237cc9f232a80b9e45e8c13ea92cb39191dd2caa446bd
BLAKE2b-256 checksum
How to use checksums
f4787b3edab0bec5b910ce501f52b6a85ae4a0f5a3d7d713fa25da5668678710
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

1.3 This release

2 release files

1.2

1 release file

1.1

2 release files

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page