From 555ba799e89a9eabad3380bb31d694bca1da6d09 Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Sat, 3 Apr 2010 18:53:30 +0000 Subject: [PATCH 1/4] initial commit for F-12 --- .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..885d23a --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +django-lint-0_13-5_fc12:F-12:django-lint-0.13-5.fc12.src.rpm:1270320753 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 336695f14f72a3dc55063e35478142c03550a398 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 8 May 2010 01:47:17 +0000 Subject: [PATCH 2/4] Initialize branch EL-6 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..46381b9 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +EL-6 From 24d6c2b85faafc30f6480aade539c4ade164b77b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 13:04:47 +0000 Subject: [PATCH 3/4] 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 46381b9..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -EL-6 diff --git a/import.log b/import.log deleted file mode 100644 index 885d23a..0000000 --- a/import.log +++ /dev/null @@ -1 +0,0 @@ -django-lint-0_13-5_fc12:F-12:django-lint-0.13-5.fc12.src.rpm:1270320753 From 3f8c7960dbd0293bc7662683ec9f437074581ffb Mon Sep 17 00:00:00 2001 From: Till Maas Date: Wed, 5 Apr 2017 22:19:56 +0200 Subject: [PATCH 4/4] 2017-04-05: Retired because it depends on python-logilab-common, which was retired, because it was orphaned for more than six weeks. --- .gitignore | 1 - dead.package | 3 ++ django-lint.spec | 92 ------------------------------------------------ sources | 1 - 4 files changed, 3 insertions(+), 94 deletions(-) delete mode 100644 .gitignore create mode 100644 dead.package 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..e295ac3 --- /dev/null +++ b/dead.package @@ -0,0 +1,3 @@ +2017-04-05: Retired because it depends on python-logilab-common, which was +retired, because it was orphaned for more than six weeks. + diff --git a/django-lint.spec b/django-lint.spec deleted file mode 100644 index 903c43f..0000000 --- a/django-lint.spec +++ /dev/null @@ -1,92 +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: 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/sources b/sources deleted file mode 100644 index 5b861a3..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -374a639fd34c41b29d3a80156ea42b3d django-lint-0.13.tar.bz2