| |
@@ -5,7 +5,7 @@
|
| |
Name: poetry
|
| |
Summary: Python dependency management and packaging made easy
|
| |
Version: 1.1.5
|
| |
- Release: 1%{?dist}
|
| |
+ Release: 2%{?dist}
|
| |
|
| |
License: MIT
|
| |
|
| |
@@ -61,6 +61,13 @@
|
| |
%pyproject_install
|
| |
%pyproject_save_files poetry
|
| |
|
| |
+ export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
| |
+ for i in bash,bash-completion/completions,poetry fish,fish/completions,poetry.fish zsh,zsh/site-functions,_poetry; do IFS=","
|
| |
+ set -- $i
|
| |
+ mkdir -p %{buildroot}%{_datadir}/$2
|
| |
+ # poetry leaves references to the buildroot in the completion files -> remove them
|
| |
+ %{buildroot}%{_bindir}/poetry completions $1 | sed 's|%{buildroot}||g' > %{buildroot}%{_datadir}/$2/$3
|
| |
+ done
|
| |
|
| |
%check
|
| |
# don't use %%tox here because tox.ini runs "poetry install"
|
| |
@@ -72,6 +79,10 @@
|
| |
|
| |
%files
|
| |
%{_bindir}/poetry
|
| |
+ # The directories with shell completions are co-woned
|
| |
+ %{_datadir}/bash-completion/
|
| |
+ %{_datadir}/fish/
|
| |
+ %{_datadir}/zsh/
|
| |
|
| |
|
| |
%files -n python3-poetry -f %{pyproject_files}
|
| |
@@ -86,6 +97,9 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Wed Jun 9 2021 Dan Čermák <dan.cermak@cgc-instruments.com> - 1.1.5-2
|
| |
+ - Install shell completion files
|
| |
+
|
| |
* Fri Mar 05 2021 Tomas Hrnciar <thrnciar@redhat.com> - 1.1.5-1
|
| |
- Update to version 1.1.5
|
| |
|
| |