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:
- Install Tox in a virtualenv or your local Python environment:
pip install tox
- Run tox:
tox
Open source licensing info
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
Hashes for cfgov_setup-1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68feac569f801e512e0237cc9f232a80b9e45e8c13ea92cb39191dd2caa446bd |
|
MD5 | 962cbbce7632f708ba19d682dca87f8d |
|
BLAKE2b-256 | f4787b3edab0bec5b910ce501f52b6a85ae4a0f5a3d7d713fa25da5668678710 |