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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f00ec97b38274d4860b13643b1adafbdf3f766e72016a142eea88e5eb627d72 |
|
MD5 | 18218c2e5b1cb0facd605ebeb5ce2e57 |
|
BLAKE2b-256 | 3c2e1c4c2d700a96f6ab13f9eab308003b0262108795867fd100334a64a64c22 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68feac569f801e512e0237cc9f232a80b9e45e8c13ea92cb39191dd2caa446bd |
|
MD5 | 962cbbce7632f708ba19d682dca87f8d |
|
BLAKE2b-256 | f4787b3edab0bec5b910ce501f52b6a85ae4a0f5a3d7d713fa25da5668678710 |