From 193d004d65450e6799148cb43f1a842173b85ce2 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Tue, 23 May 2023 10:20:32 -0700 Subject: [PATCH 1/3] update requirements*.txt --- requirements-dev.txt | 62 +++++++++++++++++++++----------------------- requirements.txt | 2 +- 2 files changed, 30 insertions(+), 34 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 068d690..3465a00 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,50 +1,46 @@ # DO NOT EDIT THIS FILE DIRECTLY - use ./script/update-requirements to update -Pygments==2.13.0 -attrs==22.1.0 -black==22.10.0 -bleach==5.0.1 -build==0.9.0 -certifi==2022.12.7 +Pygments==2.15.1 +black==23.3.0 +bleach==6.0.0 +build==0.10.0 +certifi==2023.5.7 cffi==1.15.1 -charset-normalizer==2.1.1 +charset-normalizer==3.1.0 click==8.1.3 cmarkgfm==2022.10.27 -commonmark==0.9.1 -coverage==6.5.0 -docutils==0.19 -exceptiongroup==1.0.0 -importlib-metadata==5.0.0 -iniconfig==1.1.1 -isort==5.11.4 +coverage==7.2.5 +docutils==0.20.1 +importlib-metadata==6.6.0 +iniconfig==2.0.0 +isort==5.12.0 jaraco.classes==3.2.3 -keyring==23.9.3 -more-itertools==9.0.0 -mypy-extensions==0.4.3 -packaging==21.3 -pathspec==0.10.1 -pep517==0.13.0 -pkginfo==1.8.3 -platformdirs==2.5.2 +keyring==23.13.1 +markdown-it-py==2.2.0 +mdurl==0.1.2 +more-itertools==9.1.0 +mypy-extensions==1.0.0 +packaging==23.1 +pathspec==0.11.1 +pkginfo==1.9.6 +platformdirs==3.5.1 pluggy==1.0.0 pprintpp==0.4.0 pycountry-convert==0.7.2 pycountry==22.3.5 pycparser==2.21 -pyflakes==2.5.0 -pyparsing==3.0.9 +pyflakes==3.0.1 +pyproject_hooks==1.0.0 pytest-cov==4.0.0 pytest-mock==3.10.0 pytest-network==0.0.1 -pytest==7.2.0 +pytest==7.3.1 readme-renderer==37.3 repoze.lru==0.7 -requests-toolbelt==0.10.1 -requests==2.28.1 +requests-toolbelt==1.0.0 +requests==2.31.0 rfc3986==2.0.0 -rich==12.6.0 -tomli==2.0.1 -twine==4.0.1 -typing_extensions==4.4.0 -urllib3==1.26.12 +rich==13.3.5 +twine==4.0.2 +urllib3==2.0.2 webencodings==0.5.1 -zipp==3.10.0 +zipp==3.15.0 diff --git a/requirements.txt b/requirements.txt index 22f9237..ecc8879 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,6 @@ PyYAML==6.0 dnspython==2.3.0 fqdn==1.5.1 idna==3.4 -natsort==8.2.0 +natsort==8.3.1 python-dateutil==2.8.2 six==1.16.0 From 98f51db028127d927f465548c16bf4dfc4cf148c Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Tue, 23 May 2023 10:27:23 -0700 Subject: [PATCH 2/3] updated black formatting --- octodns/manager.py | 1 - octodns/provider/plan.py | 1 - octodns/source/base.py | 1 - tests/test_octodns_processor_arpa.py | 1 - tests/test_octodns_record_ip.py | 1 - tests/test_octodns_record_mx.py | 1 - tests/test_octodns_record_ptr.py | 1 - tests/test_octodns_record_srv.py | 1 - tests/test_octodns_record_sshfp.py | 1 - tests/test_octodns_record_target.py | 1 - tests/test_octodns_record_tlsa.py | 1 - tests/test_octodns_source_tinydns.py | 1 - tests/test_octodns_zone.py | 1 - 13 files changed, 13 deletions(-) diff --git a/octodns/manager.py b/octodns/manager.py index df64b2e..b8fb0ff 100644 --- a/octodns/manager.py +++ b/octodns/manager.py @@ -475,7 +475,6 @@ class Manager(object): force=False, plan_output_fh=stdout, ): - self.log.info( 'sync: eligible_zones=%s, eligible_targets=%s, dry_run=%s, ' 'force=%s, plan_output_fh=%s', diff --git a/octodns/provider/plan.py b/octodns/provider/plan.py index bdd47a4..e27b1e3 100644 --- a/octodns/provider/plan.py +++ b/octodns/provider/plan.py @@ -78,7 +78,6 @@ class Plan(object): self.existing and len(self.existing.records) >= self.MIN_EXISTING_RECORDS ): - existing_record_count = len(self.existing.records) if existing_record_count > 0: update_pcent = ( diff --git a/octodns/source/base.py b/octodns/source/base.py index 1c3ff15..0f0b2dd 100644 --- a/octodns/source/base.py +++ b/octodns/source/base.py @@ -4,7 +4,6 @@ class BaseSource(object): - SUPPORTS_MULTIVALUE_PTR = False SUPPORTS_POOL_VALUE_STATUS = False SUPPORTS_ROOT_NS = False diff --git a/tests/test_octodns_processor_arpa.py b/tests/test_octodns_processor_arpa.py index b3baa43..b2038b1 100644 --- a/tests/test_octodns_processor_arpa.py +++ b/tests/test_octodns_processor_arpa.py @@ -11,7 +11,6 @@ from octodns.zone import Zone class TestAutoArpa(TestCase): def test_empty_zone(self): - # empty zone no records zone = Zone('unit.tests.', []) aa = AutoArpa('auto-arpa') diff --git a/tests/test_octodns_record_ip.py b/tests/test_octodns_record_ip.py index 29d576f..f9ba62d 100644 --- a/tests/test_octodns_record_ip.py +++ b/tests/test_octodns_record_ip.py @@ -10,7 +10,6 @@ from octodns.zone import Zone class TestRecordIp(TestCase): def test_ipv4_value_rdata_text(self): - # anything goes, we're a noop for s in ( None, diff --git a/tests/test_octodns_record_mx.py b/tests/test_octodns_record_mx.py index d3da73d..1ae37e6 100644 --- a/tests/test_octodns_record_mx.py +++ b/tests/test_octodns_record_mx.py @@ -68,7 +68,6 @@ class TestRecordMx(TestCase): a.__repr__() def test_mx_value_rdata_text(self): - # empty string won't parse with self.assertRaises(RrParseError): MxValue.parse_rdata_text('') diff --git a/tests/test_octodns_record_ptr.py b/tests/test_octodns_record_ptr.py index 14f744c..7a380e6 100644 --- a/tests/test_octodns_record_ptr.py +++ b/tests/test_octodns_record_ptr.py @@ -63,7 +63,6 @@ class TestRecordPtr(TestCase): ) def test_ptr_rdata_text(self): - # anything goes, we're a noop for s in ( None, diff --git a/tests/test_octodns_record_srv.py b/tests/test_octodns_record_srv.py index f86d406..3cc39b5 100644 --- a/tests/test_octodns_record_srv.py +++ b/tests/test_octodns_record_srv.py @@ -81,7 +81,6 @@ class TestRecordSrv(TestCase): a.__repr__() def test_srv_value_rdata_text(self): - # empty string won't parse with self.assertRaises(RrParseError): SrvValue.parse_rdata_text('') diff --git a/tests/test_octodns_record_sshfp.py b/tests/test_octodns_record_sshfp.py index f026514..251efca 100644 --- a/tests/test_octodns_record_sshfp.py +++ b/tests/test_octodns_record_sshfp.py @@ -85,7 +85,6 @@ class TestRecordSshfp(TestCase): a.__repr__() def test_sshfp_value_rdata_text(self): - # empty string won't parse with self.assertRaises(RrParseError): SshfpValue.parse_rdata_text('') diff --git a/tests/test_octodns_record_target.py b/tests/test_octodns_record_target.py index 728c349..715cd4a 100644 --- a/tests/test_octodns_record_target.py +++ b/tests/test_octodns_record_target.py @@ -11,7 +11,6 @@ from octodns.zone import Zone class TestRecordTarget(TestCase): def test_target_rdata_text(self): - # anything goes, we're a noop for s in ( None, diff --git a/tests/test_octodns_record_tlsa.py b/tests/test_octodns_record_tlsa.py index 6554bbc..9739017 100644 --- a/tests/test_octodns_record_tlsa.py +++ b/tests/test_octodns_record_tlsa.py @@ -118,7 +118,6 @@ class TestRecordTlsa(TestCase): a.__repr__() def test_tsla_value_rdata_text(self): - # empty string won't parse with self.assertRaises(RrParseError): TlsaValue.parse_rdata_text('') diff --git a/tests/test_octodns_source_tinydns.py b/tests/test_octodns_source_tinydns.py index 717d46b..40ce9f5 100644 --- a/tests/test_octodns_source_tinydns.py +++ b/tests/test_octodns_source_tinydns.py @@ -150,7 +150,6 @@ class TestTinyDnsFileSource(TestCase): self.assertEqual([], changes) def test_populate_in_addr_arpa(self): - got = Zone('3.2.10.in-addr.arpa.', []) self.source.populate(got) diff --git a/tests/test_octodns_zone.py b/tests/test_octodns_zone.py index 07e94ea..0ee01b0 100644 --- a/tests/test_octodns_zone.py +++ b/tests/test_octodns_zone.py @@ -192,7 +192,6 @@ class TestZone(TestCase): self.assertTrue('whitespace not allowed' in str(ctx.exception)) def test_sub_zones(self): - # NS for exactly the sub is allowed zone = Zone('unit.tests.', set(['sub', 'barred'])) record = Record.new( From 4ac0f06673c3b6ac965724d2633b6b52fbff14eb Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Tue, 23 May 2023 10:33:18 -0700 Subject: [PATCH 3/3] stick with isort 5.11.4, newer doesn't support 3.7 --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 3465a00..0fb17f8 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -12,7 +12,7 @@ coverage==7.2.5 docutils==0.20.1 importlib-metadata==6.6.0 iniconfig==2.0.0 -isort==5.12.0 +isort==5.11.4 jaraco.classes==3.2.3 keyring==23.13.1 markdown-it-py==2.2.0