Add notes about python packaging

Resolves: RHEL-35621

Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
Major Hayden 2024-05-09 13:45:57 -05:00
parent 0b09e70e98
commit 65b82867ee
No known key found for this signature in database

View File

@ -11,7 +11,6 @@ Source0: %{url}/archive/%{version}/colorama-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
# for check
BuildRequires: python3dist(pytest)
@ -43,6 +42,8 @@ Termcolor.
%prep
%autosetup -n %{pypi_name}-%{version}
# Upstram uses a pyproject.toml that the version of setuptools in RHEL 9 cannot parse.
# It also depends on hatch for packaging, which is not available in RHEL 9.
tail -n +5 pyproject.toml > pyproject.toml_fixed
mv pyproject.toml_fixed pyproject.toml