From b127559ca042b757b8014fc88f713cd28e3aa747 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Tue, 24 Mar 2015 12:05:09 -0400 Subject: [PATCH] - And then BuildRequires pocketlint. (clumens) - Fix the couple last pylint warnings. (clumens) - Tell pylint to ignore a couple places where we catch all exceptions. (clumens) - Don't use [] as a default argument to loadModules. (clumens) - Define bytesPerInode in __init__ methods. (clumens) - Don't pointlessly redefine the command attr in some tests. (clumens) - tstList -> tests (clumens) - lan -> len (clumens) - Fix wildcard imports and other import-related pylint problems. (clumens) - Remove some unused variables. (clumens) - Fix string substitutions into translatable strings. (clumens) - Start using pocketlint to run pylint. (clumens) --- .gitignore | 1 + pykickstart.spec | 29 +++++++++++++++++++++-------- sources | 2 +- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index d801a02..b69828a 100644 --- a/.gitignore +++ b/.gitignore @@ -140,3 +140,4 @@ pykickstart-1.78.tar.gz /pykickstart-1.99.66.tar.gz /pykickstart-2.0.tar.gz /pykickstart-2.1.tar.gz +/pykickstart-2.2.tar.gz diff --git a/pykickstart.spec b/pykickstart.spec index 129bd38..3ba5316 100644 --- a/pykickstart.spec +++ b/pykickstart.spec @@ -1,7 +1,5 @@ -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} - Name: pykickstart -Version: 2.1 +Version: 2.2 Release: 1%{?dist} License: GPLv2 and MIT Group: System Environment/Libraries @@ -23,8 +21,9 @@ BuildRequires: transifex-client %endif BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python3-pocketlint BuildRequires: python3-requests +BuildRequires: python3-setuptools BuildRequires: python3-six Requires: python3-kickstart @@ -98,10 +97,10 @@ popd %defattr(-,root,root,-) %doc docs/programmers-guide %doc docs/kickstart-docs.txt -%{python_sitelib}/pykickstart*egg* -%{python_sitelib}/pykickstart/*py* -%{python_sitelib}/pykickstart/commands/*py* -%{python_sitelib}/pykickstart/handlers/*py* +%{python2_sitelib}/pykickstart*egg* +%{python2_sitelib}/pykickstart/*py* +%{python2_sitelib}/pykickstart/commands/*py* +%{python2_sitelib}/pykickstart/handlers/*py* %files -n python3-kickstart -f %{name}.lang %defattr(-,root,root,-) @@ -113,6 +112,20 @@ popd %{python3_sitelib}/pykickstart/handlers/*py* %changelog +* Tue Mar 24 2015 Chris Lumens - 2.2-1 +- And then BuildRequires pocketlint. (clumens) +- Fix the couple last pylint warnings. (clumens) +- Tell pylint to ignore a couple places where we catch all exceptions. (clumens) +- Don't use [] as a default argument to loadModules. (clumens) +- Define bytesPerInode in __init__ methods. (clumens) +- Don't pointlessly redefine the command attr in some tests. (clumens) +- tstList -> tests (clumens) +- lan -> len (clumens) +- Fix wildcard imports and other import-related pylint problems. (clumens) +- Remove some unused variables. (clumens) +- Fix string substitutions into translatable strings. (clumens) +- Start using pocketlint to run pylint. (clumens) + * Thu Feb 26 2015 Chris Lumens - 2.1-1 - Both library packages need to require python-six of some variety (#1195715). (clumens) - Fix the python-six requirement for python3-kickstart (#1195719). (clumens) diff --git a/sources b/sources index b5fffc9..c74fb7f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0f7f33dd124e1f23a5e38e4e9e377118 pykickstart-2.1.tar.gz +7b84011f9900291e811fd65190cf5440 pykickstart-2.2.tar.gz