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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cfgov-setup-1.3.tar.gz | 2.6 kB | Without provenance | Details for cfgov-setup-1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cfgov_setup-1.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for cfgov_setup-1.3-py2.py3-none-any.whl |
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
|
Security for cfgov-setup 1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.