forked from pool/python-proselint
Accepting request 953812 from home:bfein:branches:devel:languages:python
- Update to 0.13.0 - made memoize safe for both arguments and keyword arguments - now exports decorators that wrap meta-checks - Update to 0.12.0 - make am_pm checks case-sensitive - added --dump-config and --dump-default-config CLI arguments - now exports proselint.config.default - proselint.tools.lint now takes a config object instead of using load_options - Proselint no longer uses a proselintrc config file. Remove no longer needed commands from the spec. OBS-URL: https://build.opensuse.org/request/show/953812 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proselint?expand=0&rev=25
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-proselint
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -20,7 +20,7 @@
|
||||
%bcond_without python2
|
||||
%define modname proselint
|
||||
Name: python-proselint
|
||||
Version: 0.11.3
|
||||
Version: 0.13.0
|
||||
Release: 0
|
||||
Summary: A linter for prose
|
||||
License: BSD-3-Clause
|
||||
@@ -65,18 +65,13 @@ existing tools.
|
||||
|
||||
sed -i -e '/^#!\//, 1d' proselint/*.py
|
||||
|
||||
# We don't like hidden configuration files in /usr/lib
|
||||
cp proselint/.proselintrc proselintrc
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/proselint
|
||||
%{python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
rm -v %{buildroot}%{$python_sitelib}/proselint/.proselintrc
|
||||
}
|
||||
%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
|
||||
|
||||
%post
|
||||
%python_install_alternative proselint
|
||||
@@ -88,7 +83,7 @@ rm -v %{buildroot}%{$python_sitelib}/proselint/.proselintrc
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.md README.md proselintrc
|
||||
%doc CHANGELOG.md README.md
|
||||
%license LICENSE.md
|
||||
%python_alternative %{_bindir}/proselint
|
||||
%{python_sitelib}/proselint/
|
||||
|
Reference in New Issue
Block a user