Import Debian changes 0.4.0+8+gd58c489-3

django-ratelimit (0.4.0+8+gd58c489-3) unstable; urgency=low

  Applied suggestions from Raphaël Hertzog:
  * cleaned override_dh_auto_test
  * added DEP-3 header to patch
  * moved back to unstable

django-ratelimit (0.4.0+8+gd58c489-2) experimental; urgency=low

  * Added python3 support and override_dh_auto_test
    Switched to pybuild dh buildsystem
    Try to use uscan to get orig source
    Closes: #755611

django-ratelimit (0.4.0+8+gd58c489-1) unstable; urgency=low

  * Initial package
    From upstream commit: d58c489797405db348b30dec6103dcfff73160ec
    Closes: #733566
This commit is contained in:
Marco Bardelli 2014-07-29 09:22:02 +02:00 committed by Frédéric Péters
parent 08b3d457c0
commit cf5197e703
12 changed files with 170 additions and 0 deletions

25
debian/changelog vendored Normal file
View File

@ -0,0 +1,25 @@
django-ratelimit (0.4.0+8+gd58c489-3) unstable; urgency=low
Applied suggestions from Raphaël Hertzog:
* cleaned override_dh_auto_test
* added DEP-3 header to patch
* moved back to unstable
-- Marco Bardelli <bardelli.marco@gmail.com> Tue, 29 Jul 2014 09:22:02 +0200
django-ratelimit (0.4.0+8+gd58c489-2) experimental; urgency=low
* Added python3 support and override_dh_auto_test
Switched to pybuild dh buildsystem
Try to use uscan to get orig source
Closes: #755611
-- Marco Bardelli <bardelli.marco@gmail.com> Thu, 24 Jul 2014 03:00:28 +0200
django-ratelimit (0.4.0+8+gd58c489-1) unstable; urgency=low
* Initial package
From upstream commit: d58c489797405db348b30dec6103dcfff73160ec
Closes: #733566
-- Marco Bardelli <bardelli.marco@gmail.com> Mon, 30 Dec 2013 02:26:13 +0100

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

40
debian/control vendored Normal file
View File

@ -0,0 +1,40 @@
Source: django-ratelimit
Maintainer: Marco Bardelli <bardelli.marco@gmail.com>
Section: python
Priority: optional
Build-Depends: debhelper (>= 9), quilt, dh-python,
python-all (>= 2.6.6-3~), python3-all,
python-sphinx, python-setuptools, python3-setuptools,
python-django, python3-django
Standards-Version: 3.9.5
X-Python-Version: >= 2.6
Vcs-Git: git://anonscm.debian.org/collab-maint/django-ratelimit.git
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/django-ratelimit.git
Homepage: https://github.com/jsocol/django-ratelimit
Package: python-django-ratelimit
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, python-django (>= 1.4)
Description: Cache-based rate-limiting for Django
Django Ratelimit provides a decorator to rate-limit views. Limiting can
be based on IP address or a field in the request--either a GET or POST
variable.
Package: python3-django-ratelimit
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}, python3-django (>= 1.4)
Description: Cache-based rate-limiting for Django
Django Ratelimit provides a decorator to rate-limit views. Limiting can
be based on IP address or a field in the request--either a GET or POST
variable.
Package: python-django-ratelimit-doc
Section: doc
Architecture: all
Depends: ${misc:Depends}, ${sphinxdoc:Depends}
Description: Cache-based rate-limiting for Django (documentation)
Django Ratelimit provides a decorator to rate-limit views. Limiting can
be based on IP address or a field in the request--either a GET or POST
variable.
.
This package contains the documentation.

21
debian/copyright vendored Normal file
View File

@ -0,0 +1,21 @@
Copyright (c) 2013, James Socol
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
See: /usr/share/common-licenses/Apache-2.0
The Debian packaging is:
Copyright (C) 2013 Marco Bardelli <bardelli.marco@gmail.com>
and is licensed under GPLv3, see /usr/share/common-licenses/GPL-3

View File

@ -0,0 +1,28 @@
Subject: Avoid boring warning during test
Author: Marco Bardelli <bardelli.marco@gmail.com>
Description: Fix MIDDLEWARE_CLASSES to quiet warnings
During test execution on Django 1.7 we warned about
some MIDDLEWARE_CLASSES default values changed like this:
.
System check identified some issues:
WARNINGS:
?: (1_7.W001) MIDDLEWARE_CLASSES is not set.
HINT: Django 1.7 changed the global defaults for the MIDDLEWARE_CLASSES.
django.contrib.sessions.middleware.SessionMiddleware,
django.contrib.auth.middleware.AuthenticationMiddleware, and
django.contrib.messages.middleware.MessageMiddleware were
removed from the defaults. If your project needs these middleware
then you should configure this setting.
.
Really useless for the test assertions.
Last-Update: 2014-07-29
--- a/test_settings.py
+++ b/test_settings.py
@@ -19,3 +19,5 @@ DATABASES = {
'NAME': 'test.db',
},
}
+
+MIDDLEWARE_CLASSES = ()

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
01_fix_test_settings.diff

View File

@ -0,0 +1 @@
docs/_build/html usr/share/doc/python-django-ratelimit-doc/html

1
debian/python-django-ratelimit.docs vendored Normal file
View File

@ -0,0 +1 @@
README.rst

48
debian/rules vendored Executable file
View File

@ -0,0 +1,48 @@
#!/usr/bin/make -f
DH_VERBOSE = 1
export PYBUILD_NAME=django-ratelimit
# upstream version part in debian/changelog is generate with:
# $ git describe --tags COMMIT_FOR_RELEASE | sed -e 's,^v,,' -e 's,-,+,g'
# where COMMIT_FOR_RELEASE is the commit put in prinstine-tar branch
# we need to maintain up-to-date pristine-tar branch
orig_version=$(shell dpkg-parsechangelog | grep ^Version | cut -d' ' -f2 | cut -d- -f1)
pkgname=$(shell dpkg-parsechangelog | grep ^Source | cut -d' ' -f2)
# If we are w/o .git dir try to wget orig source.
# this is to maintain up-to-date, this is not a good solution
upstream_commit_release="d58c489797405db348b30dec6103dcfff73160ec"
upstream_base_url="https://github.com/jsocol/django-ratelimit/archive"
%:
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
override_dh_auto_build:
dh_testdir
$(MAKE) -C docs html
dh_auto_build
override_dh_auto_test:
dh_testdir
@echo test with python3
PYTHONPATH="." DJANGO_SETTINGS_MODULE="test_settings" \
python3 $(shell which django-admin) test ratelimit
@echo test with python2
PYTHONPATH="." DJANGO_SETTINGS_MODULE="test_settings" \
python2 $(shell which django-admin) test ratelimit
override_dh_clean:
$(MAKE) -C docs clean
rm -rf docs/_build *.egg-info
dh_clean
get-orig-source:
dh_testdir
uscan --no-verbose --download-current-version || $(MAKE) -f debian/rules git-orig-source
git-orig-source:
dh_testdir
if test -d .git ; then \
pristine-tar checkout ../$(pkgname)_$(orig_version).orig.tar.gz ; \
else \
wget -O ../$(pkgname)_$(orig_version).orig.tar.gz \
"$(upstream_base_url)/$(upstream_commit_release).tar.gz" ; \
fi

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

1
debian/source/options vendored Normal file
View File

@ -0,0 +1 @@
extend-diff-ignore="\.egg-info"

2
debian/watch vendored Normal file
View File

@ -0,0 +1,2 @@
version=3
https://github.com/jsocol/django-ratelimit/tags .*/v(\d[\d\.]*)\.tar\.gz