forked from pool/python-proselint
- Update to 0.11.3:
- fix package bundling to include proselintrc (#1195) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proselint?expand=0&rev=24
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2ea19c96ac7069ba04800fcb42d8aa9ec3e8afd4825c15fdf2eecb29db92cafe
|
|
||||||
size 872921
|
|
3
proselint-0.11.3.tar.gz
Normal file
3
proselint-0.11.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f5d1f6bb62863e2bb22df430529b9facc6f6eca2ab1f60eca5266747b71a7ef3
|
||||||
|
size 874207
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 12 13:16:11 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.11.3:
|
||||||
|
- fix package bundling to include proselintrc (#1195)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 8 00:03:06 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
Thu Jul 8 00:03:06 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
%bcond_without python2
|
%bcond_without python2
|
||||||
%define modname proselint
|
%define modname proselint
|
||||||
Name: python-proselint
|
Name: python-proselint
|
||||||
Version: 0.11.2
|
Version: 0.11.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A linter for prose
|
Summary: A linter for prose
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
@@ -65,13 +65,18 @@ existing tools.
|
|||||||
|
|
||||||
sed -i -e '/^#!\//, 1d' proselint/*.py
|
sed -i -e '/^#!\//, 1d' proselint/*.py
|
||||||
|
|
||||||
|
# We don't like hidden configuration files in /usr/lib
|
||||||
|
cp proselint/.proselintrc proselintrc
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/proselint
|
%python_clone -a %{buildroot}%{_bindir}/proselint
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%{python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
rm -v %{buildroot}%{$python_sitelib}/proselint/.proselintrc
|
||||||
|
}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative proselint
|
%python_install_alternative proselint
|
||||||
@@ -80,12 +85,10 @@ sed -i -e '/^#!\//, 1d' proselint/*.py
|
|||||||
%python_uninstall_alternative proselint
|
%python_uninstall_alternative proselint
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{python_expand cp %{buildroot}%{_bindir}/proselint-%{$python_bin_suffix} ~/bin/proselint
|
%pytest
|
||||||
PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest
|
|
||||||
}
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGELOG.md README.md
|
%doc CHANGELOG.md README.md proselintrc
|
||||||
%license LICENSE.md
|
%license LICENSE.md
|
||||||
%python_alternative %{_bindir}/proselint
|
%python_alternative %{_bindir}/proselint
|
||||||
%{python_sitelib}/proselint/
|
%{python_sitelib}/proselint/
|
||||||
|
Reference in New Issue
Block a user