ddns 3.1.5__tar.gz → 3.1.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ddns might be problematic. Click here for more details.
- {ddns-3.1.5 → ddns-3.1.6}/PKG-INFO +9 -2
- {ddns-3.1.5 → ddns-3.1.6}/ddns.egg-info/PKG-INFO +9 -2
- {ddns-3.1.5 → ddns-3.1.6}/run.py +3 -3
- {ddns-3.1.5 → ddns-3.1.6}/setup.py +12 -4
- {ddns-3.1.5 → ddns-3.1.6}/util/cache.py +4 -3
- {ddns-3.1.5 → ddns-3.1.6}/LICENSE +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/README.md +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/ddns.egg-info/SOURCES.txt +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/ddns.egg-info/dependency_links.txt +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/ddns.egg-info/entry_points.txt +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/ddns.egg-info/top_level.txt +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/dns/__init__.py +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/dns/alidns.py +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/dns/callback.py +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/dns/cloudflare.py +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/dns/dnscom.py +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/dns/dnspod.py +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/dns/dnspod_com.py +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/dns/he.py +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/dns/huaweidns.py +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/setup.cfg +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/util/__init__.py +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/util/config.py +0 -0
- {ddns-3.1.5 → ddns-3.1.6}/util/ip.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ddns
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.6
|
|
4
4
|
Summary: automatically update DNS records to dynamic local IP [自动更新DNS记录指向本地IP]
|
|
5
5
|
Home-page: https://ddns.newfuture.cc
|
|
6
6
|
Author: NewFuture
|
|
@@ -12,8 +12,15 @@ Keywords: ddns ipv6 ipv4 dns dnspod alidns cloudflare
|
|
|
12
12
|
Platform: any
|
|
13
13
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier:
|
|
15
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
16
|
+
Classifier: Intended Audience :: Information Technology
|
|
17
|
+
Classifier: Intended Audience :: System Administrators
|
|
18
|
+
Classifier: Topic :: Internet
|
|
19
|
+
Classifier: Topic :: Internet :: Name Service (DNS)
|
|
20
|
+
Classifier: Topic :: System :: Networking
|
|
21
|
+
Classifier: Topic :: Software Development
|
|
16
22
|
Classifier: License :: OSI Approved :: MIT License
|
|
23
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
17
24
|
Classifier: Programming Language :: Python :: 3
|
|
18
25
|
Requires-Python: >=2.5, <4
|
|
19
26
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ddns
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.6
|
|
4
4
|
Summary: automatically update DNS records to dynamic local IP [自动更新DNS记录指向本地IP]
|
|
5
5
|
Home-page: https://ddns.newfuture.cc
|
|
6
6
|
Author: NewFuture
|
|
@@ -12,8 +12,15 @@ Keywords: ddns ipv6 ipv4 dns dnspod alidns cloudflare
|
|
|
12
12
|
Platform: any
|
|
13
13
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier:
|
|
15
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
16
|
+
Classifier: Intended Audience :: Information Technology
|
|
17
|
+
Classifier: Intended Audience :: System Administrators
|
|
18
|
+
Classifier: Topic :: Internet
|
|
19
|
+
Classifier: Topic :: Internet :: Name Service (DNS)
|
|
20
|
+
Classifier: Topic :: System :: Networking
|
|
21
|
+
Classifier: Topic :: Software Development
|
|
16
22
|
Classifier: License :: OSI Approved :: MIT License
|
|
23
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
17
24
|
Classifier: Programming Language :: Python :: 3
|
|
18
25
|
Requires-Python: >=2.5, <4
|
|
19
26
|
Description-Content-Type: text/markdown
|
{ddns-3.1.5 → ddns-3.1.6}/run.py
RENAMED
|
@@ -18,7 +18,7 @@ from util import ip
|
|
|
18
18
|
from util.cache import Cache
|
|
19
19
|
from util.config import init_config, get_config
|
|
20
20
|
|
|
21
|
-
__version__ = "v3.1.
|
|
21
|
+
__version__ = "v3.1.6@2025-05-29T16:18:28+00:00" # CI 时会被Tag替换
|
|
22
22
|
__description__ = "automatically update DNS records to dynamic local IP [自动更新DNS记录指向本地IP]"
|
|
23
23
|
__doc__ = """
|
|
24
24
|
ddns[%s]
|
|
@@ -27,7 +27,7 @@ ddns[%s]
|
|
|
27
27
|
Copyright (c) New Future (MIT License)
|
|
28
28
|
""" % (__version__)
|
|
29
29
|
|
|
30
|
-
environ["DDNS_VERSION"] = "v3.1.
|
|
30
|
+
environ["DDNS_VERSION"] = "v3.1.6"
|
|
31
31
|
|
|
32
32
|
if getattr(sys, 'frozen', False):
|
|
33
33
|
# https://github.com/pyinstaller/pyinstaller/wiki/Recipe-OpenSSL-Certificate
|
|
@@ -43,7 +43,7 @@ def get_ip(ip_type, index="default"):
|
|
|
43
43
|
# EN: Catch exceptions
|
|
44
44
|
value = None
|
|
45
45
|
try:
|
|
46
|
-
debug(
|
|
46
|
+
debug("get_ip(%s, %s)", ip_type, index)
|
|
47
47
|
if index is False: # disabled
|
|
48
48
|
return False
|
|
49
49
|
elif type(index) is list: # 如果获取到的规则是列表,则依次判断列表中每一个规则,直到找到一个可以正确获取到的IP
|
|
@@ -37,8 +37,8 @@ elif 'BUILD_SOURCEBRANCHNAME' in environ:
|
|
|
37
37
|
version = environ['BUILD_SOURCEBRANCHNAME'] # from azure pipelines
|
|
38
38
|
elif 'GITHUB_REF_NAME' in environ: # github actions
|
|
39
39
|
ref = environ['GITHUB_REF_NAME']
|
|
40
|
-
if ref == 'master' or ref == 'main': # CI
|
|
41
|
-
version = '
|
|
40
|
+
if ref == 'master' or ref == 'main' or ref == "v3" or ref == "v2": # CI
|
|
41
|
+
version = '3.0.b' + str(int(time()))
|
|
42
42
|
elif ref.startswith('v') or ref.startswith('V'): # Tag
|
|
43
43
|
version = ref
|
|
44
44
|
else: # PR
|
|
@@ -126,7 +126,15 @@ setup(
|
|
|
126
126
|
|
|
127
127
|
# Indicate who your project is intended for
|
|
128
128
|
'Intended Audience :: Developers',
|
|
129
|
-
'
|
|
129
|
+
'Intended Audience :: End Users/Desktop',
|
|
130
|
+
'Intended Audience :: Information Technology',
|
|
131
|
+
'Intended Audience :: System Administrators',
|
|
132
|
+
|
|
133
|
+
# Topics
|
|
134
|
+
'Topic :: Internet',
|
|
135
|
+
'Topic :: Internet :: Name Service (DNS)',
|
|
136
|
+
'Topic :: System :: Networking',
|
|
137
|
+
'Topic :: Software Development',
|
|
130
138
|
|
|
131
139
|
# Pick your license as you wish
|
|
132
140
|
'License :: OSI Approved :: MIT License',
|
|
@@ -135,7 +143,7 @@ setup(
|
|
|
135
143
|
# that you indicate whether you support Python 2, Python 3 or both.
|
|
136
144
|
# These classifiers are *not* checked by 'pip install'. See instead
|
|
137
145
|
# 'python_requires' below.
|
|
138
|
-
|
|
146
|
+
'Programming Language :: Python :: 2.7',
|
|
139
147
|
'Programming Language :: Python :: 3',
|
|
140
148
|
],
|
|
141
149
|
|
|
@@ -12,10 +12,11 @@ from time import time
|
|
|
12
12
|
from logging import info, debug, warning
|
|
13
13
|
|
|
14
14
|
try:
|
|
15
|
-
|
|
16
|
-
except ImportError:
|
|
17
|
-
# Python 2 imports
|
|
15
|
+
# Python 2
|
|
18
16
|
from collections import MutableMapping
|
|
17
|
+
except ImportError:
|
|
18
|
+
# python3
|
|
19
|
+
from collections.abc import MutableMapping
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
class Cache(MutableMapping):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|