456 "Authorization": "",
457 }
458 response = self.get(url, headers=headers)
459 # API requests are varied by cookie, we don't want serializer for cache fail because of that460 self.cookies.clear()
461 return response
462
452 headers = {
453 "Accept": "*/*",
454 # private repos do not have releases.atom to begin with,
455 # authorization header may cause a false positive 200 response with an empty feed!456 "Authorization": "",
457 }
458 response = self.get(url, headers=headers)
652 def set_matching_formal_release(
653 self, ret, formal_release, version, pre_ok, data_type="release"
654 ):
655 """Set the current release selection to this formal release if matching conditions."""656 if not pre_ok and formal_release["prerelease"]:
657 log.info(
658 "Found formal release for this tag which is unwanted "
620
621 # only if we did not find desired stuff through feeds, we switch to using API :)
622 # this may be required in cases
623 # releases.atom has limited/no tags (#63), and all those are beta / invalid / non-versions624 # likewise, we want an older branch (major), which is not there in releases.atom
625 # due to the limited nature of data inside it
626
593 Strive to fetch formal API release if it exists, because it has useful information
594 like assets.
595 """
596 # data of selected tag, always contains ['version', 'tag_name', 'tag_date', 'type'] will597 # be returned
598 ret = {}
599
Docstring line lengths are recommended to be no greater than 79 characters.