Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #2960: Generate PEP-440 compatible devbuild version for setuptools (
#2961) * get_git_version: Only match official 20xx.y release tags Previously, you'd get results such as `2019-dev-154-gc2f4d607b` due to the most recent tag being `2019-dev` (otherwise unversioned). * setup.py: Replace deprecated `distro.linux_distribution` call with `distro.id` As per https://distro.readthedocs.io/en/latest/#distro.id Return the distro ID of the current distribution, as a machine-readable string. For a number of OS distributions, the returned distro ID value is reliable, in the sense that it is documented and that it does not change across releases of the distribution. This package maintains the following reliable distro ID values: Distro ID Distribution “ubuntu” Ubuntu “debian” Debian “rhel” RedHat Enterprise Linux “centos” CentOS “fedora” Fedora “sles” SUSE Linux Enterprise Server “opensuse” openSUSE “amazon” Amazon Linux “arch” Arch Linux “cloudlinux” CloudLinux OS “exherbo” Exherbo Linux “gentoo” GenToo Linux “ibm_powerkvm” IBM PowerKVM “kvmibm” KVM for IBM z Systems “linuxmint” Linux Mint “mageia” Mageia “mandriva” Mandriva Linux “parallels” Parallels “pidora” Pidora “raspbian” Raspbian “oracle” Oracle Linux (and Oracle Enterprise Linux) “scientific” Scientific Linux “slackware” Slackware “xenserver” XenServer “openbsd” OpenBSD “netbsd” NetBSD “freebsd” FreeBSD * setup.py: Fix indentation * setup.py: Convert `git describe`-based version to PEP-440-compliant one For setuptools installation purposes, anyhow. Ingame UI still supposed to display the full dev-version identifier including git hash.
- Loading branch information