Hello community,
here is the log from the commit of package python-localzone for
openSUSE:Factory checked in at 2019-03-19 10:00:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-localzone (Old)
and /work/SRC/openSUSE:Factory/.python-localzone.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-localzone"
Tue Mar 19 10:00:10 2019 rev:2 rq:686030 version:0.9.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-localzone/python-localzone.changes
2019-01-03 18:06:09.460165443 +0100
+++
/work/SRC/openSUSE:Factory/.python-localzone.new.28833/python-localzone.changes
2019-03-19 10:00:21.235944797 +0100
@@ -1,0 +2,7 @@
+Mon Mar 18 10:44:32 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.9.5:
+ * Support dnspython 1.16.0.
+ * Add tox config.
+
+-------------------------------------------------------------------
Old:
----
v0.9.4.tar.gz
New:
----
v0.9.5.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-localzone.spec ++++++
--- /var/tmp/diff_new_pack.SKp2C4/_old 2019-03-19 10:00:22.075944446 +0100
+++ /var/tmp/diff_new_pack.SKp2C4/_new 2019-03-19 10:00:22.083944443 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-localzone
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,12 +18,12 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-localzone
-Version: 0.9.4
+Version: 0.9.5
Release: 0
Summary: A library for managing DNS zones
License: BSD-3-Clause
Group: Development/Languages/Python
-Url: https://localzone.iomaestro.com
+URL: https://github.com/ags-slc/localzone
Source: https://github.com/ags-slc/localzone/archive/v%{version}.tar.gz
BuildRequires: %{python_module dnspython}
BuildRequires: %{python_module pytest}
@@ -32,7 +32,6 @@
BuildRequires: python-rpm-macros
Requires: python-dnspython
BuildArch: noarch
-
%python_subpackages
%description
@@ -49,7 +48,7 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}
py.test-%{$python_bin_suffix}
+%pytest
%files %{python_files}
%doc README.rst
++++++ v0.9.4.tar.gz -> v0.9.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/localzone-0.9.4/README.rst
new/localzone-0.9.5/README.rst
--- old/localzone-0.9.4/README.rst 2018-11-09 18:52:39.000000000 +0100
+++ new/localzone-0.9.5/README.rst 2018-12-10 17:34:13.000000000 +0100
@@ -1,9 +1,4 @@
-.. image:: https://localzone.iomaestro.com/_static/localzone-small.png
- :align: center
- :width: 100px
- :height: 100px
- :alt: Project link: localzone (calzone image by sobinsergey from the Noun
Project)
- :target: https://localzone.iomaestro.com
+.. include:: docs/logo.rst
A low-calorie library for managing DNS zones
============================================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/localzone-0.9.4/docs/_static/localzone-light.svg
new/localzone-0.9.5/docs/_static/localzone-light.svg
--- old/localzone-0.9.4/docs/_static/localzone-light.svg 1970-01-01
01:00:00.000000000 +0100
+++ new/localzone-0.9.5/docs/_static/localzone-light.svg 2018-12-10
17:34:13.000000000 +0100
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version:
6.00 Build 0) -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ width="800px" height="320px" viewBox="-94.002 222.5 800 320"
enable-background="new -94.002 222.5 800 320"
+ xml:space="preserve">
+<path fill="#FFFFFF"
d="M560.928,460.478c-3.922-5.324-8.898-8.268-12.9-10.637c-6.988-4.137-9.885-5.844-5.307-21.848
+
c3.465-12.137-0.264-20.594-4.002-25.552c-8.316-11.028-24.113-14.951-36.121-14.951c-6.988,0-9.18-2.546-9.908-3.384
+
c-3.262-3.776-4.203-11.604-2.656-22.051c1.236-8.336-1.432-15.808-7.508-21.028c-10.875-9.339-30.209-9.18-43.557-5.073
+
c-3.635,1.119-4.963,0.324-5.398,0.055c-5.244-3.158-8.354-19.486-9.521-25.63c-2.154-11.304-9.535-19.596-20.252-22.76
+
c-12.264-3.617-27.344,0.227-35.857,9.149c-1.512,1.585-4.443,4.155-7.068,3.721c-2.883-0.483-6.211-4.296-8.904-10.189
+
c-5.943-12.993-17.949-22.234-30.588-23.544c-10.508-1.083-20.312,3.439-26.934,12.424c-4.877,6.609-9.712,10.41-13.623,10.704
+
c-0.881,0.085-3.592,0.281-7.632-3.758c-7.68-7.681-20.532-15.465-33.635-14.339c-8.28,0.729-15.312,4.896-20.331,12.069
+
c-2.699,3.855-4.792,7.35-6.64,10.435c-5.918,9.877-6.451,9.798-10.508,9.217c-1.689-0.245-3.507-0.588-5.398-0.949
+
c-12.858-2.442-39.578-7.497-46.665,25.588c-2.167,10.11-4.719,11.916-5,12.086c-1.107,0.668-5.085-0.416-7.993-1.211
+
c-2.375-0.649-4.779-1.292-7.154-1.689c-8.268-1.383-20.808,0.416-28.886,10.012c-4.963,5.9-9.614,16.537-3.592,33.709
+
c2.466,7.039,1.334,9.046,1.285,9.125c-1.022,1.695-7.858,2.73-11.53,3.281c-2.925,0.439-5.949,0.893-8.794,1.664
+
c-9.602,2.595-16.652,9.376-18.85,18.134c-1.475,5.875-1.842,17.724,12.283,31.04c0.239,0.221,0.447,0.429,0.637,0.619
+
c-1.218,0.758-2.693,1.584-3.843,2.233c-7.338,4.131-17.387,9.786-20.918,21.42c-1.781,5.862-0.894,11.609,2.497,16.188
+
c9.352,12.606,34.352,13.647,74.364,13.647c0.502,0,1.003,0,1.505,0h390.224c24.223,0,41.377-6.45,47.057-17.699
+ C566.547,474.303,565.684,466.928,560.928,460.478z
M516.246,480.05H126.01c-19.37,0.006-55.312,0.03-60.894-5.968
+
c0.031-0.006,0.067-0.055,0.104-0.171c1.389-4.584,6.965-7.724,12.356-10.753c6.34-3.568,13.525-7.613,14.523-15.777
+
c1.003-8.22-5.563-14.407-7.724-16.444c-5.257-4.957-7.901-9.896-7.069-13.207c0.545-2.186,2.785-4.052,5.833-4.878
+
c1.824-0.495,4.21-0.856,6.738-1.235c8.488-1.279,19.051-2.871,24.529-11.965c3.813-6.328,3.911-14.4,0.312-24.67
+
c-1.744-4.976-3.103-11.75,0.312-15.814c2.754-3.28,8.029-4.369,11.824-3.727c1.769,0.293,3.549,0.801,5.318,1.285
+
c6.126,1.677,14.51,3.984,22.381-0.803c6.505-3.953,10.765-11.554,13.421-23.929c3.06-14.284,9.027-14.479,25.288-11.401
+
c2.179,0.41,4.271,0.808,6.224,1.083c16.665,2.375,23.14-8.421,28.856-17.956c1.689-2.821,3.604-6.016,5.937-9.345
+
c1.885-2.687,4.07-4.057,6.885-4.302c5.422-0.465,13.262,3.237,19.052,9.033c8.256,8.25,16.512,9.517,21.989,9.082
+
c9.596-0.722,18.684-6.817,27.02-18.115c2.814-3.825,6.176-5.453,10.264-5.055c6.199,0.643,12.545,5.833,15.783,12.914
+
c6.902,15.104,16.078,19.571,22.559,20.661c8.164,1.358,16.457-1.885,23.396-9.156c3.838-4.015,11.635-5.918,17.381-4.21
+
c4.119,1.212,6.543,4.021,7.412,8.586c2.943,15.447,6.762,31.101,18.09,37.919c5.832,3.507,12.639,4.106,20.27,1.762
+
c9.773-3.017,21.77-2.344,26.193,1.451c0.881,0.759,1.707,1.72,1.311,4.412c-2.412,16.262-0.08,28.623,6.92,36.732
+
c3.838,4.449,11.084,9.75,23.809,9.75c9.24,0,18.066,3.145,21.463,7.649c1.15,1.53,2.514,4.174,1.01,9.449
+
c-7.822,27.368,1.977,35.814,13.615,42.699c3.092,1.83,5.76,3.409,7.467,5.723c0.527,0.716,0.68,1.181,0.771,1.07
+ C546.039,474.425,536.9,480.05,516.246,480.05z"/>
+<path fill="#FFFFFF"
d="M329.164,319.528C178.716,294.099,104.633,421.145,103.899,422.43c-2.503,4.406-0.961,10,3.439,12.503
+
c4.388,2.51,10,0.979,12.515-3.428c2.57-4.498,60.771-103.593,181.507-96.689c-0.049,0.031-0.098,0.043-0.146,0.067
+
c-2.95,1.8-72.424,45.031-87.651,126.011c-0.937,4.981,2.344,9.786,7.326,10.717c0.575,0.109,1.145,0.158,1.708,0.158
+
c4.333,0,8.183-3.078,9.015-7.484c13.685-72.785,78.532-113.342,79.186-113.74c4.314-2.65,5.674-8.299,3.029-12.619
+
c-0.537-0.881-1.223-1.604-1.971-2.229c4.67,0.49,9.408,1.102,14.254,1.922c138.117,23.336,170.943,123.44,172.271,127.694
+
c1.225,3.935,4.848,6.463,8.766,6.463c0.893,0,1.805-0.129,2.705-0.41c4.846-1.493,7.562-6.628,6.07-11.476
+ C514.471,455.214,478.854,344.821,329.164,319.528z"/>
+<path fill="#FFFFFF"
d="M372.236,356.56c-2.662-4.32-8.316-5.66-12.631-2.998c-2.492,1.535-61.054,38.378-70.864,107.755
+
c-0.71,5.018,2.785,9.663,7.803,10.373c0.435,0.062,0.869,0.092,1.298,0.092c4.498,0,8.427-3.311,9.076-7.895
+
c8.58-60.668,61.793-94.37,62.332-94.708C373.559,366.517,374.893,360.868,372.236,356.56z"/>
+<path fill="#FFFFFF"
d="M411.955,385.581c-1.627,0.729-40.031,18.428-56.348,74.462c-1.42,4.865,1.377,9.964,6.25,11.377
+
c0.855,0.251,1.719,0.374,2.57,0.374c3.977,0,7.643-2.607,8.807-6.616c13.812-47.431,44.902-62.228,46.248-62.853
+
c4.596-2.08,6.658-7.49,4.596-12.105C422.016,385.587,416.594,383.507,411.955,385.581z"/>
+<path fill="#FFFFFF"
d="M221.746,371.799c3.917-3.22,4.479-9.003,1.267-12.913c-3.219-3.917-8.99-4.492-12.907-1.279
+
c-2.062,1.689-50.594,42.002-62.437,99.125c-1.028,4.97,2.161,9.823,7.124,10.852c0.63,0.128,1.255,0.195,1.873,0.195
+
c4.259,0,8.078-2.986,8.978-7.319C176.151,409.804,221.292,372.179,221.746,371.799z"/>
+</svg>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/localzone-0.9.4/docs/_static/localzone.svg
new/localzone-0.9.5/docs/_static/localzone.svg
--- old/localzone-0.9.4/docs/_static/localzone.svg 1970-01-01
01:00:00.000000000 +0100
+++ new/localzone-0.9.5/docs/_static/localzone.svg 2018-12-10
17:34:13.000000000 +0100
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version:
6.00 Build 0) -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ width="800px" height="800px" viewBox="-94 -4 800 800"
enable-background="new -94 -4 800 800" xml:space="preserve">
+<path
d="M560.931,473.978c-3.923-5.324-8.898-8.268-12.901-10.637c-6.988-4.137-9.884-5.844-5.306-21.848
+
c3.464-12.137-0.264-20.594-4.003-25.551c-8.316-11.028-24.112-14.951-36.12-14.951c-6.989,0-9.18-2.547-9.908-3.385
+
c-3.262-3.775-4.204-11.604-2.656-22.051c1.236-8.335-1.432-15.807-7.509-21.027c-10.875-9.34-30.208-9.18-43.556-5.074
+
c-3.636,1.12-4.964,0.324-5.398,0.055c-5.245-3.157-8.354-19.485-9.522-25.63c-2.154-11.304-9.535-19.597-20.251-22.761
+
c-12.265-3.616-27.345,0.227-35.857,9.15c-1.512,1.584-4.443,4.154-7.068,3.721c-2.883-0.484-6.212-4.297-8.904-10.189
+
c-5.943-12.993-17.95-22.234-30.588-23.545c-10.509-1.082-20.312,3.439-26.935,12.424c-4.877,6.609-9.713,10.41-13.623,10.705
+
c-0.881,0.085-3.592,0.281-7.632-3.758c-7.681-7.682-20.532-15.466-33.636-14.34c-8.279,0.729-15.312,4.896-20.33,12.068
+
c-2.699,3.855-4.792,7.351-6.641,10.436c-5.918,9.877-6.45,9.797-10.508,9.217c-1.689-0.246-3.507-0.588-5.398-0.949
+
c-12.857-2.441-39.577-7.497-46.664,25.588c-2.166,10.109-4.719,11.916-5,12.087c-1.107,0.667-5.086-0.417-7.993-1.212
+
c-2.374-0.648-4.779-1.291-7.154-1.689c-8.269-1.383-20.808,0.416-28.886,10.013c-4.964,5.899-9.615,16.536-3.593,33.709
+
c2.466,7.038,1.334,9.046,1.285,9.125c-1.022,1.695-7.858,2.729-11.53,3.28c-2.926,0.44-5.949,0.894-8.795,1.664
+
c-9.602,2.596-16.652,9.377-18.85,18.135c-1.475,5.875-1.842,17.723,12.283,31.04c0.238,0.22,0.447,0.429,0.637,0.618
+
c-1.218,0.759-2.693,1.585-3.844,2.234c-7.338,4.131-17.387,9.785-20.918,21.42c-1.781,5.861-0.894,11.609,2.497,16.188
+
c9.352,12.605,34.352,13.646,74.364,13.646c0.502,0,1.004,0,1.506,0h390.223c24.224,0,41.378-6.449,47.057-17.699
+ C566.549,487.804,565.686,480.429,560.931,473.978z
M516.248,493.55H126.013c-19.37,0.006-55.312,0.031-60.894-5.967
+
c0.03-0.006,0.066-0.055,0.104-0.172c1.389-4.584,6.965-7.723,12.356-10.752c6.341-3.568,13.525-7.613,14.522-15.777
+
c1.004-8.22-5.562-14.407-7.723-16.445c-5.258-4.957-7.901-9.896-7.069-13.207c0.545-2.185,2.784-4.051,5.833-4.877
+
c1.823-0.496,4.21-0.857,6.738-1.236c8.488-1.279,19.051-2.871,24.528-11.965c3.813-6.328,3.911-14.4,0.312-24.67
+
c-1.744-4.975-3.102-11.75,0.312-15.814c2.754-3.279,8.029-4.369,11.824-3.727c1.769,0.294,3.549,0.802,5.318,1.285
+
c6.126,1.678,14.51,3.984,22.381-0.802c6.506-3.953,10.765-11.554,13.421-23.929c3.06-14.285,9.026-14.48,25.288-11.402
+
c2.179,0.41,4.271,0.809,6.224,1.084c16.665,2.375,23.14-8.422,28.856-17.957c1.688-2.82,3.604-6.016,5.936-9.345
+
c1.885-2.687,4.07-4.058,6.885-4.302c5.423-0.465,13.263,3.236,19.053,9.033c8.256,8.25,16.512,9.516,21.988,9.082
+
c9.597-0.723,18.685-6.818,27.021-18.115c2.814-3.826,6.175-5.453,10.263-5.056c6.2,0.643,12.546,5.833,15.783,12.913
+
c6.903,15.104,16.078,19.572,22.559,20.662c8.164,1.357,16.457-1.886,23.396-9.156c3.838-4.015,11.635-5.918,17.381-4.211
+
c4.119,1.213,6.543,4.021,7.412,8.587c2.943,15.446,6.762,31.102,18.09,37.919c5.833,3.508,12.639,4.107,20.27,1.763
+
c9.774-3.017,21.77-2.344,26.194,1.45c0.881,0.76,1.707,1.721,1.31,4.413c-2.411,16.261-0.08,28.623,6.921,36.731
+
c3.838,4.449,11.084,9.75,23.808,9.75c9.241,0,18.066,3.146,21.463,7.65c1.15,1.529,2.515,4.174,1.01,9.449
+
c-7.821,27.368,1.977,35.814,13.616,42.699c3.091,1.83,5.76,3.408,7.467,5.723c0.526,0.715,0.68,1.18,0.771,1.07
+ C546.041,487.925,536.903,493.55,516.248,493.55z"/>
+<path
d="M329.166,333.028C178.719,307.6,104.636,434.646,103.901,435.931c-2.503,4.406-0.961,10,3.439,12.502
+
c4.388,2.51,10,0.98,12.515-3.427c2.57-4.498,60.771-103.593,181.508-96.69c-0.049,0.031-0.098,0.043-0.146,0.068
+
c-2.951,1.799-72.425,45.031-87.651,126.01c-0.937,4.982,2.345,9.787,7.325,10.717c0.576,0.109,1.145,0.158,1.708,0.158
+
c4.333,0,8.183-3.078,9.015-7.484c13.685-72.785,78.532-113.342,79.187-113.74c4.314-2.649,5.674-8.299,3.029-12.619
+
c-0.538-0.881-1.224-1.604-1.971-2.228c4.67,0.489,9.407,1.102,14.254,1.922c138.116,23.335,170.943,123.44,172.271,127.694
+
c1.225,3.934,4.848,6.463,8.765,6.463c0.894,0,1.805-0.129,2.705-0.41c4.847-1.494,7.563-6.629,6.07-11.477
+ C514.474,468.715,478.855,358.322,329.166,333.028z"/>
+<path
d="M372.238,370.061c-2.662-4.321-8.316-5.661-12.631-2.999c-2.491,1.536-61.054,38.379-70.863,107.756
+
c-0.711,5.018,2.784,9.662,7.803,10.373c0.434,0.061,0.869,0.092,1.297,0.092c4.498,0,8.428-3.311,9.076-7.895
+
c8.58-60.668,61.794-94.371,62.332-94.708C373.561,380.018,374.895,374.369,372.238,370.061z"/>
+<path
d="M411.957,399.081c-1.627,0.729-40.03,18.428-56.347,74.463c-1.42,4.865,1.377,9.963,6.249,11.377
+
c0.856,0.25,1.72,0.373,2.57,0.373c3.978,0,7.644-2.607,8.807-6.615c13.812-47.431,44.902-62.229,46.249-62.854
+
c4.596-2.08,6.658-7.49,4.596-12.105C422.019,399.087,416.597,397.007,411.957,399.081z"/>
+<path
d="M221.748,385.3c3.916-3.22,4.479-9.003,1.267-12.914c-3.22-3.916-8.99-4.492-12.907-1.279
+
c-2.062,1.689-50.594,42.002-62.436,99.126c-1.029,4.97,2.16,9.823,7.123,10.851c0.631,0.129,1.255,0.195,1.873,0.195
+
c4.26,0,8.078-2.986,8.979-7.318C176.154,423.305,221.295,385.679,221.748,385.3z"/>
+</svg>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/localzone-0.9.4/docs/changelog.rst
new/localzone-0.9.5/docs/changelog.rst
--- old/localzone-0.9.4/docs/changelog.rst 1970-01-01 01:00:00.000000000
+0100
+++ new/localzone-0.9.5/docs/changelog.rst 2018-12-10 17:34:13.000000000
+0100
@@ -0,0 +1,5 @@
+=========
+Changelog
+=========
+
+.. include:: ../CHANGELOG.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/localzone-0.9.4/docs/conf.py
new/localzone-0.9.5/docs/conf.py
--- old/localzone-0.9.4/docs/conf.py 2018-11-09 18:52:39.000000000 +0100
+++ new/localzone-0.9.5/docs/conf.py 2018-12-10 17:34:13.000000000 +0100
@@ -88,13 +88,20 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
-html_theme = 'alabaster'
+html_theme = 'sphinx_rtd_theme'
+
+# The name of an image file (relative to this directory) to place at the top
+# of the sidebar.
+#
+html_logo = "_static/localzone-light.svg"
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
-# html_theme_options = {}
+html_theme_options = {
+ 'canonical_url': '/',
+}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
@@ -111,6 +118,13 @@
#
# html_sidebars = {}
+html_context = {
+ "display_github": True, # Integrate GitHub
+ "github_user": "ags-slc", # Username
+ "github_repo": "localzone", # Repo name
+ "github_version": "master", # Version
+ "conf_py_path": "/docs/", # Path in the checkout to the docs root
+}
# -- Options for HTMLHelp output ---------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/localzone-0.9.4/docs/index.rst
new/localzone-0.9.5/docs/index.rst
--- old/localzone-0.9.4/docs/index.rst 2018-11-09 18:52:39.000000000 +0100
+++ new/localzone-0.9.5/docs/index.rst 2018-12-10 17:34:13.000000000 +0100
@@ -3,12 +3,8 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
-.. image:: _static/localzone.png
- :width: 100px
- :align: center
- :height: 100px
- :alt: Project link: localzone (calzone image by sobinsergey from the Noun
Project)
- :target: https://localzone.iomaestro.com
+
+.. include:: logo.rst
A low-calorie library for managing DNS zones
@@ -67,9 +63,11 @@
.. toctree::
:maxdepth: 2
- :caption: Contents:
+ :caption: Documentation:
+ :hidden:
modules
+ changelog
Where did the calories go? The likely `suspect
<https://www.traegergrills.com/recipes/pork/meat-lovers-calzone-smoked-marinara>`_.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/localzone-0.9.4/docs/logo.rst
new/localzone-0.9.5/docs/logo.rst
--- old/localzone-0.9.4/docs/logo.rst 1970-01-01 01:00:00.000000000 +0100
+++ new/localzone-0.9.5/docs/logo.rst 2018-12-10 17:34:13.000000000 +0100
@@ -0,0 +1,8 @@
+:orphan:
+
+.. image:: _static/localzone.svg
+ :align: center
+ :width: 100px
+ :height: 100px
+ :alt: Project link: localzone (calzone image by sobinsergey from the Noun
Project)
+ :target: https://localzone.iomaestro.com
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/localzone-0.9.4/localzone/context.py
new/localzone-0.9.5/localzone/context.py
--- old/localzone-0.9.4/localzone/context.py 2018-11-09 18:52:39.000000000
+0100
+++ new/localzone-0.9.5/localzone/context.py 2018-12-10 17:34:13.000000000
+0100
@@ -9,6 +9,7 @@
"""
from contextlib import contextmanager
+import dns.name
import dns.rdataclass
import dns.tokenizer
import dns.zone
@@ -30,11 +31,17 @@
:return: :class:`Zone <Zone>` object
:rtype: localzone.models.Zone
"""
- # TODO: verify origin has full stop
+ if origin:
+ # perform basic validation/sanitization on origin
+ origin = dns.name.from_text(origin).to_text()
+
zone = load(filename, origin)
- yield zone
- if autosave:
- zone.save()
+
+ try:
+ yield zone
+ finally:
+ if autosave:
+ zone.save()
def load(filename, origin=None):
@@ -60,8 +67,15 @@
check_origin=True,
)
reader.read()
+
# TODO: remember that any method using the zone.filename property
should
# have it passed as a parameter
reader.zone._filename = filename
- reader.zone._ttl = reader.ttl
+
+ # starting with dnspython v1.16.0, use default_ttl
+ try:
+ reader.zone._ttl = reader.default_ttl
+ except AttributeError:
+ reader.zone._ttl = reader.ttl
+
return reader.zone
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/localzone-0.9.4/tox.ini new/localzone-0.9.5/tox.ini
--- old/localzone-0.9.4/tox.ini 1970-01-01 01:00:00.000000000 +0100
+++ new/localzone-0.9.5/tox.ini 2018-12-10 17:34:13.000000000 +0100
@@ -0,0 +1,13 @@
+# tox (https://tox.readthedocs.io/) is a tool for running tests
+# in multiple virtualenvs. This configuration file will run the
+# test suite on all supported python versions. To use it, "pip install tox"
+# and then run "tox" from this directory.
+
+[tox]
+envlist = py27, py36
+
+[testenv]
+deps =
+ pytest
+commands =
+ pytest