[Python-modules-commits] [django-modeltranslation] 03/05: Initial packaging

Raphaël Hertzog hertzog at moszumanska.debian.org
Mon Jun 27 21:05:59 UTC 2016


This is an automated email from the git hooks/post-receive script.

hertzog pushed a commit to branch master
in repository django-modeltranslation.

commit e4210c9c94f64d58fa97796b9a5ad503ca5a5b2f
Author: Sophie Brun <sophie at freexian.com>
Date:   Mon Jun 27 11:17:14 2016 +0200

    Initial packaging
---
 debian/changelog                               |  5 +++
 debian/compat                                  |  1 +
 debian/control                                 | 54 +++++++++++++++++++++++
 debian/copyright                               | 61 ++++++++++++++++++++++++++
 debian/python-django-modeltranslation-doc.docs |  3 ++
 debian/rules                                   | 13 ++++++
 debian/source/format                           |  1 +
 debian/watch                                   |  9 ++++
 8 files changed, 147 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..31029d7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+django-modeltranslation (0.11-1) unstable; urgency=medium
+
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+
+ -- Sophie Brun <sophie at freexian.com>  Mon, 27 Jun 2016 11:20:05 +0200
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..a02082d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,54 @@
+Source: django-modeltranslation
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Sophie Brun <sophie at freexian.com>
+Build-Depends: debhelper (>=9),dh-python,python-all (>= 2.6.6-3~),python3-all, python-sphinx, python-django
+Standards-Version: 3.9.8
+Homepage: https://github.com/deschler/django-modeltranslation/
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
+#Vcs-Git: git://anonscm.debian.org/collab-maint/django-modeltranslation.git
+#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/django-modeltranslation.git
+
+Package: python-django-modeltranslation
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Suggests: python-django-modeltranslation-doc
+Description: Translation models for Django applications (Python 2)
+ This package contains translates Django models using a registration approach.
+ The modeltranslation application can be used to translate dynamic content of
+ existing models to an arbitrary number of languages without having to change
+ the original model classes. It uses a registration approach (comparable to
+ Django's admin app) to be able to add translations to existing or new projects
+ and is fully integrated into the Django admin backend.
+ .
+ This package installs the library for Python 2.
+
+Package: python3-django-modeltranslation
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Suggests: python-django-modeltranslation-doc
+Description: Translation models for Django applications (Python 3)
+ This package contains translates Django models using a registration approach.
+ The modeltranslation application can be used to translate dynamic content of
+ existing models to an arbitrary number of languages without having to change
+ the original model classes. It uses a registration approach (comparable to
+ Django's admin app) to be able to add translations to existing or new projects
+ and is fully integrated into the Django admin backend.
+ .
+ This package installs the library for Python 3.
+
+Package: python-django-modeltranslation-doc
+Architecture: all
+Section: doc
+Depends: ${sphinxdoc:Depends}, ${misc:Depends}
+Description: Translation models for Django applications (common documentation)
+ This package contains translates Django models using a registration approach.
+ The modeltranslation application can be used to translate dynamic content of
+ existing models to an arbitrary number of languages without having to change
+ the original model classes. It uses a registration approach (comparable to
+ Django's admin app) to be able to add translations to existing or new projects
+ and is fully integrated into the Django admin backend.
+ .
+ This is the common documentation package.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a767a29
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,61 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: django-modeltranslation
+Source: https://github.com/deschler/django-modeltranslation
+
+Files: *
+Copyright: 2009-2015 Peter Eschler <peschler at gmail.com>
+           2009-2015 Dirk Eschler <eschler at gmail.com>
+           2009-2015 Jacek Tomaszewski <jacek.tomek at gmail.com>
+License: BSD-3-clause
+
+Files: modeltranslation/static/modeltranslation/css/tabbed_translation_fields.css
+Copyright: 2010 jQuery UI Authors (http://jqueryui.com/about)
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Files: debian/*
+Copyright: 2016 Sophie Brun <sophie at freexian.com>
+License: BSD-3-clause
+
+License: BSD-3-clause
+ All rights reserved.
+ .
+ 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.
+    * Neither the name of the author nor the names of its contributors may be
+      used to endorse or promote products derived from this software without
+      specific prior written permission.
+ .
+ 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 OWNER 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/python-django-modeltranslation-doc.docs b/debian/python-django-modeltranslation-doc.docs
new file mode 100644
index 0000000..f815fbb
--- /dev/null
+++ b/debian/python-django-modeltranslation-doc.docs
@@ -0,0 +1,3 @@
+AUTHORS.rst
+README.rst
+build/html
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8fc8466
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=django-modeltranslation
+
+%:
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH=. sphinx-build -b html -N docs/modeltranslation build/html
+
+override_dh_auto_test:
+	python ./runtests.py
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/watch b/debian/watch
new file mode 100644
index 0000000..fbd27df
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,9 @@
+version=4
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%django-modeltranslation-$1.tar.gz%, \
+uversionmangle=s/rc/~rc/" \
+   https://github.com/deschler/django-modeltranslation/tags \
+   (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate
+
+# PyPI
+# https://pypi.python.org/packages/source/<initial>/django-modeltranslation/ \
+#   django-modeltranslation-(.+)\.tar\.gz debian uupdate

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-modeltranslation.git



More information about the Python-modules-commits mailing list