]>
git.ipfire.org Git - thirdparty/dnspython.git/log
Brian Wellington [Mon, 11 May 2020 16:04:08 +0000 (09:04 -0700)]
Fix documentation cut and paste error.
Brian Wellington [Mon, 11 May 2020 16:03:46 +0000 (09:03 -0700)]
Fix documentation typos.
Bob Halley [Mon, 11 May 2020 12:56:24 +0000 (05:56 -0700)]
remove Python 2 reference
Bob Halley [Mon, 11 May 2020 12:51:00 +0000 (05:51 -0700)]
fix some leftover doco issues
Bob Halley [Sun, 10 May 2020 16:36:45 +0000 (09:36 -0700)]
add info about compression assumptions in dns.name.Name.to_wire()
Bob Halley [Sun, 10 May 2020 16:33:03 +0000 (09:33 -0700)]
Reharmonize doc style as I think it looks better
Bob Halley [Sun, 10 May 2020 15:57:22 +0000 (08:57 -0700)]
doco badge
Bob Halley [Sun, 10 May 2020 15:50:01 +0000 (08:50 -0700)]
fix doco nits
Bob Halley [Sun, 10 May 2020 15:24:15 +0000 (08:24 -0700)]
add .readthedocs.yml
Bob Halley [Sun, 10 May 2020 02:39:07 +0000 (19:39 -0700)]
lint
Bob Halley [Sun, 10 May 2020 02:38:08 +0000 (19:38 -0700)]
checkpoint rdata subclass doc, finally done
Bob Halley [Sat, 9 May 2020 22:15:07 +0000 (15:15 -0700)]
checkpoint more rdata subclasses doco
Bob Halley [Sat, 9 May 2020 21:33:53 +0000 (14:33 -0700)]
checkpoint rdata subclasses doco
Bob Halley [Sat, 9 May 2020 20:50:16 +0000 (13:50 -0700)]
binary -> bytes, text -> str
Bob Halley [Sat, 9 May 2020 20:30:45 +0000 (13:30 -0700)]
more documentation
Bob Halley [Fri, 8 May 2020 14:21:01 +0000 (07:21 -0700)]
add license.rst
Bob Halley [Fri, 8 May 2020 14:20:50 +0000 (07:20 -0700)]
add license
Bob Halley [Fri, 8 May 2020 14:12:13 +0000 (07:12 -0700)]
remove year
Bob Halley [Fri, 8 May 2020 14:10:55 +0000 (07:10 -0700)]
update doco author and copyright info
Bob Halley [Fri, 8 May 2020 14:07:37 +0000 (07:07 -0700)]
add idna_codec doco to from_text_list()
Bob Halley [Fri, 8 May 2020 14:02:48 +0000 (07:02 -0700)]
in doco, text->str, binary->bytes
Bob Halley [Fri, 8 May 2020 13:48:37 +0000 (06:48 -0700)]
remove python 2vs3 section
Bob Halley [Fri, 8 May 2020 13:44:19 +0000 (06:44 -0700)]
add dns.query.https
Bob Halley [Fri, 8 May 2020 13:43:50 +0000 (06:43 -0700)]
remove send_https() as the send/receive split is too hard for HTTPS and it is not adding anything over https()
Bob Halley [Thu, 7 May 2020 19:40:34 +0000 (12:40 -0700)]
add sphinx to pyproject.toml
Bob Halley [Thu, 7 May 2020 19:22:17 +0000 (12:22 -0700)]
Merge pull request #468 from kimbo/kl/extras-install
extras install
kimbo [Thu, 7 May 2020 15:22:44 +0000 (09:22 -0600)]
standard way to install extras
see https://www.python.org/dev/peps/pep-0508/#extras
also added command to pip install straight from master branch on github
kimbo [Thu, 7 May 2020 15:21:07 +0000 (09:21 -0600)]
match setup.py's extra_requires functionality
Bob Halley [Thu, 7 May 2020 14:42:13 +0000 (07:42 -0700)]
python>=3.6
Bob Halley [Thu, 7 May 2020 14:40:49 +0000 (07:40 -0700)]
Merge pull request #467 from kimbo/kl/installation-fix
make dnspython installable with pip
kimbo [Thu, 7 May 2020 14:27:00 +0000 (08:27 -0600)]
make dnspython installable with pip
I tried installing dnspython from the master branch and it did not work.
The error I got was
"poetry.masonry.utils.module.ModuleOrPackageNotFound: No file/folder
found for package dnspython".
Turns out there have been some changes made to pip involving the build
system (see https://www.python.org/dev/peps/pep-0517).
Basically pip is using poetry to install your package.
Poetry has some requirements about how you structure your project (see
https://python-poetry.org/docs/basic-usage/#project-setup and
https://python-poetry.org/docs/pyproject/#packages).
This change allows you to install dnspython without running into that
particular issue.
Bob Halley [Thu, 7 May 2020 14:10:16 +0000 (07:10 -0700)]
3.6 or later required; mention DoH in installation doc
Bob Halley [Thu, 7 May 2020 13:37:43 +0000 (06:37 -0700)]
document installing optional packages
Bob Halley [Thu, 7 May 2020 13:01:30 +0000 (06:01 -0700)]
Document dns.message.from_text() blank line behavior [Issue #354].
Bob Halley [Thu, 7 May 2020 12:52:17 +0000 (05:52 -0700)]
Python 3.6 or later is required.
Bob Halley [Mon, 4 May 2020 19:21:27 +0000 (12:21 -0700)]
start flake8 support
Brian Wellington [Mon, 4 May 2020 17:55:39 +0000 (10:55 -0700)]
Improve TXT records in example zone.
This zone was copied from a zone file in BIND long ago. BIND contains
both sample zone files and a script to generate sample zone files, but
the committed files appear to have been generated by a broken version of
the script.
This updates the TXT records to what the script would have generated,
which is far more complete.
Bob Halley [Mon, 4 May 2020 15:20:22 +0000 (08:20 -0700)]
Fix [Issue #416], EAI_SYSTEM not defined on Windows.
Bob Halley [Mon, 4 May 2020 15:00:33 +0000 (08:00 -0700)]
Grealy simplify our getaddrinfo() implementation by calling the
system's version when we have an address literal for the host. This
also avoids infinite loops as dns.query.* needs to call getaddrinfo()
to handle scoping correctly.
Bob Halley [Mon, 4 May 2020 15:00:25 +0000 (08:00 -0700)]
Do not lose scope info. [Issue #283]
Bob Halley [Mon, 4 May 2020 14:22:29 +0000 (07:22 -0700)]
Ignore scopes in dns.inet.*
Bob Halley [Mon, 4 May 2020 14:17:11 +0000 (07:17 -0700)]
In cases where we care that something is just an IPv4 or IPv6 address,
without any extras like IPv6 scope, explicitly use dns.ipv4 and dns.ipv6
instead of dns.inet. This will let us be tolerant of scopes in other
cases (e.g. ordinary network connections).
Bob Halley [Mon, 4 May 2020 13:51:15 +0000 (06:51 -0700)]
Add an ignore_scope option to dns.ipv6.inet_aton().
Bob Halley [Sun, 3 May 2020 21:49:55 +0000 (14:49 -0700)]
IDNA support for zones, messages, names in rdata, rrsets, and rdatasets.
Bob Halley [Sun, 3 May 2020 14:26:35 +0000 (07:26 -0700)]
add IDNA codec parameter to dns.rdata.from_text() type signature.
Bob Halley [Sun, 3 May 2020 14:23:54 +0000 (07:23 -0700)]
Add IDNA codec support to tokenizer and dns.rdata.from_text()
Bob Halley [Sun, 3 May 2020 14:02:49 +0000 (07:02 -0700)]
remove backwards compatibility for something deleted 10 years ago
Bob Halley [Sun, 3 May 2020 13:59:34 +0000 (06:59 -0700)]
more things to make mypy happier
Bob Halley [Sun, 3 May 2020 13:59:02 +0000 (06:59 -0700)]
finish comment
Bob Halley [Sun, 3 May 2020 13:42:22 +0000 (06:42 -0700)]
fix indentation error after tokenizer refactoring
Bob Halley [Sun, 3 May 2020 13:34:53 +0000 (06:34 -0700)]
Do not double-UTF-8 encode escapes in TXT-like records. [Issue #321]
Bob Halley [Sat, 2 May 2020 20:37:39 +0000 (13:37 -0700)]
pytest make targets
Bob Halley [Sat, 2 May 2020 14:11:08 +0000 (07:11 -0700)]
de-lint: remove unused import
Bob Halley [Sat, 2 May 2020 14:08:16 +0000 (07:08 -0700)]
Merge pull request #461 from bwelling/contextlib
Use context managers to simplify code.
Bob Halley [Sat, 2 May 2020 14:03:45 +0000 (07:03 -0700)]
Update license descriptor to the ISC license.
Brian Wellington [Sat, 2 May 2020 00:20:21 +0000 (17:20 -0700)]
Use context managers to simplify code.
Simplify code using try/finally to use context managers.
In some cases, contextlib.ExitStack() is used; this could probably be
further simplified to use contextlib.nullcontext() once Python 3.7+ is a
requirement.
Bob Halley [Fri, 1 May 2020 22:58:50 +0000 (15:58 -0700)]
HIP was not doing relativize_to
Bob Halley [Fri, 1 May 2020 22:58:14 +0000 (15:58 -0700)]
Add as_name(), allowing an already read token to be interpreted a name.
Bob Halley [Fri, 1 May 2020 20:06:19 +0000 (13:06 -0700)]
add missing type declarations
Bob Halley [Fri, 1 May 2020 20:02:48 +0000 (13:02 -0700)]
make all shebangs python3
Bob Halley [Fri, 1 May 2020 19:58:38 +0000 (12:58 -0700)]
remove spurious old-division pylint warning; remove unneeded float casts
Bob Halley [Fri, 1 May 2020 19:57:55 +0000 (12:57 -0700)]
fix lingering unguarded requests imports
Bob Halley [Fri, 1 May 2020 19:38:21 +0000 (12:38 -0700)]
In library code, replace from io import BytesIO (or StringIO) with import io
Bob Halley [Fri, 1 May 2020 19:13:35 +0000 (12:13 -0700)]
remove obsolete entropy pool hash import logic
Bob Halley [Fri, 1 May 2020 19:04:28 +0000 (12:04 -0700)]
Merge pull request #460 from bwelling/remove-future
Remove "from __future__ import" statements.
Bob Halley [Fri, 1 May 2020 19:03:34 +0000 (12:03 -0700)]
Merge pull request #459 from dlenski/make_DOH_extra
Make DOH, and the requests dependency, optional
Brian Wellington [Fri, 1 May 2020 18:31:23 +0000 (11:31 -0700)]
Remove "from __future__ import" statements.
None of these are needed anymore.
Bob Halley [Fri, 1 May 2020 15:46:05 +0000 (08:46 -0700)]
try to prevent extra run of 3.7 test possibly caused by comment
Bob Halley [Fri, 1 May 2020 15:32:57 +0000 (08:32 -0700)]
start poetry and pyenv support
Bob Halley [Fri, 1 May 2020 15:30:34 +0000 (08:30 -0700)]
do not import BytesIO into rdata namespace
Bob Halley [Fri, 1 May 2020 15:29:46 +0000 (08:29 -0700)]
ignore duplicate name warning as it is not a bug
Daniel Lenski [Fri, 1 May 2020 00:31:48 +0000 (17:31 -0700)]
also use skipUnless for tests that require IDNA2008
Daniel Lenski [Fri, 1 May 2020 00:31:28 +0000 (17:31 -0700)]
make DOH an extra feature (to avoid requests as hard dependency)
Bob Halley [Wed, 29 Apr 2020 21:00:18 +0000 (14:00 -0700)]
Merge pull request #455 from bwelling/reverse
Add alternate origin support to dns.reversename.
Brian Wellington [Wed, 29 Apr 2020 20:47:10 +0000 (13:47 -0700)]
Add alternate origin support to dns.reversename.
Brian Wellington [Tue, 21 Apr 2020 21:52:29 +0000 (14:52 -0700)]
Remove redundant check.
_validate_rrsig will never be called if cryptography wasn't loaded, so
there's no need to check again.
Brian Wellington [Tue, 21 Apr 2020 21:51:10 +0000 (14:51 -0700)]
Fix documentation.
Rdata.to_wire() writes to the file, and doesn't return anything.
Bob Halley [Tue, 21 Apr 2020 20:30:53 +0000 (13:30 -0700)]
Merge pull request #453 from bwelling/to-generic
Add dns.rdata.Rdata.to_generic()
Brian Wellington [Tue, 21 Apr 2020 20:04:43 +0000 (13:04 -0700)]
Add dns.rdata.Rdata.to_generic()
Bob Halley [Wed, 8 Apr 2020 16:41:06 +0000 (09:41 -0700)]
cryptography delint
Bob Halley [Wed, 8 Apr 2020 16:35:54 +0000 (09:35 -0700)]
Merge pull request #449 from simo5/cryptography
Use python cryptography for DNSSEC
Simo Sorce [Tue, 7 Apr 2020 22:10:06 +0000 (18:10 -0400)]
Use python cryptography for DNSSEC
Signed-off-by: Simo Sorce <simo@redhat.com>
Bob Halley [Sat, 4 Apr 2020 01:17:34 +0000 (18:17 -0700)]
Merge pull request #445 from kimbo/kl/resolv-conf-options
additional resolv.conf options
Brian Wellington [Fri, 3 Apr 2020 18:49:05 +0000 (11:49 -0700)]
Mention immutable rdata.
Brian Wellington [Fri, 3 Apr 2020 18:07:07 +0000 (11:07 -0700)]
Use decorator syntax for properties.
Bob Halley [Fri, 3 Apr 2020 17:29:43 +0000 (10:29 -0700)]
fix type specification errors
Bob Halley [Fri, 3 Apr 2020 16:27:47 +0000 (09:27 -0700)]
Merge pull request #444 from bwelling/optimize-set
Optimize set
Bob Halley [Fri, 3 Apr 2020 16:27:15 +0000 (09:27 -0700)]
Merge pull request #443 from bwelling/rdata-replace
Add dns.rdata.Rdata.replace()
kimbo [Fri, 3 Apr 2020 03:54:42 +0000 (21:54 -0600)]
tests for reading resolvconf options
kimbo [Fri, 3 Apr 2020 03:53:34 +0000 (21:53 -0600)]
support for ndots, edns0, timeout resolv.conf opts
Brian Wellington [Thu, 2 Apr 2020 21:14:54 +0000 (14:14 -0700)]
Optimize dns.set.Set.
This changes the internal implementation from a list to an ordered
dictionary (dict or collections.OrderedDict, depending on Python
version). This is possible now that Rdata are immutable.
Brian Wellington [Thu, 2 Apr 2020 21:14:31 +0000 (14:14 -0700)]
Use public dns.set.Set interface.
Brian Wellington [Thu, 2 Apr 2020 19:54:29 +0000 (12:54 -0700)]
Update Set tests.
Add tests to cover untested functionality, and update existing tests to
actually use the fact that these sets are ordered.
Brian Wellington [Thu, 2 Apr 2020 18:04:08 +0000 (11:04 -0700)]
Add dns.rdata.Rdata.replace()
Now that Rdata instances are immutable, there needs to be a way to make
a new Rdata based on an existing one. replace() creates a clone of the
current Rdata, overriding fields with the specified parameters.
Bob Halley [Thu, 2 Apr 2020 17:40:32 +0000 (10:40 -0700)]
Merge pull request #442 from bwelling/rdata-loading
Optimize get_rdata_class().
Brian Wellington [Thu, 2 Apr 2020 17:32:57 +0000 (10:32 -0700)]
Further improve get_rdata_class().
When we find a class-independent type, cache it for both class ANY and
the requested type, to avoid an extra dict lookup the next time. If we
don't find anything, cache GenericRdata, to avoid extra module loads the
next time.
Brian Wellington [Thu, 2 Apr 2020 16:30:34 +0000 (09:30 -0700)]
Optimize get_rdata_class().
This replaces the module cache with a class cache, so that the getattr()
call to retrieve the class happens only when a new type module is
loaded, not in the common case. This also allows avoiding the calls to
dns.rdataclass.to_text() and dns.rdatatype.to_text() in the common case.
Bob Halley [Thu, 2 Apr 2020 16:17:20 +0000 (09:17 -0700)]
Merge pull request #441 from bwelling/importlib
Use importlib.import_module.
Bob Halley [Thu, 2 Apr 2020 16:08:34 +0000 (09:08 -0700)]
python 3.5 compatibility
Brian Wellington [Thu, 2 Apr 2020 16:06:21 +0000 (09:06 -0700)]
Use importlib.import_module.
Replace the open-coded import_module() with the one in importlib.