Skip to main content

UNKNOWN

Project description

# 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](https://pypi-hypernode.com/pypi/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](https://github.com/cfpb/complaint/pull/10) demonstrates the kind of changes to make.

## Open source licensing info 1. [TERMS](TERMS.md) 2. [LICENSE](LICENSE) 3. [CFPB Source Code Policy](https://github.com/cfpb/source-code-policy/)

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

cfgov_setup-1.2.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file cfgov_setup-1.2.tar.gz.

File metadata

  • Download URL: cfgov_setup-1.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cfgov_setup-1.2.tar.gz
Algorithm Hash digest
SHA256 36ec852d72a6695d6944f6fb9534caab5945617bc730da21536b28c9f8afb928
MD5 1d1d7b427726221a9cb6c5c090f441d9
BLAKE2b-256 ae85f05360f7a7de9b43ca8a95feb004587f77c1c5912f85b2f9854c15fa6763

See more details on using hashes here.

Provenance

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