[Python-modules-commits] [python-mongoengine] 05/13: Python 3 package and switch to pybuild

Orestis Ioannou oorestisime-guest at moszumanska.debian.org
Wed Mar 9 01:14:15 UTC 2016


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

oorestisime-guest pushed a commit to branch master
in repository python-mongoengine.

commit cf464102a670006d907d753c4f7dff6f1a464c61
Author: Orestis Ioannou <orestis at oioannou.com>
Date:   Wed Mar 9 01:48:59 2016 +0100

    Python 3 package and switch to pybuild
---
 debian/control | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++-------
 debian/rules   | 19 +++++++---------
 2 files changed, 69 insertions(+), 19 deletions(-)

diff --git a/debian/control b/debian/control
index a9461f6..8b4f64a 100644
--- a/debian/control
+++ b/debian/control
@@ -2,27 +2,80 @@ Source: python-mongoengine
 Section: python
 Priority: optional
 Maintainer: Janos Guljas <janos at resenje.org>
-Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7.0.50), python-all, python-setuptools,
- python-sphinx, python-gridfs, python-pymongo
-Standards-Version: 3.9.3
+Uploaders:
+ Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>,
+Build-Depends:
+ debhelper (>= 9),
+ dh-python,
+ python-all,
+ python-blinker,
+ python-coverage,
+ python-dateutil,
+ python-gridfs,
+ python-nose,
+ python-pillow,
+ python-pymongo,
+ python-rednose,
+ python-setuptools,
+ python-sphinx,
+ python3-all,
+ python3-blinker,
+ python3-coverage,
+ python3-dateutil,
+ python3-gridfs,
+ python3-nose,
+ python3-pillow,
+ python3-pymongo,
+ python3-rednose,
+ python3-setuptools,
+ python3-sphinx,
+Standards-Version: 3.9.7
 Homepage: http://mongoengine.org/
 Vcs-Git: git://anonscm.debian.org/python-modules/packages/python-mongoengine.git
 Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-mongoengine.git
 
 Package: python-mongoengine
 Architecture: all
-Depends: ${misc:Depends}, ${python:Depends}, python-gridfs, python-pymongo (>= 1.1)
-Recommends: python-django
-Provides: ${python:Provides}
+Depends:
+ python-gridfs,
+ python-pymongo (>= 1.1),
+ ${misc:Depends},
+ ${python:Depends},
+Recommends:
+ python-django,
+Provides:
+ ${python:Provides},
 Description: Python Document-Object Mapper for working with MongoDB
  MongoEngine is a Document-Object Mapper (think ORM, but for document
  databases) for working with MongoDB from Python. It uses a simple declarative
  API, similar to the Django ORM.
+ .
+ This is the python 2 package.
+
+Package: python3-mongoengine
+Architecture: all
+Depends:
+ python3-gridfs,
+ python3-pymongo (>= 2.7),
+ ${misc:Depends},
+ ${python:Depends},
+Recommends:
+ python3-django,
+Provides:
+ ${python:Provides},
+Description: Python 3 Document-Object Mapper for working with MongoDB
+ MongoEngine is a Document-Object Mapper (think ORM, but for document
+ databases) for working with MongoDB from Python. It uses a simple declarative
+ API, similar to the Django ORM.
+ .
+ This is the python 3 package.
 
 Package: python-mongoengine-doc
 Architecture: all
-Depends: ${misc:Depends}, libjs-jquery, libjs-underscore
+Depends:
+ libjs-jquery,
+ libjs-underscore,
+ ${misc:Depends},
 Section: doc
 Description: Python Document-Object Mapper for working with MongoDB (documentation)
  MongoEngine is a Document-Object Mapper (think ORM, but for document
diff --git a/debian/rules b/debian/rules
index 677d0cc..de9a486 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,16 +1,13 @@
 #!/usr/bin/make -f
 
-%:
-	dh $@ --with python2
+export PYBUILD_NAME=mongoengine
 
-override_dh_auto_build:
-	dh_auto_build
-	cp -r docs docs.debian
-	make -C docs.debian html
+%:
+	dh $@ --with sphinxdoc,python2,python3 --buildsystem=pybuild
 
-override_dh_auto_clean:
-	rm -rf docs.debian
-	dh_auto_clean
+override_dh_autotest:
+	python setup.py nosetests
 
-override_dh_installchangelogs:
-	dh_installchangelogs docs/changelog.rst
+override_dh_auto_build:
+	cd docs && make html
+	dh_auto_build
\ No newline at end of file

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



More information about the Python-modules-commits mailing list