From b42d472a0662de7dac51157013ce03c43c17c3b1 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 18 Nov 2018 22:02:51 +0100 Subject: [PATCH 1/6] update CHANGES --- CHANGES.rst | 47 +++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 7bbbce9..c212194 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,11 +14,18 @@ Release 0.12.0 (unreleased yet) New Features: * Related Hosts: leave v4 or v6 interface ID empty to not create a DNS record -* add ipfire help, #209 -* provide example configuration for 'dyndnsc' +* added configuration help for: + + - IPfire, #209 + - EdgeOS, #86 + - Speedport Hybrid, #286 + - dyndnsc * avoid domains vs. hosts confusion - check dns availability, #168 * add a simple domain name validator, #308 * admin: sort host and domains by name +* validate (domain of) email address in registration form, #284 +* implement django-admin domains --stale-check + Fixes: @@ -31,7 +38,6 @@ Fixes: * fix traceback when language in user profile is None, #206 * fix traceback when using a malformed nameserver secret, #213 * upgrade django-registration-redux, fixes pw reset, #250 #251 #252 -* update pfSense tab to get IP from Result Match * check_domain fixes: #246, #249, #253 * test updates when a domain is set to available, #168 * unicode error under python2.7, #242 @@ -41,22 +47,45 @@ Fixes: * fix crash on ShortHeader and other DNSException subclasses, #247 * more clear dns server configuration check error msg, #278 * update DD-WRT config instructions, #300 +* update pfSense tab to get IP from Result Match +* avoid invalid IP address crash, #394 +* new host creation: set update timestamps to current time, #357 +* remove hardcoded db session engine, use SESSION_ENGINE +* Python 3.7 and Django 2.x related fixes/changes + + - use new MIDDLEWARE setting (since Django 1.10) instead of MIDDLEWARE_CLASSES + - setup.py: don't require a specific Django version, so 1.1 and 2.x works +* add ugly workaround for crash in django-admin users --stale-check +* django-admin.py users: avoid unicode issues by using %r, #350 +* django-admin.py users: initialize log_msg +* no exceptions when context processor saves the session, #356 +* use a much simpler errorpage.html template, related to #356 #365 +* catch exceptions of dns.tsigkeyring.from_text(), #338, #319 +* do not strip interface_id_ipv(4|6) if empty/None, #355 +* use same cleaning for the secret in (Create|Edit)DomainForm, #338 +* django-admin domains --check: catch UnknownTSIGKey, #336 +* transform UnknownTSIGKey into DnsUpdateError, #337 +* fix placeholders in domains management script +* work around UnknownTSIGKey exception blowing up the overview view + Other changes: -* dropped support for / testing on Python 3.3 +* dropped support for Python 3.3 +* added support for Python 3.6 and 3.7 * update django requirement to ~=1.11.0 (LTS), #293 +* update django links in admin docs to point to 1.11 * travis: - - drop py33, add py35, add py36 and py36-dev + - drop: py33, add: py35, py36, py36-dev, py37 - test on trusty with sudo, against local bind9 dns - test always using latest Django 1.11 minor version * pip: remove --use-mirrors * use TEMPLATES setting for Django 1.8+, remove outdated TEMPLATE_* * use www.BASEDOMAIN for WWW_HOST, prepare for #224 -* submitted a pull request with "nsupdate.info" to publicsuffix.org, this - is needed to not run into rate limiting with letsencrypt.org: - https://github.com/publicsuffix/list/pull/93 +* added "nsupdate.info" to publicsuffix.org, + this is needed to not run into rate limiting with letsencrypt.org. +* zone creation: add hint about public suffix list * upgrade django-registration-redux, python-social-auth * upgrade Font Awesome, Bootstrap, jQuery * add subresource integrity, #23 @@ -69,6 +98,8 @@ Other changes: * update inadyn configuration to 2.1 * update OpenWrt config example for Chaos Calmer, #259 * update badges, new readthedocs.io url +* use error views without templating, #365 +* shorter default session expiry, #381 Release 0.11.0 From a34be2039c99bfdb46a00f6b9c9ff9a9d5abdc7c Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 18 Nov 2018 22:10:56 +0100 Subject: [PATCH 2/6] update (c) year --- LICENSE | 2 +- docs/conf.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LICENSE b/LICENSE index 3fd9553..5eb03cd 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ This project is licensed under the the 3-clause BSD license (also known as "Revised BSD License", "New BSD License", or "Modified BSD License"): -Copyright (c) 2013-2015, The nsupdate.info Development Team (see AUTHORS file) +Copyright (c) 2013-2018, The nsupdate.info Development Team (see AUTHORS file) All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/docs/conf.py b/docs/conf.py index 68f5ef0..794739d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -42,7 +42,7 @@ master_doc = 'index' # General information about the project. project = u'nsupdate.info' -copyright = u'2013-2015, The nsupdate.info Team' +copyright = u'2013-2018, The nsupdate.info Team' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the From 067bf17f2f915301e808f91ea64b80de3d19af71 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 18 Nov 2018 22:20:52 +0100 Subject: [PATCH 3/6] use raw string for MAILDOMAIN_BLACKLIST (regexes) --- nsupdate/settings/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsupdate/settings/base.py b/nsupdate/settings/base.py index 1da50c9..b7f287b 100644 --- a/nsupdate/settings/base.py +++ b/nsupdate/settings/base.py @@ -61,7 +61,7 @@ NAMESERVERS = ['8.8.8.8', '1.1.1.1', ] # we use a multiline string here with one regex per line (used with re.search). # the domains given below are just examples, please configure your own # regexes in your local settings file. -MAILDOMAIN_BLACKLIST = """ +MAILDOMAIN_BLACKLIST = r""" mailcatch\.com$ mailspam\.xyz$ """ From c6983124b5b2fa97b227fb71df4850e4e02c96db Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 18 Nov 2018 22:35:44 +0100 Subject: [PATCH 4/6] add release dates for 0.10/11/12 --- CHANGES.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index c212194..80632ad 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,8 +8,8 @@ migrations for that version). For upgrading and migration help, please see the docs that match the version you are upgrading to. -Release 0.12.0 (unreleased yet) -------------------------------- +Release 0.12.0 (2018-11-18) +--------------------------- New Features: @@ -102,8 +102,8 @@ Other changes: * shorter default session expiry, #381 -Release 0.11.0 --------------- +Release 0.11.0 (2015-02-15) +--------------------------- New Features: @@ -136,8 +136,8 @@ Other changes: * upgraded CDN links for bootstrap, jquery, font-awesome -Release 0.10.0 --------------- +Release 0.10.0 (2014-11-17) +--------------------------- New Features: From e43ffd917fa047ae8725b0f622b7f161282319d0 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 18 Nov 2018 22:53:28 +0100 Subject: [PATCH 5/6] update setup.cfg about pytest >= 3.6 see requirements.d/dev.txt --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index e3fc537..a5a7adc 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,7 +25,7 @@ upload-dir = docs/_build/html DJANGO_SETTINGS_MODULE = nsupdate.settings.dev pep8maxlinelength = 120 norecursedirs = .git -minversion = 2.3 +minversion = 3.6 pep8ignore = *.py E124 # closing bracket does not match visual indentation (behaves strange!?) *.py E125 # continuation line does not distinguish itself from next logical line (difficult to avoid!) From a61553afc19ddce21930eb64cb573d1cde101583 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 18 Nov 2018 23:27:26 +0100 Subject: [PATCH 6/6] setup.cfg: remove minversion, version comparison broken ERROR: /home/travis/build/nsupdate-info/nsupdate.info/setup.cfg:28: requires pytest-3.6, actual pytest-3.10.0' --- setup.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index a5a7adc..ef33a9b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,7 +25,6 @@ upload-dir = docs/_build/html DJANGO_SETTINGS_MODULE = nsupdate.settings.dev pep8maxlinelength = 120 norecursedirs = .git -minversion = 3.6 pep8ignore = *.py E124 # closing bracket does not match visual indentation (behaves strange!?) *.py E125 # continuation line does not distinguish itself from next logical line (difficult to avoid!)