Browse Source

Merge branch 'main' into yaml-include-array-support

pull/1315/head
Ross McFarland 1 month ago
committed by GitHub
parent
commit
0d45771040
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
36 changed files with 55 additions and 154 deletions
  1. +0
    -4
      .changelog/04299448c91147b49c25f6d09055f980.md
  2. +0
    -4
      .changelog/0a8ba4255d9a4ba29ac6f55fb83cd624.md
  3. +0
    -4
      .changelog/1088e071ae0d4bff859ade49561aad91.md
  4. +0
    -4
      .changelog/222b759159b24c63a4d576cfefb20efa.md
  5. +0
    -5
      .changelog/2809d288040441ccb8e6633f514b09b0.md
  6. +0
    -4
      .changelog/2fb53cdf5bfc424fa6e84d3058605c37.md
  7. +0
    -4
      .changelog/3d960d8405e646d6a57602286d295bbf.md
  8. +0
    -4
      .changelog/3deb7273fd0b4516a6c66636e3c1ed34.md
  9. +0
    -4
      .changelog/3f8fbaa8c6324b649fa64ccbec8f8f5c.md
  10. +0
    -4
      .changelog/503eda9ec20e470cafb7904500dd22cb.md
  11. +0
    -4
      .changelog/5557cbfa56bb40bfbb97511af4659996.md
  12. +0
    -4
      .changelog/559ae3e1ace54db88f122ed7299e11c0.md
  13. +0
    -4
      .changelog/5989661ef50b4f31a1ca8019a702a4bb.md
  14. +0
    -4
      .changelog/5aab3287678b455f9644aa070a1e5457.md
  15. +0
    -4
      .changelog/5f9e8b0b6b7f4093b109a56d12239302.md
  16. +0
    -4
      .changelog/6fa199b732dc40c58481d369ce992eb3.md
  17. +0
    -4
      .changelog/99fb6721f2d340ed933d7407c91622ca.md
  18. +4
    -0
      .changelog/b146c7e36d3142c7ad5cac2518c43178.md
  19. +0
    -4
      .changelog/b15794db1fe142b18e5a7da21abc76cc.md
  20. +0
    -4
      .changelog/b1e000a850584f8fa14a300538a85f4f.md
  21. +0
    -4
      .changelog/bb94cc6d9dde44b38d875cf17be4bbce.md
  22. +0
    -4
      .changelog/bc86f3ff5947408287b796d73e1b1ea6.md
  23. +0
    -4
      .changelog/bec5cc4923da4128b90cd6bc6d66af76.md
  24. +0
    -4
      .changelog/cbeaa629126c4d7bbb6f8b59e76b8835.md
  25. +0
    -4
      .changelog/e3c80e83e7c4487bb8cd20f31c004619.md
  26. +0
    -4
      .changelog/f8d90eb95d1d449da1da865376cd1343.md
  27. +0
    -4
      .changelog/fc2ce1a8cc5f4f1981b5b1911a28c2f8.md
  28. +4
    -4
      .git_hooks_pre-commit
  29. +11
    -0
      CHANGELOG.md
  30. +1
    -1
      octodns/__init__.py
  31. +1
    -1
      script/bootstrap
  32. +6
    -11
      script/cibuild
  33. +5
    -1
      script/cibuild-setup-py
  34. +18
    -13
      script/coverage
  35. +4
    -18
      script/release
  36. +1
    -0
      setup.py

+ 0
- 4
.changelog/04299448c91147b49c25f6d09055f980.md View File

@ -1,4 +0,0 @@
---
type: none
---
Fix changelog pr urls

+ 0
- 4
.changelog/0a8ba4255d9a4ba29ac6f55fb83cd624.md View File

@ -1,4 +0,0 @@
---
type: none
---
Fix all sphinx docstring errors and warnings, not links

+ 0
- 4
.changelog/1088e071ae0d4bff859ade49561aad91.md View File

@ -1,4 +0,0 @@
---
type: none
---
WIP: major restructuring of docs, README/doc split

+ 0
- 4
.changelog/222b759159b24c63a4d576cfefb20efa.md View File

@ -1,4 +0,0 @@
---
type: none
---
Remove stray parens from doc links

+ 0
- 5
.changelog/2809d288040441ccb8e6633f514b09b0.md View File

@ -1,5 +0,0 @@
---
type: minor
---
Add processor for clamping TTLs

+ 0
- 4
.changelog/2fb53cdf5bfc424fa6e84d3058605c37.md View File

@ -1,4 +0,0 @@
---
type: none
---
Minor README fixes

+ 0
- 4
.changelog/3d960d8405e646d6a57602286d295bbf.md View File

@ -1,4 +0,0 @@
---
type: minor
---
Improve AutoArpa wildcard handling with wildcard_replacement option

+ 0
- 4
.changelog/3deb7273fd0b4516a6c66636e3c1ed34.md View File

@ -1,4 +0,0 @@
---
type: none
---
Remove really old secret clearing code that doesn't apply anymore

+ 0
- 4
.changelog/3f8fbaa8c6324b649fa64ccbec8f8f5c.md View File

@ -1,4 +0,0 @@
---
type: none
---
Add comprehensive API documentation to Zone class and related exceptions

+ 0
- 4
.changelog/503eda9ec20e470cafb7904500dd22cb.md View File

@ -1,4 +0,0 @@
---
type: minor
---
Add glob and regex support to dynamic zone config

+ 0
- 4
.changelog/5557cbfa56bb40bfbb97511af4659996.md View File

@ -1,4 +0,0 @@
---
type: none
---
Add a custom source example to the doc

+ 0
- 4
.changelog/559ae3e1ace54db88f122ed7299e11c0.md View File

@ -1,4 +0,0 @@
---
type: none
---
Doc heading fixes

+ 0
- 4
.changelog/5989661ef50b4f31a1ca8019a702a4bb.md View File

@ -1,4 +0,0 @@
---
type: none
---
Update requirements*.txt

+ 0
- 4
.changelog/5aab3287678b455f9644aa070a1e5457.md View File

@ -1,4 +0,0 @@
---
type: none
---
Full doc coverage of the api and related cleanup

+ 0
- 4
.changelog/5f9e8b0b6b7f4093b109a56d12239302.md View File

@ -1,4 +0,0 @@
---
type: minor
---
Add OwnershipProcessor.should_replace to support ownership on alias zones

+ 0
- 4
.changelog/6fa199b732dc40c58481d369ce992eb3.md View File

@ -1,4 +0,0 @@
---
type: none
---
Spelling/type-o corrections in docs

+ 0
- 4
.changelog/99fb6721f2d340ed933d7407c91622ca.md View File

@ -1,4 +0,0 @@
---
type: none
---
Pass at adding AI-assisted API documentation

+ 4
- 0
.changelog/b146c7e36d3142c7ad5cac2518c43178.md View File

@ -0,0 +1,4 @@
---
type: none
---
Pull in the latest template changes

+ 0
- 4
.changelog/b15794db1fe142b18e5a7da21abc76cc.md View File

@ -1,4 +0,0 @@
---
type: minor
---
Allow CNAME to coexist if all records have lenient=True

+ 0
- 4
.changelog/b1e000a850584f8fa14a300538a85f4f.md View File

@ -1,4 +0,0 @@
---
type: none
---
Add a pass at documenting the life-cycle of zones during a sync

+ 0
- 4
.changelog/bb94cc6d9dde44b38d875cf17be4bbce.md View File

@ -1,4 +0,0 @@
---
type: minor
---
Full rewrite of octodns-report: support for IPv6 resolvers, async names resolution and JSON output

+ 0
- 4
.changelog/bc86f3ff5947408287b796d73e1b1ea6.md View File

@ -1,4 +0,0 @@
---
type: none
---
Fix doc linking warns

+ 0
- 4
.changelog/bec5cc4923da4128b90cd6bc6d66af76.md View File

@ -1,4 +0,0 @@
---
type: none
---
Fix logging issues in Manager: convert generator to list and correct log method prefix

+ 0
- 4
.changelog/cbeaa629126c4d7bbb6f8b59e76b8835.md View File

@ -1,4 +0,0 @@
---
type: none
---
Fix venv activation not working when using a custom VENV_NAME

+ 0
- 4
.changelog/e3c80e83e7c4487bb8cd20f31c004619.md View File

@ -1,4 +0,0 @@
---
type: none
---
Add changelog slash command

+ 0
- 4
.changelog/f8d90eb95d1d449da1da865376cd1343.md View File

@ -1,4 +0,0 @@
---
type: none
---
Fixes to get readthedocs happy

+ 0
- 4
.changelog/fc2ce1a8cc5f4f1981b5b1911a28c2f8.md View File

@ -1,4 +0,0 @@
---
type: minor
---
Add processor support to octodns-dump

+ 4
- 4
.git_hooks_pre-commit View File

@ -5,10 +5,10 @@ SCRIPT_PATH="$( dirname -- "$( readlink -f -- "${0}"; )"; )/script"
# Activate OctoDNS Python venv
source "${SCRIPT_PATH}/common.sh"
./script/changelog check
./script/lint
./script/format --check --quiet || (
"${SCRIPT_PATH}/changelog" check
"${SCRIPT_PATH}/lint"
"${SCRIPT_PATH}/format" --check --quiet || (
echo "Formatting check failed, run ./script/format" &&
exit 1
)
./script/coverage
"${SCRIPT_PATH}/coverage"

+ 11
- 0
CHANGELOG.md View File

@ -1,3 +1,14 @@
## 1.14.0 - 2025-10-24
Minor:
* Full rewrite of octodns-report: support for IPv6 resolvers, async names resolution and JSON output - [#1321](https://github.com/octodns/octodns/pull/1321)
* Add processor for clamping TTLs - [#1318](https://github.com/octodns/octodns/pull/1318)
* Add processor support to octodns-dump - [#1309](https://github.com/octodns/octodns/pull/1309)
* Add glob and regex support to dynamic zone config - [#1304](https://github.com/octodns/octodns/pull/1304)
* Improve AutoArpa wildcard handling with wildcard_replacement option - [#1302](https://github.com/octodns/octodns/pull/1302)
* Allow CNAME to coexist if all records have lenient=True - [#1300](https://github.com/octodns/octodns/pull/1300)
* Add OwnershipProcessor.should_replace to support ownership on alias zones - [#1298](https://github.com/octodns/octodns/pull/1298)
## 1.13.0 - 2025-08-06 - And then there was changelet
Minor:


+ 1
- 1
octodns/__init__.py View File

@ -1,4 +1,4 @@
'OctoDNS: DNS as code - Tools for managing DNS across multiple providers'
# TODO: remove __VERSION__ w/2.x
__version__ = __VERSION__ = '1.13.0'
__version__ = __VERSION__ = '1.14.0'

+ 1
- 1
script/bootstrap View File

@ -26,7 +26,7 @@ python -m pip install -U 'pip>=10.0.1'
python -m pip install -r requirements.txt
if [ "$ENV" != "production" ]; then
python -m pip install -r requirements-dev.txt -r requirements-docs.txt
python -m pip install -r requirements-dev.txt
fi
if [ -d ".git" ]; then


+ 6
- 11
script/cibuild View File

@ -1,17 +1,12 @@
#!/bin/sh
set -e
cd "$(dirname "$0")/.."
#!/bin/bash
echo "## bootstrap ###################################################################"
script/bootstrap
if [ -z "$VENV_NAME" ]; then
VENV_NAME="env"
fi
. "$VENV_NAME/bin/activate"
# Get current script path
SCRIPT_PATH="$( dirname -- "$( readlink -f -- "${0}"; )"; )"
# Activate OctoDNS Python venv
source "${SCRIPT_PATH}/common.sh"
echo "## environment & versions ######################################################"
python --version
@ -19,7 +14,7 @@ pip --version
echo "## modules: "
pip freeze
echo "## clean up ####################################################################"
find octodns tests -name "*.pyc" -exec rm {} \;
find octodns tests* -name "*.pyc" -exec rm {} \;
rm -f *.pyc
echo "## begin #######################################################################"
# For now it's just lint...


+ 5
- 1
script/cibuild-setup-py View File

@ -18,6 +18,10 @@ python -m build --sdist --wheel
echo "## validate wheel install ###################################################"
pip install dist/*$VERSION*.whl
echo "## validate tests can run against installed code ###############################"
pip install pytest pytest-network
# filename needs to resolved independently as pip requires quoting and doesn't support
# wildcards when installing extra requirements
# (see: https://pip.pypa.io/en/stable/user_guide/#installing-from-wheels)
wheel_file=$(ls dist/*$VERSION*.whl)
pip install "${wheel_file}[test]"
pytest --disable-network
echo "## complete ####################################################################"

+ 18
- 13
script/coverage View File

@ -1,25 +1,30 @@
#!/bin/bash
# Get current script path
SCRIPT_PATH="$( dirname -- "$( readlink -f -- "${0}"; )"; )"
SCRIPT_PATH="$(dirname -- "$(readlink -f -- "${0}")")"
# Activate OctoDNS Python venv
source "${SCRIPT_PATH}/common.sh"
SOURCE_DIR="octodns/"
# Don't allow disabling coverage
grep -r -I --line-number "# pragma: +no.*cover" $SOURCE_DIR && {
echo "Code coverage should not be disabled"
PRAGMA_OUTPUT=$(grep -r -I --line-number "# pragma: \+no.*cover" "$SOURCE_DIR" || echo)
PRAGMA_COUNT=$(echo "$PRAGMA_OUTPUT" | grep -c . || true)
PRAGMA_ALLOWED=2
if [ "$PRAGMA_COUNT" -gt "$PRAGMA_ALLOWED" ]; then
echo "Found $PRAGMA_COUNT instances of 'pragma: no cover' (no more than $PRAGMA_ALLOWED allowed):"
echo "$PRAGMA_OUTPUT"
echo "Code coverage should not be disabled, except for version handling blocks"
exit 1
}
fi
pytest \
--disable-network \
--cov-reset \
--cov=$SOURCE_DIR \
--cov-fail-under=100 \
--cov-report=html \
--cov-report=xml \
--cov-report=term \
--cov-branch \
"$@"
--disable-network \
--cov-reset \
--cov=$SOURCE_DIR \
--cov-fail-under=100 \
--cov-report=html \
--cov-report=xml \
--cov-report=term \
--cov-branch \
"$@"

+ 4
- 18
script/release View File

@ -5,6 +5,8 @@ SCRIPT_PATH="$( dirname -- "$( readlink -f -- "${0}"; )"; )"
# Activate OctoDNS Python venv
source "${SCRIPT_PATH}/common.sh"
set -o pipefail
PYPYRC="$HOME/.pypirc"
if [ ! -e "$PYPYRC" ]; then
cat << EndOfMessage >&2
@ -18,28 +20,12 @@ EndOfMessage
exit 1
fi
# Set so that setup.py will create a public release style version number
export OCTODNS_RELEASE=1
VERSION="$(grep "^__version__" "$ROOT/octodns/__init__.py" | sed -e "s/.* = '//" -e "s/'$//")"
VERSION="$(grep "^__version__" "octodns/__init__.py" | sed -e "s/.* = '//" -e "s/'$//")"
git tag -s "v$VERSION" -m "Release $VERSION"
git push origin "v$VERSION"
echo "Tagged and pushed v$VERSION"
TMP_DIR=$(mktemp -d -t ci-XXXXXXXXXX)
git archive --format tar "v$VERSION" | tar xv -C $TMP_DIR
echo "Created clean room $TMP_DIR and archived $VERSION into it"
(cd "$TMP_DIR" && python -m build --sdist --wheel)
if [ ! -d dist ]; then
mkdir dist/
fi
cp $TMP_DIR/dist/*$VERSION.tar.gz $TMP_DIR/dist/*$VERSION*.whl dist/
echo "Copied $TMP_DIR/dists into ./dist"
python -m build --sdist --wheel
twine check dist/*$VERSION.tar.gz dist/*$VERSION*.whl
twine upload dist/*$VERSION.tar.gz dist/*$VERSION*.whl
echo "Uploaded $VERSION"

+ 1
- 0
setup.py View File

@ -78,6 +78,7 @@ setup(
'sphinx-copybutton>=0.5.2',
'sphinx_rtd_theme',
),
'test': tests_require,
},
install_requires=(
'PyYaml>=4.2b1',


Loading…
Cancel
Save