-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from torchbox-forks/master
Wagtail 4.1 - 5.2
- Loading branch information
Showing
22 changed files
with
1,031 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: ["3.8", "3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
id: setup-python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install dependencies | ||
id: install-dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install tox tox-gh-actions | ||
- name: Test with tox | ||
id: test-with-tox | ||
run: | | ||
tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ tests/testapp/var/media/ | |
.coverage | ||
coverage | ||
coverage_html_report/ | ||
venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
#!/usr/bin/env python | ||
|
||
from __future__ import absolute_import, unicode_literals | ||
|
||
import os | ||
import sys | ||
|
||
|
||
def run(): | ||
from django.core.management import execute_from_command_line | ||
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.testapp.testapp.settings' | ||
|
||
sys.path.append(os.path.join('tests', 'testapp')) | ||
os.environ["DJANGO_SETTINGS_MODULE"] = "tests.testapp.testapp.settings" | ||
|
||
sys.path.append(os.path.join("tests", "testapp")) | ||
|
||
execute_from_command_line([sys.argv[0], 'test'] + sys.argv[1:]) | ||
execute_from_command_line([sys.argv[0], "test"] + sys.argv[1:]) | ||
|
||
|
||
if __name__ == '__main__': | ||
if __name__ == "__main__": | ||
run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
from wagtailcaptcha import __version__ | ||
|
||
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: | ||
with open(os.path.join(os.path.dirname(__file__), "README.rst")) as readme: | ||
README = readme.read() | ||
|
||
# allow setup.py to be run from any path | ||
|
@@ -15,53 +15,57 @@ | |
# Testing dependencies | ||
testing_extras = [ | ||
# Required for running the tests | ||
'tox>=2.3.1,<2.4', | ||
|
||
"tox>=3.26.0,<3.27", | ||
# For coverage and PEP8 linting | ||
'coverage>=4.1.0,<4.2', | ||
'flake8>=3.2.0,<3.3', | ||
'isort==4.2.5', | ||
|
||
"coverage>=6.5.0,<6.6", | ||
"flake8>=5.0.4,<5.1", | ||
"isort>=5.10.1", | ||
# For test site | ||
'wagtail==2.0', | ||
"wagtail>=4.1", | ||
] | ||
|
||
# Documentation dependencies | ||
documentation_extras = [ | ||
|
||
] | ||
documentation_extras = [] | ||
|
||
setup( | ||
name='wagtail-django-recaptcha', | ||
name="wagtail-django-recaptcha", | ||
version=__version__, | ||
packages=find_packages(), | ||
include_package_data=True, | ||
license='MIT', | ||
description='A simple recaptcha field for Wagtail Form Pages.', | ||
license="MIT", | ||
description="A simple recaptcha field for Wagtail Form Pages.", | ||
long_description=README, | ||
url='http://github.com/springload/wagtail-django-recaptcha', | ||
author='Springload', | ||
author_email='[email protected]', | ||
url="http://github.com/springload/wagtail-django-recaptcha", | ||
author="Springload", | ||
author_email="[email protected]", | ||
classifiers=[ | ||
'Environment :: Web Environment', | ||
'Framework :: Django', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Topic :: Internet :: WWW/HTTP', | ||
'Topic :: Internet :: WWW/HTTP :: Dynamic Content', | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Framework :: Django", | ||
"Framework :: Django :: 3.2", | ||
"Framework :: Django :: 4.1", | ||
"Framework :: Django :: 4.2", | ||
"Framework :: Wagtail", | ||
"Framework :: Wagtail :: 3", | ||
"Framework :: Wagtail :: 4", | ||
"Framework :: Wagtail :: 5", | ||
"Topic :: Internet :: WWW/HTTP", | ||
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", | ||
], | ||
install_requires=['django-recaptcha'], | ||
install_requires=["django-recaptcha>=4"], | ||
extras_require={ | ||
'testing': testing_extras, | ||
'docs': documentation_extras, | ||
"testing": testing_extras, | ||
"docs": documentation_extras, | ||
}, | ||
zip_safe=False | ||
zip_safe=False, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.