File tree 4 files changed +4
-9
lines changed
4 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 61
61
# fail-fast: false
62
62
matrix :
63
63
os : [windows, macos, ubuntu]
64
- python-version : ["2.7", " 3.x"]
64
+ python-version : ["3.x"]
65
65
runs-on : ${{ matrix.os }}-latest
66
66
timeout-minutes : 8
67
67
steps :
71
71
with :
72
72
python-version : ${{ matrix.python-version }}
73
73
- name : Install dependencies
74
- if : matrix.python-version != '2.7'
75
74
run : pip install pyinstaller
76
75
77
76
# Prepare build version and cert
@@ -85,17 +84,13 @@ jobs:
85
84
- run : python ./run.py -h
86
85
87
86
- name : Package binary
88
- if : matrix.python-version != '2.7'
89
87
run : python -O -m PyInstaller --noconfirm --clean .build/ddns.spec
90
88
91
89
- run : ./dist/ddns || test -e config.json
92
- if : matrix.python-version != '2.7'
93
90
- run : ./dist/ddns -h
94
- if : matrix.python-version != '2.7'
95
91
96
92
# Upload build result
97
93
- uses : actions/upload-artifact@v3
98
- if : matrix.python-version != '2.7'
99
94
with :
100
95
name : ${{ matrix.os }}-py${{ matrix.python-version }}
101
96
path : dist/
Original file line number Diff line number Diff line change 14
14
- 兼容和跨平台:
15
15
- [x] 可执行文件(无需 python 环境)
16
16
- [x] 多系统兼容 ![ cross platform] ( https://img.shields.io/badge/platform-windows_%7C%20linux_%7C%20osx-success.svg?style=social )
17
- - [x] python2 和 python3 支持 ![ PyPI - Python Version] ( https://img.shields.io/pypi/pyversions/ddns.svg?style=social )
17
+ - [x] python3 支持 ![ PyPI - Python Version] ( https://img.shields.io/pypi/pyversions/ddns.svg?style=social ) (2.x支持python2和python3 )
18
18
- [x] PIP 安装 ![ PyPI - Wheel] ( https://img.shields.io/pypi/wheel/ddns.svg?style=social )
19
19
- [x] Docker 支持(@NN708 )
20
20
- 域名支持:
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def get_ip(ip_type, index="default"):
41
41
"""
42
42
if index is False : # disabled
43
43
return False
44
- elif type (index ) == list : # 如果获取到的规则是列表,则依次判断列表中每一个规则,直到找到一个可以正确获取到的IP
44
+ elif type (index ) is list : # 如果获取到的规则是列表,则依次判断列表中每一个规则,直到找到一个可以正确获取到的IP
45
45
value = None
46
46
for i in index :
47
47
value = get_ip (ip_type , i )
Original file line number Diff line number Diff line change 135
135
# that you indicate whether you support Python 2, Python 3 or both.
136
136
# These classifiers are *not* checked by 'pip install'. See instead
137
137
# 'python_requires' below.
138
- 'Programming Language :: Python :: 2.7' ,
138
+ # 'Programming Language :: Python :: 2.7',
139
139
'Programming Language :: Python :: 3' ,
140
140
],
141
141
You can’t perform that action at this time.
0 commit comments