forwarded 645164 tag 645164 +patch thanks Hey,
> 1.0.2 version of python-simplemediawiki requires python-iso8601, which > is not in python-simplemediawiki's dependencies. The upstream project isn't right with it's python code. I send a pull request, that changes from distutils to setuptools. After this change debian can get the propper dependencies. See status of the pull request: https://github.com/ianweller/python-simplemediawiki/pull/3 I also create a debdiff for the debian package, that fixes this bug. > After 1.1, python-simplemediawiki requires kitchen, but doesn't > require python-iso8601 anymore. kitchen is currently not in > packages.debian.org. This is another version, it must be fixed, when the new version get into debian. sandro
diff -Nru python-simplemediawiki-1.0.2/debian/changelog python-simplemediawiki-1.0.2/debian/changelog --- python-simplemediawiki-1.0.2/debian/changelog 2011-02-13 02:58:52.000000000 +0100 +++ python-simplemediawiki-1.0.2/debian/changelog 2011-12-03 17:57:06.000000000 +0100 @@ -1,3 +1,12 @@ +python-simplemediawiki (1.0.2-1.1) unstable; urgency=low + + * Non-maintainer upload. + * using dh_python2 instead of dh_pysupport, to get proper dependencies + * Fix "python-simplemediawiki does not have proper dependencies" + using setuptools and install_requires (Closes: #645164) + + -- Sandro Knauß <b...@sandroknauss.de> Sat, 03 Dec 2011 15:42:02 +0100 + python-simplemediawiki (1.0.2-1) unstable; urgency=low * Initial release. (Closes: #613133) diff -Nru python-simplemediawiki-1.0.2/debian/control python-simplemediawiki-1.0.2/debian/control --- python-simplemediawiki-1.0.2/debian/control 2011-02-13 02:58:52.000000000 +0100 +++ python-simplemediawiki-1.0.2/debian/control 2011-12-03 17:46:13.000000000 +0100 @@ -2,7 +2,7 @@ Section: python Priority: extra Maintainer: Benjamin Mako Hill <m...@debian.org> -Build-Depends: cdbs, debhelper (>= 7.0.50~), python (>=2.6), python-support +Build-Depends: cdbs, debhelper (>= 7.0.50~), python (>=2.6), python-setuptools, python-iso8601 Standards-Version: 3.9.1 Homepage: https://github.com/ianweller/python-simplemediawiki XS-Python-Version: >= 2.6 diff -Nru python-simplemediawiki-1.0.2/debian/patches/0007-using-setuptools.patch python-simplemediawiki-1.0.2/debian/patches/0007-using-setuptools.patch --- python-simplemediawiki-1.0.2/debian/patches/0007-using-setuptools.patch 1970-01-01 01:00:00.000000000 +0100 +++ python-simplemediawiki-1.0.2/debian/patches/0007-using-setuptools.patch 2011-12-03 16:19:30.000000000 +0100 @@ -0,0 +1,32 @@ +From d4e3dfb996596208b8dfcd34bd519c5a425ea2e7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Sandro=20Knau=C3=9F?= <b...@sandroknauss.de> +Date: Sat, 3 Dec 2011 15:27:27 +0100 +Subject: [PATCH] using setuptools, if available + +--- + setup.py | 7 +++++-- + 1 files changed, 5 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 316b91f..e2d3e3f 100644 +--- a/setup.py ++++ b/setup.py +@@ -1,4 +1,8 @@ +-from distutils.core import setup ++try: ++ from setuptools import setup ++except ImportError: ++ from distutils.core import setup ++ + setup(name='simplemediawiki', + version='1.0.2', + description='Extremely low-level wrapper to the MediaWiki API', +@@ -11,7 +15,7 @@ + 'License :: OSI Approved :: GNU Library or Lesser General Public ' + 'License (LGPL)', + ], +- requires=[ ++ install_requires=[ + 'iso8601', + ], + py_modules=['simplemediawiki']) diff -Nru python-simplemediawiki-1.0.2/debian/patches/series python-simplemediawiki-1.0.2/debian/patches/series --- python-simplemediawiki-1.0.2/debian/patches/series 2011-02-13 02:54:35.000000000 +0100 +++ python-simplemediawiki-1.0.2/debian/patches/series 2011-12-03 15:43:56.000000000 +0100 @@ -4,3 +4,4 @@ 0004-There-s-no-good-way-to-import-iso8601-apparently.patch 0005-Add-docstring-to-_fetch_http.patch 0006-Forget-about-version-checking-for-right-now.patch +0007-using-setuptools.patch diff -Nru python-simplemediawiki-1.0.2/debian/rules python-simplemediawiki-1.0.2/debian/rules --- python-simplemediawiki-1.0.2/debian/rules 2011-02-12 20:12:07.000000000 +0100 +++ python-simplemediawiki-1.0.2/debian/rules 2011-12-03 17:34:09.000000000 +0100 @@ -1,9 +1,9 @@ #!/usr/bin/make -f -DEB_PYTHON_SYSTEM=pysupport - include /usr/share/cdbs/1/rules/debhelper.mk #include /usr/share/cdbs/1/class/makefile.mk include /usr/share/cdbs/1/class/python-distutils.mk # Add here any variable or target overrides you need. +clean:: + rm -rf simplemediawiki.egg-info
signature.asc
Description: This is a digitally signed message part.