From 3b138ab0fd790caf6d53cb215081a4af63b610cd Mon Sep 17 00:00:00 2001 From: licihua Date: Sun, 29 Jan 2023 11:09:59 +0800 Subject: [PATCH] support zope.schema.git --- advisors/check_upstream.py | 4 +++- upstream-info/python-requests-kerberos.yaml | 5 +++++ upstream-info/python-rply.yaml | 6 ++++++ upstream-info/swagger-core.yaml | 5 +++++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 upstream-info/python-requests-kerberos.yaml create mode 100644 upstream-info/python-rply.yaml create mode 100644 upstream-info/swagger-core.yaml diff --git a/advisors/check_upstream.py b/advisors/check_upstream.py index 5b8604f7..dc02471f 100755 --- a/advisors/check_upstream.py +++ b/advisors/check_upstream.py @@ -345,7 +345,9 @@ def __check_git_helper(repo_url): else: os.mkdir("git") os.chdir("git") - git_repo = os.path.basename(repo_url).split('.')[0] + + git_repo_list = os.path.basename(repo_url).split('.')[0:-1] + git_repo = ".".join(git_repo_list) zip_file = git_repo + ".zip" if os.path.isfile(zip_file): shutil.unpack_archive(zip_file, git_repo) diff --git a/upstream-info/python-requests-kerberos.yaml b/upstream-info/python-requests-kerberos.yaml new file mode 100644 index 00000000..9ac430b7 --- /dev/null +++ b/upstream-info/python-requests-kerberos.yaml @@ -0,0 +1,5 @@ +version_control: github +src_repo: requests/requests-kerberos +tag_prefix: "^v" +separator: "." +git_url: https://github.com/requests/requests-kerberos.git diff --git a/upstream-info/python-rply.yaml b/upstream-info/python-rply.yaml new file mode 100644 index 00000000..2795d7c8 --- /dev/null +++ b/upstream-info/python-rply.yaml @@ -0,0 +1,6 @@ +version_control: github +src_repo: alex/rply +tag_prefix: "^v" +separator: "." +git_url: https://github.com/alex/rply.git + diff --git a/upstream-info/swagger-core.yaml b/upstream-info/swagger-core.yaml new file mode 100644 index 00000000..5d289bb6 --- /dev/null +++ b/upstream-info/swagger-core.yaml @@ -0,0 +1,5 @@ +version_control: github +src_repo: swagger-api/swagger-core +tag_prefix: "^v" +separator: "." +git_url: https://github.com/swagger-api/swagger-core.git -- Gitee