diff --git a/pyproject.toml b/pyproject.toml index 68e396b..085928f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,8 +6,8 @@ build-backend = "setuptools.build_meta" name = "aexpect" description = "Python library used to control interactive programs" readme = "README.rst" -dynamic = ["version"] -license = "GPL-2.0-or-later" +version = "1.8.0" +license = {text = "GPL-2.0-or-later"} authors = [{name = "Aexpect developers", email = "avocado-devel@redhat.com"}] maintainers = [{name = "Aexpect developers", email = "avocado-devel@redhat.com"}] requires-python = ">=3.8" diff --git a/python-aexpect.spec b/python-aexpect.spec index 0e72551..955ef09 100644 --- a/python-aexpect.spec +++ b/python-aexpect.spec @@ -60,10 +60,11 @@ sftp, telnet, among others. %endif %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files aexpect ln -s aexpect_helper %{buildroot}%{_bindir}/aexpect_helper-%{python3_pkgversion} ln -s aexpect_helper %{buildroot}%{_bindir}/aexpect_helper-%{python3_version} @@ -72,11 +73,9 @@ ln -s aexpect_helper %{buildroot}%{_bindir}/aexpect_helper-%{python3_version} selftests/checkall %endif -%files -n python3-aexpect +%files -n python3-aexpect -f %{pyproject_files} %license LICENSE %doc README.rst -%{python3_sitelib}/aexpect/ -%{python3_sitelib}/aexpect-%{version}-py%{python3_version}.egg-info/ %{_bindir}/aexpect_helper* %changelog