Kaynağa Gözat

update debian packaging for python3

Helmut Pozimski 9 yıl önce
ebeveyn
işleme
e3774cb532
4 değiştirilmiş dosya ile 14 ekleme ve 7 silme
  1. 6 0
      debian/changelog
  2. 1 1
      debian/compat
  3. 3 3
      debian/control
  4. 4 3
      debian/rules

+ 6 - 0
debian/changelog

@@ -1,3 +1,9 @@
+stov (0.9.3~beta-1) unstable; urgency=low
+
+  * New upstream beta release
+
+ -- Helmut Pozimski <helmut@pozimski.eu>  Wed, 13 May 2015 20:28:00 +0200
+
 stov (0.9.2-1) unstable; urgency=low
 stov (0.9.2-1) unstable; urgency=low
 
 
   * New upstream release
   * New upstream release

+ 1 - 1
debian/compat

@@ -1,2 +1,2 @@
-7
+9
 
 

+ 3 - 3
debian/control

@@ -1,15 +1,15 @@
 Source: stov
 Source: stov
-XS-Python-Version: >= 2.7
+X-Python3-Version: >= 3.0
 Maintainer: Helmut Pozimski <helmut@pozimski.eu>
 Maintainer: Helmut Pozimski <helmut@pozimski.eu>
 Homepage: https://dev.intranet.helmut-pozimski.de/stov
 Homepage: https://dev.intranet.helmut-pozimski.de/stov
 Section: python
 Section: python
 Priority: optional
 Priority: optional
-Build-Depends: python (>= 2.7), debhelper (>= 7.4.3), dh-python, gettext, python-sphinx
+Build-Depends: python3 (>= 3.0), debhelper (>= 9), dh-python, gettext, python3-sphinx
 Standards-Version: 3.9.6
 Standards-Version: 3.9.6
 
 
 Package: stov
 Package: stov
 Architecture: all
 Architecture: all
-Depends: ${misc:Depends}, python (>= 2.7), python-lxml
+Depends: ${misc:Depends}, python3 (>= 3.0), python3-lxml
 Description: tool to subscribe to videos on youtube
 Description: tool to subscribe to videos on youtube
  program which allows you to subscribe to channels, playlists and search
  program which allows you to subscribe to channels, playlists and search
  results on youtube. You don't need a youtube account for the program to
  results on youtube. You don't need a youtube account for the program to

+ 4 - 3
debian/rules

@@ -4,9 +4,9 @@
 # Sun, 14 Apr 2013 00:45:09 +0200
 # Sun, 14 Apr 2013 00:45:09 +0200
 
 
 %:
 %:
-	dh $@ --with python2
+	dh $@ --with python3
 override_dh_auto_install:
 override_dh_auto_install:
-	python setup.py install --root=debian/stov --install-layout=deb --install-lib=/usr/share/stov --install-scripts=/usr/share/stov --install-data=/usr
+	python3 setup.py install --root=debian/stov --install-layout=deb --install-lib=/usr/share/stov --install-scripts=/usr/share/stov --install-data=/usr
 	# manually compile localization files and copy them into the right directory since distutils don't handle this
 	# manually compile localization files and copy them into the right directory since distutils don't handle this
 	msgfmt locale/de/LC_MESSAGES/stov.po --output-file debian/stov/usr/share/locale/de/LC_MESSAGES/stov.mo
 	msgfmt locale/de/LC_MESSAGES/stov.po --output-file debian/stov/usr/share/locale/de/LC_MESSAGES/stov.mo
 	msgfmt locale/en/LC_MESSAGES/stov.po --output-file debian/stov/usr/share/locale/en/LC_MESSAGES/stov.mo
 	msgfmt locale/en/LC_MESSAGES/stov.po --output-file debian/stov/usr/share/locale/en/LC_MESSAGES/stov.mo
@@ -21,4 +21,5 @@ override_dh_install:
 
 
 clean::
 clean::
 	if [ -d "doc/_build" ]; then rm -r doc/_build; fi
 	if [ -d "doc/_build" ]; then rm -r doc/_build; fi
-	dh clean --with python2
+	if [ -d build ]; then rm -r build; fi
+	dh clean --with python3