From fa846b37d03261cbc68c10f4dfdb73d38f03ba5c Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 3 Apr 2010 17:45:27 +0000 Subject: [PATCH 01/13] Initialize branch F-13 for django-lint --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..baa94ef --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-13 From 9fbffa64c9e2b93b9f0174d8c41df7a1ccc5d45d Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Sat, 3 Apr 2010 18:50:59 +0000 Subject: [PATCH 02/13] Initial import devel branch --- .cvsignore | 1 + django-lint.spec | 92 ++++++++++++++++++++++++++++++++++++++++++++++++ import.log | 1 + sources | 1 + 4 files changed, 95 insertions(+) create mode 100644 django-lint.spec create mode 100644 import.log diff --git a/.cvsignore b/.cvsignore index e69de29..c7ac4aa 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +django-lint-0.13.tar.bz2 diff --git a/django-lint.spec b/django-lint.spec new file mode 100644 index 0000000..903c43f --- /dev/null +++ b/django-lint.spec @@ -0,0 +1,92 @@ +%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%endif + + + +Name: django-lint +Version: 0.13 +Release: 5%{?dist} +Summary: Analyzes Django code looking for bugs and signs of poor quality + +Group: Development/Debuggers +License: GPLv3+ +URL: http://chris-lamb.co.uk/projects/django-lint/ +Source0: http://chris-lamb.co.uk/releases/%{name}/%{name}-%{version}/%{name}-%{version}.tar.bz2 +BuildArch: noarch +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: python2-devel +Requires: Django +Requires: pylint + +%description +Django Lint is a static analysis tool that checks (or "lints") projects +and applications that use the Django web development framework. + +It reports on common programming errors and bad code smells, including +checking for null-able CharField field types, the use of brittle or deprecated +Django features (such as auto_now_add) as well as the absence of recommended +options in settings.py. It aims to encourage the development of high-quality +re-usable Django applications. + +Django Lint is currently implemented as a wrapper around PyLint. + + +%prep +%setup -q -n %{name} + + +%build +%{__python} setup.py build + + +%install +rm -rf %{buildroot} +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + +%{__mkdir} -pm 755 %{buildroot}%{_mandir}/man1 +%{__install} -pm 644 django-lint.1 %{buildroot}%{_mandir}/man1/ + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc README.rst COPYING +%{python_sitelib}/DjangoLint* +%{python_sitelib}/django_lint-0.0.0-py2.6.egg-info +%{_bindir}/* +%{_mandir}/man?/* + + +%changelog +* Mon Mar 29 2010 Matthias Runge 0.13-5 +- Fix execute permissions + +* Mon Mar 29 2010 Matthias Runge 0.13-4 +- Install man page + +* Sat Mar 27 2010 Matthias Runge 0.13-3 +- SPEC Fix: License is GPLv3+ + +* Mon Mar 01 2010 Matthias Runge 0.13-2 +- SPEC-Fixes (global instead of define), Source0 fixed + +* Tue Feb 02 2010 Matthias Runge 0.13-1 +- Update to version 0.13 + +* Sun Jan 03 2010 Matthias Runge 0.12-1 +- Version bump 0.12 + +* Fri Dec 4 2009 Matthias Runge 0.11-5 +- SPEC fix for mock build + +* Wed Dec 2 2009 Matthias Runge 0.11-4 +- SPEC fixes + +* Mon Nov 23 2009 Matthias Runge 0.11-1 +- Version 0.11 +- Initial RPM build diff --git a/import.log b/import.log new file mode 100644 index 0000000..809c02c --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +django-lint-0_13-5_fc12:HEAD:django-lint-0.13-5.fc12.src.rpm:1270320602 diff --git a/sources b/sources index e69de29..5b861a3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +374a639fd34c41b29d3a80156ea42b3d django-lint-0.13.tar.bz2 From 4cac162f680447f6990508ac237ad0a397b555d5 Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Sat, 3 Apr 2010 18:55:23 +0000 Subject: [PATCH 03/13] Initial import for F-13 --- .cvsignore | 1 + django-lint.spec | 92 ++++++++++++++++++++++++++++++++++++++++++++++++ import.log | 1 + sources | 1 + 4 files changed, 95 insertions(+) create mode 100644 django-lint.spec create mode 100644 import.log diff --git a/.cvsignore b/.cvsignore index e69de29..c7ac4aa 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +django-lint-0.13.tar.bz2 diff --git a/django-lint.spec b/django-lint.spec new file mode 100644 index 0000000..903c43f --- /dev/null +++ b/django-lint.spec @@ -0,0 +1,92 @@ +%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%endif + + + +Name: django-lint +Version: 0.13 +Release: 5%{?dist} +Summary: Analyzes Django code looking for bugs and signs of poor quality + +Group: Development/Debuggers +License: GPLv3+ +URL: http://chris-lamb.co.uk/projects/django-lint/ +Source0: http://chris-lamb.co.uk/releases/%{name}/%{name}-%{version}/%{name}-%{version}.tar.bz2 +BuildArch: noarch +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: python2-devel +Requires: Django +Requires: pylint + +%description +Django Lint is a static analysis tool that checks (or "lints") projects +and applications that use the Django web development framework. + +It reports on common programming errors and bad code smells, including +checking for null-able CharField field types, the use of brittle or deprecated +Django features (such as auto_now_add) as well as the absence of recommended +options in settings.py. It aims to encourage the development of high-quality +re-usable Django applications. + +Django Lint is currently implemented as a wrapper around PyLint. + + +%prep +%setup -q -n %{name} + + +%build +%{__python} setup.py build + + +%install +rm -rf %{buildroot} +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + +%{__mkdir} -pm 755 %{buildroot}%{_mandir}/man1 +%{__install} -pm 644 django-lint.1 %{buildroot}%{_mandir}/man1/ + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc README.rst COPYING +%{python_sitelib}/DjangoLint* +%{python_sitelib}/django_lint-0.0.0-py2.6.egg-info +%{_bindir}/* +%{_mandir}/man?/* + + +%changelog +* Mon Mar 29 2010 Matthias Runge 0.13-5 +- Fix execute permissions + +* Mon Mar 29 2010 Matthias Runge 0.13-4 +- Install man page + +* Sat Mar 27 2010 Matthias Runge 0.13-3 +- SPEC Fix: License is GPLv3+ + +* Mon Mar 01 2010 Matthias Runge 0.13-2 +- SPEC-Fixes (global instead of define), Source0 fixed + +* Tue Feb 02 2010 Matthias Runge 0.13-1 +- Update to version 0.13 + +* Sun Jan 03 2010 Matthias Runge 0.12-1 +- Version bump 0.12 + +* Fri Dec 4 2009 Matthias Runge 0.11-5 +- SPEC fix for mock build + +* Wed Dec 2 2009 Matthias Runge 0.11-4 +- SPEC fixes + +* Mon Nov 23 2009 Matthias Runge 0.11-1 +- Version 0.11 +- Initial RPM build diff --git a/import.log b/import.log new file mode 100644 index 0000000..94794cc --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +django-lint-0_13-5_fc12:F-13:django-lint-0.13-5.fc12.src.rpm:1270320882 diff --git a/sources b/sources index e69de29..5b861a3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +374a639fd34c41b29d3a80156ea42b3d django-lint-0.13.tar.bz2 From 75bece5419a003a565b6399df540f1eb0242d163 Mon Sep 17 00:00:00 2001 From: dmalcolm Date: Thu, 22 Jul 2010 01:07:57 +0000 Subject: [PATCH 04/13] - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild --- django-lint.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/django-lint.spec b/django-lint.spec index 903c43f..7e4f353 100644 --- a/django-lint.spec +++ b/django-lint.spec @@ -6,7 +6,7 @@ Name: django-lint Version: 0.13 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Analyzes Django code looking for bugs and signs of poor quality Group: Development/Debuggers @@ -63,6 +63,9 @@ rm -rf %{buildroot} %changelog +* Wed Jul 21 2010 David Malcolm - 0.13-6 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + * Mon Mar 29 2010 Matthias Runge 0.13-5 - Fix execute permissions From 7eb91984df7490dcf2f10499e8f26ea17344f70e Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Thu, 22 Jul 2010 05:21:03 +0000 Subject: [PATCH 05/13] Make wildcard more general to catch all files. --- django-lint.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/django-lint.spec b/django-lint.spec index 7e4f353..7269fe7 100644 --- a/django-lint.spec +++ b/django-lint.spec @@ -6,7 +6,7 @@ Name: django-lint Version: 0.13 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Analyzes Django code looking for bugs and signs of poor quality Group: Development/Debuggers @@ -57,12 +57,15 @@ rm -rf %{buildroot} %defattr(-,root,root,-) %doc README.rst COPYING %{python_sitelib}/DjangoLint* -%{python_sitelib}/django_lint-0.0.0-py2.6.egg-info +%{python_sitelib}/django_lint* %{_bindir}/* %{_mandir}/man?/* %changelog +* Thu Jul 22 2010 Matthias Runge - 0.13-7 +- Fix errors for rebuild + * Wed Jul 21 2010 David Malcolm - 0.13-6 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild From 96ca0369d1ced4c7fb243fe451589c4d20d784e2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 13:04:45 +0000 Subject: [PATCH 06/13] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - import.log | 1 - 4 files changed, 23 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch delete mode 100644 import.log diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index a768550..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: django-lint -# $Id$ -NAME := django-lint -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index baa94ef..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-13 diff --git a/import.log b/import.log deleted file mode 100644 index 94794cc..0000000 --- a/import.log +++ /dev/null @@ -1 +0,0 @@ -django-lint-0_13-5_fc12:F-13:django-lint-0.13-5.fc12.src.rpm:1270320882 From aa56f2b7e5174d7f6ebcd1ab35ed188a4822e780 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 13:04:46 +0000 Subject: [PATCH 07/13] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- import.log | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 import.log diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index a768550..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: django-lint -# $Id$ -NAME := django-lint -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/import.log b/import.log deleted file mode 100644 index 809c02c..0000000 --- a/import.log +++ /dev/null @@ -1 +0,0 @@ -django-lint-0_13-5_fc12:HEAD:django-lint-0.13-5.fc12.src.rpm:1270320602 From ca55359215e312d24c8b3535cbe7c2e81c2f9214 Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Sat, 31 Jul 2010 19:42:30 +0200 Subject: [PATCH 08/13] force rebuild --- django-lint.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/django-lint.spec b/django-lint.spec index 7269fe7..b252548 100644 --- a/django-lint.spec +++ b/django-lint.spec @@ -6,7 +6,7 @@ Name: django-lint Version: 0.13 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Analyzes Django code looking for bugs and signs of poor quality Group: Development/Debuggers @@ -63,6 +63,9 @@ rm -rf %{buildroot} %changelog +* Sat Jul 31 2010 Matthias Runge - 0.13-8 +- Rebuild + * Thu Jul 22 2010 Matthias Runge - 0.13-7 - Fix errors for rebuild From 5f860f0c65e283ee0cb4ceae76261be6b95e41c5 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Tue, 8 Feb 2011 08:08:34 -0600 Subject: [PATCH 09/13] - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild --- django-lint.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/django-lint.spec b/django-lint.spec index b252548..c435e69 100644 --- a/django-lint.spec +++ b/django-lint.spec @@ -6,7 +6,7 @@ Name: django-lint Version: 0.13 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Analyzes Django code looking for bugs and signs of poor quality Group: Development/Debuggers @@ -63,6 +63,9 @@ rm -rf %{buildroot} %changelog +* Tue Feb 08 2011 Fedora Release Engineering - 0.13-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + * Sat Jul 31 2010 Matthias Runge - 0.13-8 - Rebuild From 05d1cbe37b55e03c6e625943123a0f65c0db29ab Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Mon, 28 Nov 2011 08:44:55 +0100 Subject: [PATCH 10/13] fix for bz 652188 --- django-lint-type-error-iterable.patch | 14 ++++++++++++++ django-lint.spec | 7 +++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 django-lint-type-error-iterable.patch diff --git a/django-lint-type-error-iterable.patch b/django-lint-type-error-iterable.patch new file mode 100644 index 0000000..ea01dbe --- /dev/null +++ b/django-lint-type-error-iterable.patch @@ -0,0 +1,14 @@ +diff -ur a/django-lint/DjangoLint/AstCheckers/settings.py b/django-lint/DjangoLint/AstCheckers/settings.py +--- a/django-lint/DjangoLint/AstCheckers/settings.py 2010-01-21 15:29:22.000000000 +0100 ++++ b/django-lint/DjangoLint/AstCheckers/settings.py 2011-11-25 14:10:37.542460795 +0100 +@@ -74,6 +74,10 @@ + xs = safe_infer(ass).get_children() + except AttributeError: + return ++ try: ++ xs_iterable = iter(xs) ++ except TypeError: ++ return + + return [(x, x.value) for x in xs if isinstance(safe_infer(x), astng.Const)] + diff --git a/django-lint.spec b/django-lint.spec index c435e69..20eb2f3 100644 --- a/django-lint.spec +++ b/django-lint.spec @@ -6,7 +6,7 @@ Name: django-lint Version: 0.13 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Analyzes Django code looking for bugs and signs of poor quality Group: Development/Debuggers @@ -35,7 +35,7 @@ Django Lint is currently implemented as a wrapper around PyLint. %prep %setup -q -n %{name} - +%patch0 -p2 %build %{__python} setup.py build @@ -63,6 +63,9 @@ rm -rf %{buildroot} %changelog +* Mon Nov 28 2011 Matthias Runge - 0.13-10 +- Fix for bz 652188 utils.py:40:is_model:TypeError: '_Yes' object is not iterable + * Tue Feb 08 2011 Fedora Release Engineering - 0.13-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild From 3c644c3c7bf1ff96fef7a406a760d8d0aa86ab4e Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Mon, 28 Nov 2011 08:46:04 +0100 Subject: [PATCH 11/13] forgotten patch reference --- django-lint.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django-lint.spec b/django-lint.spec index 20eb2f3..2462c6e 100644 --- a/django-lint.spec +++ b/django-lint.spec @@ -16,6 +16,8 @@ Source0: http://chris-lamb.co.uk/releases/%{name}/%{name}-%{version}/%{na BuildArch: noarch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +Patch0: django-lint-type-error-iterable.patch + BuildRequires: python2-devel Requires: Django Requires: pylint From 2f8a9d28e211de20d8eef7dba3d95d196842bf00 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 12 Jan 2012 18:44:37 -0600 Subject: [PATCH 12/13] - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild --- django-lint.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/django-lint.spec b/django-lint.spec index 2462c6e..03c72d3 100644 --- a/django-lint.spec +++ b/django-lint.spec @@ -6,7 +6,7 @@ Name: django-lint Version: 0.13 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Analyzes Django code looking for bugs and signs of poor quality Group: Development/Debuggers @@ -65,6 +65,9 @@ rm -rf %{buildroot} %changelog +* Fri Jan 13 2012 Fedora Release Engineering - 0.13-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + * Mon Nov 28 2011 Matthias Runge - 0.13-10 - Fix for bz 652188 utils.py:40:is_model:TypeError: '_Yes' object is not iterable From 24bf55789030be568cc4b65455c7c50394de52a6 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Wed, 4 Jun 2014 19:32:26 +0200 Subject: [PATCH 13/13] 2014-06-04 - This package was already retired in pkgdb/blocked in koji, but no dead.package file existed. The original retirement reason is unclear. --- .gitignore | 1 - dead.package | 1 + django-lint-type-error-iterable.patch | 14 ---- django-lint.spec | 112 -------------------------- sources | 1 - 5 files changed, 1 insertion(+), 128 deletions(-) delete mode 100644 .gitignore create mode 100644 dead.package delete mode 100644 django-lint-type-error-iterable.patch delete mode 100644 django-lint.spec delete mode 100644 sources diff --git a/.gitignore b/.gitignore deleted file mode 100644 index c7ac4aa..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -django-lint-0.13.tar.bz2 diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..5784d07 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +2014-06-04 - This package was already retired in pkgdb/blocked in koji, but no dead.package file existed. The original retirement reason is unclear. diff --git a/django-lint-type-error-iterable.patch b/django-lint-type-error-iterable.patch deleted file mode 100644 index ea01dbe..0000000 --- a/django-lint-type-error-iterable.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff -ur a/django-lint/DjangoLint/AstCheckers/settings.py b/django-lint/DjangoLint/AstCheckers/settings.py ---- a/django-lint/DjangoLint/AstCheckers/settings.py 2010-01-21 15:29:22.000000000 +0100 -+++ b/django-lint/DjangoLint/AstCheckers/settings.py 2011-11-25 14:10:37.542460795 +0100 -@@ -74,6 +74,10 @@ - xs = safe_infer(ass).get_children() - except AttributeError: - return -+ try: -+ xs_iterable = iter(xs) -+ except TypeError: -+ return - - return [(x, x.value) for x in xs if isinstance(safe_infer(x), astng.Const)] - diff --git a/django-lint.spec b/django-lint.spec deleted file mode 100644 index 03c72d3..0000000 --- a/django-lint.spec +++ /dev/null @@ -1,112 +0,0 @@ -%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%endif - - - -Name: django-lint -Version: 0.13 -Release: 11%{?dist} -Summary: Analyzes Django code looking for bugs and signs of poor quality - -Group: Development/Debuggers -License: GPLv3+ -URL: http://chris-lamb.co.uk/projects/django-lint/ -Source0: http://chris-lamb.co.uk/releases/%{name}/%{name}-%{version}/%{name}-%{version}.tar.bz2 -BuildArch: noarch -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) - -Patch0: django-lint-type-error-iterable.patch - -BuildRequires: python2-devel -Requires: Django -Requires: pylint - -%description -Django Lint is a static analysis tool that checks (or "lints") projects -and applications that use the Django web development framework. - -It reports on common programming errors and bad code smells, including -checking for null-able CharField field types, the use of brittle or deprecated -Django features (such as auto_now_add) as well as the absence of recommended -options in settings.py. It aims to encourage the development of high-quality -re-usable Django applications. - -Django Lint is currently implemented as a wrapper around PyLint. - - -%prep -%setup -q -n %{name} -%patch0 -p2 - -%build -%{__python} setup.py build - - -%install -rm -rf %{buildroot} -%{__python} setup.py install -O1 --skip-build --root %{buildroot} - -%{__mkdir} -pm 755 %{buildroot}%{_mandir}/man1 -%{__install} -pm 644 django-lint.1 %{buildroot}%{_mandir}/man1/ - - -%clean -rm -rf %{buildroot} - - -%files -%defattr(-,root,root,-) -%doc README.rst COPYING -%{python_sitelib}/DjangoLint* -%{python_sitelib}/django_lint* -%{_bindir}/* -%{_mandir}/man?/* - - -%changelog -* Fri Jan 13 2012 Fedora Release Engineering - 0.13-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Mon Nov 28 2011 Matthias Runge - 0.13-10 -- Fix for bz 652188 utils.py:40:is_model:TypeError: '_Yes' object is not iterable - -* Tue Feb 08 2011 Fedora Release Engineering - 0.13-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Sat Jul 31 2010 Matthias Runge - 0.13-8 -- Rebuild - -* Thu Jul 22 2010 Matthias Runge - 0.13-7 -- Fix errors for rebuild - -* Wed Jul 21 2010 David Malcolm - 0.13-6 -- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild - -* Mon Mar 29 2010 Matthias Runge 0.13-5 -- Fix execute permissions - -* Mon Mar 29 2010 Matthias Runge 0.13-4 -- Install man page - -* Sat Mar 27 2010 Matthias Runge 0.13-3 -- SPEC Fix: License is GPLv3+ - -* Mon Mar 01 2010 Matthias Runge 0.13-2 -- SPEC-Fixes (global instead of define), Source0 fixed - -* Tue Feb 02 2010 Matthias Runge 0.13-1 -- Update to version 0.13 - -* Sun Jan 03 2010 Matthias Runge 0.12-1 -- Version bump 0.12 - -* Fri Dec 4 2009 Matthias Runge 0.11-5 -- SPEC fix for mock build - -* Wed Dec 2 2009 Matthias Runge 0.11-4 -- SPEC fixes - -* Mon Nov 23 2009 Matthias Runge 0.11-1 -- Version 0.11 -- Initial RPM build diff --git a/sources b/sources deleted file mode 100644 index 5b861a3..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -374a639fd34c41b29d3a80156ea42b3d django-lint-0.13.tar.bz2