Skip to content

Commit e0ee198

Browse files
Move all script to etc/scripts
Signed-off-by: Abhishek Kumar <abhishek.kasyap09@gmail.com>
1 parent f08eacf commit e0ee198

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,23 @@
3333
import subprocess
3434
import sys
3535

36+
python_version = str(sys.version_info[0]) + str(sys.version_info[1])
37+
py_abi = "{0}cp{1}{0}".format("*", python_version)
38+
3639

3740
def release_asset(token, tag, repo, body, user, limit, file):
3841
"""
3942
Release .whl,.ABOUT,.NOTICE,.LICENSE to github repository from
4043
given directory.
4144
"""
4245

43-
cwd = os.getcwd()
4446
os.environ["GITHUB_TOKEN"] = token
4547
thirdparty = list(resource_iter(file, with_dirs=False))
46-
# FIXME this code is for py 3.6 and later we will update for all version
4748
dependencies = [
4849
files
4950
for files in thirdparty
5051
if fnmatch.fnmatchcase(files, "*py3*")
51-
or fnmatch.fnmatchcase(files, "*cp36*")
52+
or fnmatch.fnmatchcase(files, py_abi)
5253
or (
5354
fnmatch.fnmatchcase(files, "*tar.gz*")
5455
and not fnmatch.fnmatchcase(files, "*py2-ipaddress-3.4.1.tar.gz*")

0 commit comments

Comments
 (0)