pystand 2.7__tar.gz → 2.8__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.
- {pystand-2.7/pystand.egg-info → pystand-2.8}/PKG-INFO +1 -1
- {pystand-2.7 → pystand-2.8/pystand.egg-info}/PKG-INFO +1 -1
- {pystand-2.7 → pystand-2.8}/pystand.py +7 -7
- {pystand-2.7 → pystand-2.8}/.flake8 +0 -0
- {pystand-2.7 → pystand-2.8}/.gitignore +0 -0
- {pystand-2.7 → pystand-2.8}/Makefile +0 -0
- {pystand-2.7 → pystand-2.8}/README.md +0 -0
- {pystand-2.7 → pystand-2.8}/pyproject.toml +0 -0
- {pystand-2.7 → pystand-2.8}/pystand.egg-info/SOURCES.txt +0 -0
- {pystand-2.7 → pystand-2.8}/pystand.egg-info/dependency_links.txt +0 -0
- {pystand-2.7 → pystand-2.8}/pystand.egg-info/entry_points.txt +0 -0
- {pystand-2.7 → pystand-2.8}/pystand.egg-info/requires.txt +0 -0
- {pystand-2.7 → pystand-2.8}/pystand.egg-info/top_level.txt +0 -0
- {pystand-2.7 → pystand-2.8}/setup.cfg +0 -0
@@ -19,13 +19,14 @@ import tarfile
|
|
19
19
|
import time
|
20
20
|
import urllib.parse
|
21
21
|
import urllib.request
|
22
|
-
from argparse import ArgumentParser, Namespace
|
22
|
+
from argparse import SUPPRESS, ArgumentParser, Namespace
|
23
23
|
from collections import defaultdict
|
24
|
-
from datetime import
|
24
|
+
from datetime import date, datetime, timedelta
|
25
25
|
from pathlib import Path
|
26
26
|
from typing import Any, Iterable, Iterator
|
27
27
|
|
28
28
|
import argcomplete
|
29
|
+
import github
|
29
30
|
import platformdirs
|
30
31
|
import zstandard
|
31
32
|
from packaging.version import parse as parse_version
|
@@ -106,15 +107,13 @@ def get_gh(args: Namespace) -> Any:
|
|
106
107
|
if get_gh_handle:
|
107
108
|
return get_gh_handle
|
108
109
|
|
109
|
-
from github import Github
|
110
110
|
if args.github_access_token:
|
111
|
-
|
112
|
-
auth = Auth.Token(args.github_access_token)
|
111
|
+
auth = github.Auth.Token(args.github_access_token)
|
113
112
|
else:
|
114
113
|
auth = None
|
115
114
|
|
116
115
|
# Save this handle globally for future use
|
117
|
-
get_gh_handle = Github(auth=auth) # type: ignore
|
116
|
+
get_gh_handle = github.Github(auth=auth) # type: ignore
|
118
117
|
return get_gh_handle
|
119
118
|
|
120
119
|
def rm_path(path: Path) -> None:
|
@@ -350,6 +349,7 @@ def add_file(files: dict, tag: str, name: str, url: str) -> None:
|
|
350
349
|
|
351
350
|
def get_release_files(args, tag, implementation: str | None = None) -> dict:
|
352
351
|
'Return the release files for the given tag'
|
352
|
+
from github.GithubException import UnknownObjectException
|
353
353
|
# Look for tag data in our release cache
|
354
354
|
jfile = args._releases / tag
|
355
355
|
if not (files := get_json(jfile)):
|
@@ -362,7 +362,7 @@ def get_release_files(args, tag, implementation: str | None = None) -> dict:
|
|
362
362
|
gh = get_gh(args)
|
363
363
|
try:
|
364
364
|
release = gh.get_repo(GITHUB_REPO).get_release(tag)
|
365
|
-
except
|
365
|
+
except UnknownObjectException:
|
366
366
|
return {}
|
367
367
|
|
368
368
|
# Iterate over the release assets and store pertinent files in a
|
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
|