From b1d13cc7829bf9c55e1c5939291fd29941a18a11 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Thu, 26 Jun 2014 19:52:29 +0800 Subject: [PATCH] Added initial debian folder. --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 35 +++++++++++++++++++++++++++++++++ debian/copyright | 36 ++++++++++++++++++++++++++++++++++ debian/gbp.conf | 9 +++++++++ debian/rules | 45 +++++++++++++++++++++++++++++++++++++++++++ debian/source/format | 1 + debian/source/options | 1 + debian/watch | 3 +++ 9 files changed, 136 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/options create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9c467d4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-django-pyscss (1.0.1-1) unstable; urgency=medium + + * Initial release. (Closes: #752764) + + -- Thomas Goirand Thu, 26 Jun 2014 17:02:53 +0800 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..59e4aa8 --- /dev/null +++ b/debian/control @@ -0,0 +1,35 @@ +Source: python-django-pyscss +Section: python +Priority: optional +Maintainer: PKG OpenStack +Uploaders: Julien Danjou , + Thomas Goirand , + Mehdi Abaakouk , + Gonéri Le Bouder +Build-Depends: debhelper (>= 9), + python-all (>= 2.6.6-3~), + python-compressor, + python-django-discover-runner, + python-nose, + python-pyscss, + python-setuptools +Standards-Version: 3.9.5 +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-django-pyscss.git +Vcs-Git: git://anonscm.debian.org/openstack/python-django-pyscss.git +Homepage: https://github.com/fusionbox/django-pyscss + +Package: python-django-pyscss +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: ${misc:Depends}, ${python:Depends} +Description: makes it easier to use PySCSS in Django + Django-pyscss is a collection of tools for making it easier to use pyScss + within Django. It overwrites the import system to use Django's staticfiles + app. This way you can import SCSS files from any app (or any file that's + findable by the STATICFILES_FINDERS) with no hassle. It provides a + django-compressor precompile filter class so that you can easily use pyScss + with django-compressor without having to bust out to the shell. This has the + added benefit of removing the need to configure pyScss through its + command-line arguments AND makes it possible for the exceptions and warnings + that pyScss emits to bubble up to your process so that you can actually know + what's going on. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..504bed8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,36 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: django-pyscss +Source: https://github.com/fusionbox/django-pyscss + +Files: debian/* +Copyright: (c) 2014, Thomas Goirand +License: BSD-2-clause + +Files: * +Copyright: (c) 2013, Fusionbox, Inc. + Rocky Meza + Gavin Wahl + Antoine Catton +License: BSD-2-clause + +License: BSD-2-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..fd8ec27 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,9 @@ +[DEFAULT] +upstream-branch = master +debian-branch = debian/unstable +upstream-tag = %(version)s +compression = xz + +[git-buildpackage] +export-dir = ../build-area/ + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c32b495 --- /dev/null +++ b/debian/rules @@ -0,0 +1,45 @@ +#!/usr/bin/make -f + +PYTHONS:=$(shell pyversions -vr) +#PYTHON3S:=$(shell py3versions -vr) + +UPSTREAM_GIT = git://github.com/fusionbox/django-pyscss.git +-include /usr/share/openstack-pkg-tools/pkgos.make + +%: + dh $@ --buildsystem=python_distutils --with python2 + +override_dh_clean: + dh_clean -O--buildsystem=python_distutils + rm -f testproject/__init__.pyc testproject/testproject/__init__.pyc testproject/testproject/settings.pyc + +override_dh_install: + set -e && for pyvers in $(PYTHONS); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python-django-pyscss; \ + done +# set -e && for pyvers in $(PYTHON3S); do \ +# python$$pyvers setup.py install --install-layout=deb \ +# --root $(CURDIR)/debian/python3-django-pyscss; \ +# done + +override_dh_auto_test: +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) + set -e && for pyvers in $(PYTHONS) $(PYTHON3S); do \ + echo "===> Testing with python$$pyvers" ; \ + PYTHON=python$$pyvers python$$pyvers setup.py test ; \ + done +endif + +override_dh_clean: + dh_clean -O--buildsystem=python_distutils + rm -rf build + +# Commands not to run +override_dh_installcatalogs: +override_dh_installemacsen override_dh_installifupdown: +override_dh_installinfo override_dh_installmenu override_dh_installmime: +override_dh_installmodules override_dh_installlogcheck: +override_dh_installpam override_dh_installppp override_dh_installudev override_dh_installwm: +override_dh_installxfonts override_dh_gconf override_dh_icons override_dh_perl override_dh_usrlocal: + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 0000000..cb61fa5 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "^[^/]*[.]egg-info/" diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..27c4fb1 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://pypi.python.org/packages/source/d/django-pyscss django-pyscss-(.*).tar.gz +