Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing CERTIFICATE_VERIFY_FAILED error #12

Closed
wants to merge 34 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b44a64a
Remove redundant files
tiesjan Jun 3, 2021
3629162
Rename project to `django-hcaptcha-field`
tiesjan Jun 3, 2021
370cb09
Update license text
tiesjan Jun 3, 2021
bafdb6f
Update .gitignore file
tiesjan Jun 3, 2021
36d86f1
Several updates in code
Jun 7, 2021
e314d3c
Add unit tests
Jun 7, 2021
ab41db1
Include `sitekey` in captcha verification request
Jun 7, 2021
73b2b8e
Add Python code linters
Jun 7, 2021
748bbd1
Update README
Jun 7, 2021
56bded0
Add packaging configuration
Jun 7, 2021
90d00a1
Disable linters when creating a tag
Jun 7, 2021
04bb852
Add logging to debug verification failures
tiesjan Jun 8, 2021
93c665f
Upgrade publishing and linting to Python 3.9
tiesjan Jun 8, 2021
c7bdade
Translate error texts in DA, FR, NL and NL (BE)
tiesjan Jul 13, 2021
57b776e
Bump version to 1.0.0
tiesjan Jul 13, 2021
0f9cee8
Updates to GitHub Actions workflows
tiesjan Jul 30, 2021
f3ac4be
Updates to unit testing configuration
tiesjan Nov 2, 2021
f8e5c7f
Add support for Django 4.0
tiesjan Dec 7, 2021
44a2fc7
Bump version to 1.1.0
tiesjan Dec 9, 2021
58d488c
Translate error texts to DE
tiesjan Feb 8, 2022
992d7e6
Bump version to 1.2.0
tiesjan Feb 8, 2022
29dda28
Fixes in and formatting of DE translation
tiesjan Feb 8, 2022
48d79af
Bump version to 1.2.1
tiesjan Feb 8, 2022
3fd81a7
Fix version numbers in installation requirements
tiesjan Apr 6, 2022
e35b9a7
Merge pull request #4 from tiesjan/install-requirements-fix
tiesjan Apr 6, 2022
6a0c5d4
Update tox dependencies
tiesjan Apr 6, 2022
901131d
Bump version to 1.2.2
tiesjan Apr 6, 2022
f57f875
Translate error texts to PL
pitrk Apr 12, 2022
836ab4f
Minor adjustments
tiesjan Apr 19, 2022
0e3fc30
Merge pull request #6 from pitrk/main
tiesjan Apr 19, 2022
aefc204
Bump version to 1.3.0
tiesjan Apr 19, 2022
17705e6
Add support for Django 4.1
tiesjan Aug 21, 2022
cc3d7ab
Bump to version 1.4.0
tiesjan Aug 21, 2022
b4cd766
Fixed ssl error
jraylan Nov 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length = 89
32 changes: 32 additions & 0 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Publish PyPI package

on:
push:
branches-ignore:
- "**"
tags:
- "**"

concurrency: pypi_publishing_environment

jobs:
PyPI:
environment: pypi_publishing_environment
runs-on: ubuntu-latest
steps:
- name: Check-out repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install dependencies
run: python3 -m pip install build twine
- name: Build package
run: python3 -m build --sdist --wheel ./
- name: Publish package
run: python3 -m twine upload dist/*
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
29 changes: 29 additions & 0 deletions .github/workflows/run_linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Linters

on:
pull_request:
branches:
- "**"
tags-ignore:
- "**"
push:
branches:
- "**"
tags-ignore:
- "**"

jobs:
Flake8:
runs-on: ubuntu-latest
steps:
- name: Check-out repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install `tox`
run: python3 -m pip install tox
- name: Run linter
run: python3 -m tox -e flake8
61 changes: 61 additions & 0 deletions .github/workflows/run_python_unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
name: Python unit tests

on:
pull_request:
branches:
- "**"
tags-ignore:
- "**"
push:
branches:
- "**"
tags-ignore:
- "**"

jobs:
Test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
# Django 4.0
- {tox_env: "py3-django41", python: "3.10"}
- {tox_env: "py3-django41", python: "3.9"}
- {tox_env: "py3-django41", python: "3.8"}

# Django 4.0
- {tox_env: "py3-django40", python: "3.10"}
- {tox_env: "py3-django40", python: "3.9"}
- {tox_env: "py3-django40", python: "3.8"}

# Django 3.2
- {tox_env: "py3-django32", python: "3.10"}
- {tox_env: "py3-django32", python: "3.9"}
- {tox_env: "py3-django32", python: "3.8"}
- {tox_env: "py3-django32", python: "3.7"}
- {tox_env: "py3-django32", python: "3.6"}

# Django 3.1
- {tox_env: "py3-django31", python: "3.9"}
- {tox_env: "py3-django31", python: "3.8"}
- {tox_env: "py3-django31", python: "3.7"}
- {tox_env: "py3-django31", python: "3.6"}

# Django 2.2
- {tox_env: "py3-django22", python: "3.9"}
- {tox_env: "py3-django22", python: "3.8"}
- {tox_env: "py3-django22", python: "3.7"}
- {tox_env: "py3-django22", python: "3.6"}
- {tox_env: "py3-django22", python: "3.5"}
steps:
- name: Check-out repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install `tox`
run: python3 -m pip install tox
- name: Run unit tests
run: python3 -m tox -e ${{ matrix.tox_env }} -- --randomly-seed ${{ github.run_number }}
133 changes: 129 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,129 @@
.idea
*.pyc
*.egg-info
build
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
#*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
31 changes: 25 additions & 6 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
Copyright 2020 Andrej Zbín
BSD 3-Clause License

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Copyright (c) 2021-present, Ties Jan Hefting
Copyright (c) 2020, Andrej Zbín
All rights reserved.

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
9 changes: 6 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
graft hcaptcha_field
graft py_tests
include LICENSE
include README.rst
recursive-include hcaptcha/templates *
recursive-include docs *
include README.md

global-exclude __pycache__
global-exclude *.py[co]
Loading