def set_anitya_version(self, project_id): url = requests.compat.urljoin(ANITYA_URL, "versions/") post_data = { "id": project_id, "version_scheme": "semantic", "pre_release_filter": "alpha;beta;rc;pre", "dry_run": False, } req = requests.post( url, post_data, headers={"Authorization": f"token {self.anitya_token}"} ) req.raise_for_status() return req.json()
Setting the "pre_release_filter" to "alpha;beta;rc;pre" is basically redundant, as anitya already has automatic detection for at least some strings that indicate pre-releases. At least for Rust packages, where we don't package pre-releases (except for a few packages that I can count on one hand), this string should be set for the "Version filter", instead (which is also what I explicitly state in my "successful rust package review template").
Should be fixed in https://pagure.io/fedora-sig-onboard/c/9e6588705212ccd410ee01e736980c8e533b79cf?branch=main which was tested on https://release-monitoring.org/project/272396/
Metadata Update from @dcavalca: - Issue status updated to: Closed (was: Open)
Thanks!