Comments (4)
To enable CI to run for pull requests on the django-csp repository, you will need to configure the repository settings on the CI platform you are using. Here are the general steps to follow:
-
Determine which CI platform the django-csp repository is using. It could be Travis CI, CircleCI, GitHub Actions, or another platform.
-
Check the repository settings on the CI platform to see if pull request builds are enabled. If they are not enabled, enable them.
-
If pull request builds are already enabled, check the configuration file for the CI build to ensure that it is configured to run on pull requests. For example, on Travis CI, you would need to add the following code to your .travis.yml file:
# .travis.yml
branches:
only:
- master
- /^pull\/.*$/
This configuration tells Travis CI to run builds on the master branch and any pull request branches (/^pull/.*$/).
To troubleshoot issues with building the wheel for django-csp, you can try the following steps:
-
Make sure you have the latest version of setuptools and wheel installed:
pip install --upgrade setuptools wheel
-
Check that you have all the required dependencies installed. You can do this by running:
pip install -r requirements.txt
- Try building the wheel again with the following command:
python setup.py bdist_wheel
- If you still encounter errors, check the error message for any specific issues and search for solutions online. You can also try building the wheel in a clean virtual environment to rule out any conflicts with other packages.
Based on the traceback you provided, it seems that the error is caused by a missing dependency. Specifically, the cffi module is not found.
To fix this issue, you can try installing the cffi module manually using the following command:
pip install cffi
Once you have installed cffi, try building the wheel again with the following command:
python setup.py bdist_wheel
If you still encounter errors, check the error message for any specific issues and search for solutions online. You can also try building the wheel in a clean virtual environment to rule out any conflicts with other packages.
from django-csp.
@papoteur-mga Hello! Sorry for the long wait on this one. main
is now building against recent Django and Python versions. Could you confirm whether you can now build a wheel?
I'd like to get a 3.8rc out of the door soon, followed by a formal 3.8 with very few/zero functional changes, mostly just Python and Django support.
from django-csp.
@stevejalim
We have been able to build the version from a snapshot at tag 17d9415
Thanks
from django-csp.
OK thanks @papoteur-mga - I'll close this Issue, but feel free to re-open if you hit packaging issues with the new 3.8 release when it happens
from django-csp.
Related Issues (20)
- New release? HOT 11
- State of project HOT 9
- Unrecognized Content Security Policy directive 'worker-src' in Safari Browser HOT 2
- Backwards compatible method of adding 'strict-dynamic' as suffix HOT 1
- Don't include nonces in default-src when CSP_INCLUDE_NONCE_IN is unset / an empty list HOT 3
- Allow direct editing of build policy output HOT 1
- Documentation for context processor HOT 5
- Deprecated Features HOT 5
- interested in adding typing (mypy) support? HOT 4
- Support clearing/unsetting directives via decorator HOT 7
- Support different sets of rules for paths like /admin HOT 8
- Move project to pyproject.toml HOT 1
- Create csp.extensions.NoncedStyle extension HOT 1
- Change import path to `django_csp` - breaking change HOT 1
- docs: Differentiate between "None" and `NONE` in directives
- [Beta] Report percentage cannot be smaller than 1% HOT 2
- When REPORT_PERCENTAGE is set to 100%, the `report-uri` directive is not always included in the CSP header HOT 2
- docs: Add that `REPORT_PERCENTAGE` requires the rate-limiting middleware in the configuration docs
- Add support for reporting endpoints headers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-csp.