Skip to main content

No project description provided

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), 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

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.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

cfgov_setup-1.3-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cfgov-setup-1.3.tar.gz.

File metadata

  • Download URL: cfgov-setup-1.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for cfgov-setup-1.3.tar.gz
Algorithm Hash digest
SHA256 6f00ec97b38274d4860b13643b1adafbdf3f766e72016a142eea88e5eb627d72
MD5 18218c2e5b1cb0facd605ebeb5ce2e57
BLAKE2b-256 3c2e1c4c2d700a96f6ab13f9eab308003b0262108795867fd100334a64a64c22

See more details on using hashes here.

File details

Details for the file cfgov_setup-1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: cfgov_setup-1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for cfgov_setup-1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 68feac569f801e512e0237cc9f232a80b9e45e8c13ea92cb39191dd2caa446bd
MD5 962cbbce7632f708ba19d682dca87f8d
BLAKE2b-256 f4787b3edab0bec5b910ce501f52b6a85ae4a0f5a3d7d713fa25da5668678710

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