Page MenuHomeGRNET

No OneTemporary

File Metadata

Created
Mon, Nov 25, 4:37 PM
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f4c2f88
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+django-nocaptcha-recaptcha (0.0.20-1) UNRELEASED; urgency=low
+
+ * Initial packaging
+
+ -- Alexandros Afentoulis <alexaf@noc.grnet.gr> Tue, 17 Apr 2018 13:28:56 +0000
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0ccbf07
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,225 @@
+Source: django-nocaptcha-recaptcha
+Section: python
+Priority: optional
+Maintainer: Alexandros Afentoulis <alexaf.dpkg@bloom.re>
+Build-Depends: debhelper (>= 9), dh-python,
+ python-all,
+ python-setuptools,
+ python-mock,
+ python-django-setuptest,
+ python3-all,
+ python3-setuptools,
+ python3-mock,
+ python3-django-setuptest,
+Standards-Version: 4.1.3
+Homepage: https://github.com/ImaginaryLandscape/django-nocaptcha-recaptcha
+
+Package: python-django-nocaptcha-recaptcha
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends},
+Recommends: ${python:Recommends}
+Suggests: ${python:Suggests}
+Description: Django nocaptcha recaptcha form field/widget app - Python 2.X
+ [![Build Status](https://travis-ci.org/ImaginaryLandscape/django-nocaptcha-recaptcha.svg?branch=master)](https://travis-ci.org/ImaginaryLandscape/django-nocaptcha-recaptcha)
+ .
+ # SUMMARY
+ .
+ Add new-style Google ReCaptcha widgets to your Django forms simply by adding a
+ NoReCaptchaField field to said forms.
+ .
+ # ABOUT
+ .
+ In late 2014, Google updated their ReCaptcha service, changing its API. The update significantly
+ changes the appearance and function of ReCaptcha. This has been referred to as
+ ReCaptcha 2 or "nocaptcha recaptcha".
+ .
+ This module is intended to be a successor to django-recaptcha to support the new style
+ Google Recaptcha. It borrows a lot of the logic from the django-recaptcha, but has been
+ updated to support the Google change.
+ .
+ For the Google documentation for this service, visit the following:
+ .
+ https://developers.google.com/recaptcha/intro
+ .
+ The original django-recaptcha project is located at the following location:
+ .
+ https://github.com/praekelt/django-recaptcha
+ .
+ # FEATURES
+ .
+ - Implements Google's New "NoCaptcha ReCaptcha Field"
+ - Uses the fallback option for browsers without JavaScript
+ - Easy to add to a Form via a FormField
+ - Works similar to django-recaptcha
+ - Working demo projects
+ - Works with Python 2.7 and 3.4
+ .
+ # INSTALL
+ .
+ pip install django-nocaptcha-recaptcha
+ .
+ # CONFIGURE
+ .
+ Add nocaptcha_recaptcha to your INSTALLED_APPS setting
+ .
+ Add the following to settings.py
+ .
+ Required settings:
+ NORECAPTCHA_SITE_KEY (string) = the Google provided site_key
+ NORECAPTCHA_SECRET_KEY (string) = the Google provided secret_key
+ .
+ Optional Settings:
+ NORECAPTCHA_VERIFY_URL (string) = reCaptcha api endpoint for verification.
+ Best to leave this as the default setting.
+ Default is https://www.google.com/recaptcha/api/siteverify
+ NORECAPTCHA_WIDGET_TEMPLATE (string) = location for the widget template.
+ Default is nocaptcha_recaptcha/widget.html
+ .
+ .
+ Add the field to a form that you want to protect.
+ .
+ from nocaptcha_recaptcha.fields import NoReCaptchaField
+ .
+ class DemoForm(forms.Form):
+ .....
+ captcha = NoReCaptchaField()
+ .
+ .
+ Add Google's JavaScript library to your base template or elsewhere, so it is
+ available on the page containing the django form.
+ .
+ <script src="https://www.google.com/recaptcha/api.js" async defer></script>
+ .
+ .
+ (optional)
+ You can customize the field.
+ .
+ - You can add attributes to the g-recaptcha div tag through the following
+ .
+ captcha = NoReCaptchaField(gtag_attrs={'data-theme':'dark'}))
+ .
+ - You can override the template for the widget like you would any
+ other django template.
+ .
+ .
+ # DEMO PROJECT
+ .
+ The demo project includes a fully working example of this module.
+ To use it, run the following:
+ .
+ cd demo
+ export NORECAPTCHA_SITE_KEY="<your site key>"
+ export NORECAPTCHA_SECRET_KEY="<your secret key>"
+ ./manage.py runserver
+ .
+ # in a browser, visit http://localhost:8000
+ .
+ # TESTING
+ .
+ python setup.py test
+ .
+
+Package: python3-django-nocaptcha-recaptcha
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends},
+Recommends: ${python3:Recommends}
+Suggests: ${python3:Suggests}
+Description: Django nocaptcha recaptcha form field/widget app
+ [![Build Status](https://travis-ci.org/ImaginaryLandscape/django-nocaptcha-recaptcha.svg?branch=master)](https://travis-ci.org/ImaginaryLandscape/django-nocaptcha-recaptcha)
+ .
+ # SUMMARY
+ .
+ Add new-style Google ReCaptcha widgets to your Django forms simply by adding a
+ NoReCaptchaField field to said forms.
+ .
+ # ABOUT
+ .
+ In late 2014, Google updated their ReCaptcha service, changing its API. The update significantly
+ changes the appearance and function of ReCaptcha. This has been referred to as
+ ReCaptcha 2 or "nocaptcha recaptcha".
+ .
+ This module is intended to be a successor to django-recaptcha to support the new style
+ Google Recaptcha. It borrows a lot of the logic from the django-recaptcha, but has been
+ updated to support the Google change.
+ .
+ For the Google documentation for this service, visit the following:
+ .
+ https://developers.google.com/recaptcha/intro
+ .
+ The original django-recaptcha project is located at the following location:
+ .
+ https://github.com/praekelt/django-recaptcha
+ .
+ # FEATURES
+ .
+ - Implements Google's New "NoCaptcha ReCaptcha Field"
+ - Uses the fallback option for browsers without JavaScript
+ - Easy to add to a Form via a FormField
+ - Works similar to django-recaptcha
+ - Working demo projects
+ - Works with Python 2.7 and 3.4
+ .
+ # INSTALL
+ .
+ pip install django-nocaptcha-recaptcha
+ .
+ # CONFIGURE
+ .
+ Add nocaptcha_recaptcha to your INSTALLED_APPS setting
+ .
+ Add the following to settings.py
+ .
+ Required settings:
+ NORECAPTCHA_SITE_KEY (string) = the Google provided site_key
+ NORECAPTCHA_SECRET_KEY (string) = the Google provided secret_key
+ .
+ Optional Settings:
+ NORECAPTCHA_VERIFY_URL (string) = reCaptcha api endpoint for verification.
+ Best to leave this as the default setting.
+ Default is https://www.google.com/recaptcha/api/siteverify
+ NORECAPTCHA_WIDGET_TEMPLATE (string) = location for the widget template.
+ Default is nocaptcha_recaptcha/widget.html
+ .
+ .
+ Add the field to a form that you want to protect.
+ .
+ from nocaptcha_recaptcha.fields import NoReCaptchaField
+ .
+ class DemoForm(forms.Form):
+ .....
+ captcha = NoReCaptchaField()
+ .
+ .
+ Add Google's JavaScript library to your base template or elsewhere, so it is
+ available on the page containing the django form.
+ .
+ <script src="https://www.google.com/recaptcha/api.js" async defer></script>
+ .
+ .
+ (optional)
+ You can customize the field.
+ .
+ - You can add attributes to the g-recaptcha div tag through the following
+ .
+ captcha = NoReCaptchaField(gtag_attrs={'data-theme':'dark'}))
+ .
+ - You can override the template for the widget like you would any
+ other django template.
+ .
+ .
+ # DEMO PROJECT
+ .
+ The demo project includes a fully working example of this module.
+ To use it, run the following:
+ .
+ cd demo
+ export NORECAPTCHA_SITE_KEY="<your site key>"
+ export NORECAPTCHA_SECRET_KEY="<your secret key>"
+ ./manage.py runserver
+ .
+ # in a browser, visit http://localhost:8000
+ .
+ # TESTING
+ .
+ python setup.py test
+ .
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..97674b6
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,45 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: django-nocaptcha-recaptcha
+Upstream-Contact: Imaginary Landscape <jjasinski@imgescape.com>
+Source: https://github.com/ImaginaryLandscape/django-nocaptcha-recaptcha
+
+Files: *
+Copyright: 2014 (c) Imaginary Landscape LLC
+License: BSD
+
+Files: debian/*
+Copyright: 2018 © GRNET NOC servers team <servers@noc.grnet.gr>
+License: BSD
+
+License: BSD
+ Copyright 2014 (c) Imaginary Landscape LLC
+ All rights reserved.
+ .
+ Major updates to the project and name change made by Imaginary Landscape LLC.
+ All licensing follows the below 3-clause BSD license.
+ .
+ .
+ Copyright (c) Praekelt Foundation
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * 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.
+ * Neither the name of Praekelt Foundation 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 PRAEKELT FOUNDATION 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.
diff --git a/debian/files b/debian/files
new file mode 100644
index 0000000..3c01a76
--- /dev/null
+++ b/debian/files
@@ -0,0 +1 @@
+django-nocaptcha-recaptcha_0.0.20-0_source.buildinfo python optional
diff --git a/debian/python3-django-nocaptcha-recaptcha.docs b/debian/python3-django-nocaptcha-recaptcha.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/python3-django-nocaptcha-recaptcha.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7a99db7
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,5 @@
+#! /usr/bin/make -f
+
+export PYBUILD_NAME=django-nocaptcha-recaptcha
+%:
+ dh $@ --with python2,python3 --buildsystem=pybuild
\ No newline at end of file
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..d81db3f
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+.egg-info/"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..0f4ee5c
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# try also https://pypi.debian.net/django-nocaptcha-recaptcha/watch
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/django-nocaptcha-recaptcha/django-nocaptcha-recaptcha-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

Event Timeline