Skip to content

Commit e3bb75b

Browse files
committed
Updated library and dependency versions for some
1 parent 26015e4 commit e3bb75b

File tree

7 files changed

+247
-145
lines changed

7 files changed

+247
-145
lines changed

.github/workflows/github-actions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Setup Python
1111
uses: actions/setup-python@v1
1212
with:
13-
python-version: 3.9
13+
python-version: 3.12
1414
- name: Install Poetry
1515
run: |
1616
python -m pip install --upgrade pip

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9.6-alpine3.14 as base
1+
FROM python:3.12.2-alpine as base
22

33
ENV PYTHONFAULTHANDLER=1 \
44
PYTHONBUFFERED=1 \
@@ -12,7 +12,7 @@ ENV PIC_NO_CACHE_DIR=1 \
1212
PIP_DISABLE_PIP_VERSION_CHECK=1 \
1313
PIP_DEFAULT_TIMEOUT=100 \
1414
CRYPTOGRAPHY_DONT_BUILD_RUST=1 \
15-
POETRY_VERSION=1.1.7
15+
POETRY_VERSION=1.8.2
1616

1717
RUN apk add --no-cache gcc openssl-dev python3-dev libffi-dev musl-dev
1818
RUN pip install --upgrade pip

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Docker Images](https://github.com/codegeek/dyn-cloudflare-ddns/actions/workflows/publish.yml/badge.svg)](https://github.com/codegeek/dyn-cloudflare-ddns/actions/workflows/publish.yml)
44

5-
Dyn-Cloudflare-DDNS is a simple Python 3.9.x script that retrieves an IP address from a Dynamic DNS provider (Dyn, No-IP, etc)
5+
Dyn-Cloudflare-DDNS is a simple Python 3.12.x script that retrieves an IP address from a Dynamic DNS provider (Dyn, No-IP, etc)
66
and uses that to update Cloudflare's DNS. The reason for this script is that many routers have the capability to update DDNS
77
services, but usually Cloudflare isn't supported.
88

changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Version 0.1.0
2+
3+
- Initial Release
4+
5+
# Version 0.1.1
6+
7+
- Updated Cloudflare library to 2.19
8+
- Updated Python to 3.12
9+
- Modified logs

dyn-cloudflare-ddns/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def main():
9999
external_ips = getExternalIPFromDDNS(ddnsHost, ddnsRtype)
100100
if external_ips != None:
101101
ip = external_ips.rrset[0].to_text()
102-
logger.info('Trying to update CloudFlare Zone "%s" with IP: %s' % (cfZone, ip))
102+
logger.debug('Trying to update CloudFlare Zone "%s" with IP: %s' % (cfZone, ip))
103103
updateCloudflare(ip, ddnsRtype, cfZone)
104104
else:
105105
logger.error('No external IPs found for host "%s"' % ddnsHost)

poetry.lock

Lines changed: 230 additions & 137 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[tool.poetry]
22
name = "dyn-cloudflare-ddns"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "Update Cloudflare DNS from a dynamic DNS record"
55
authors = ["Guillermo Castro <admin@codegeek.dev>"]
66
packages = [
77
{ include = "dyn-cloudflare-ddns" }
88
]
99

1010
[tool.poetry.dependencies]
11-
python = "^3.9"
12-
cloudflare = "^2.8.15"
11+
python = "^3.10"
12+
cloudflare = "^2.19.2"
1313
dnspython = "^2.1.0"
1414
requests = "^2.26.0"
1515

0 commit comments

Comments
 (0)