14
0

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:
2022-02-12 11:33:55 +00:00
committed by Git OBS Bridge
parent d0c841e5ac
commit e8b726881f
4 changed files with 23 additions and 12 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f5d1f6bb62863e2bb22df430529b9facc6f6eca2ab1f60eca5266747b71a7ef3
size 874207

3
proselint-0.13.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:019783cb13a5b6546389764bdd2e505648063315b4307113ff8a93d03bde62e4
size 875919

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Fri Feb 11 19:17:53 UTC 2022 - Benedikt Fein <benedikt.fein@gmail.com>
- 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.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 12 13:16:11 UTC 2021 - Matej Cepl <mcepl@suse.com> Mon Jul 12 13:16:11 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-proselint # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -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.3 Version: 0.13.0
Release: 0 Release: 0
Summary: A linter for prose Summary: A linter for prose
License: BSD-3-Clause License: BSD-3-Clause
@@ -65,18 +65,13 @@ 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
@@ -88,7 +83,7 @@ rm -v %{buildroot}%{$python_sitelib}/proselint/.proselintrc
%pytest %pytest
%files %{python_files} %files %{python_files}
%doc CHANGELOG.md README.md proselintrc %doc CHANGELOG.md README.md
%license LICENSE.md %license LICENSE.md
%python_alternative %{_bindir}/proselint %python_alternative %{_bindir}/proselint
%{python_sitelib}/proselint/ %{python_sitelib}/proselint/