58 "php": {
59 "repo": "php/php-src",
60 # get URL from the official website because it is a "prepared" source
61 "release_url_format": "https://www.php.net/distributions/php-{version}.tar.gz", 62 },
63 "linux": {"repo": "torvalds/linux"},
64 "kernel": {"repo": "torvalds/linux"},
197 ):
198 if self.rate_limited_count > 2:
199 raise ApiCredentialsError(
200 f"API requests were denied after retrying {self.rate_limited_count} times"201 )
202 remaining = int(r.headers["X-RateLimit-Remaining"])
203 # One sec to account for skewed clock between GitHub and client
101 "Programming Language :: Python :: 3.12",
102 ],
103 python_requires='>=3.6',
104 keywords="version, release, latest, stable, pypi, github, gitlab, bitbucket, mercurial, hg, wordpress"105)
56
57base_dir = os.path.join(os.path.dirname(__file__), "src")
58
59with open(os.path.join(base_dir, "lastversion", "__about__.py"), "r", encoding="utf-8") as f: 60 version = _version_re.search(f.read()).group(1)
61
62setup(
238 return repo_arg
239 if len(repo_components) < cls.REPO_URL_PROJECT_COMPONENTS:
240 raise ValueError(
241 f"Repo arg {repo_arg} does not have enough components for {cls.__name__}"242 )
243 return "/".join(
244 repo_components[
Line length greater than configured max_line_length
detected, defaults to 79 character. This limit can be configured docs