Add notes about python packaging
Resolves: RHEL-35621 Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
parent
0b09e70e98
commit
65b82867ee
@ -11,7 +11,6 @@ Source0: %{url}/archive/%{version}/colorama-%{version}.tar.gz
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
# for check
|
|
||||||
BuildRequires: python3dist(pytest)
|
BuildRequires: python3dist(pytest)
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +42,8 @@ Termcolor.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pypi_name}-%{version}
|
%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
|
tail -n +5 pyproject.toml > pyproject.toml_fixed
|
||||||
mv pyproject.toml_fixed pyproject.toml
|
mv pyproject.toml_fixed pyproject.toml
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user