Bug#849937: python-parse: Support python3

2017-01-13 Thread Gianfranco Costamagna
Control: tags -1 patch
Control: tags -1 pending

Dear maintainer
> The python-parse package currently only supports python 2, though the actual
> code (including the PyPI release) support python 3 without issue. I would like
> to use a python3 version of this package in one of my packages and so would
> like to see this option released.
> 
> I have attached an update control and rules file that will move this package
> over to pybuild as the build system. This worked better for building on my
> system than the distutils system did. I have also attached an updated control
> file which will add the python3 package.

Since this package needs some care, I added some more changes to the above 
debdiff
and made it lintian clean.
Summary of the changes are:

  * Non-maintainer upload.
  * Adds python3 support (closes: #849937).

  [ Gianfranco Costamagna ]
  * New upstream release.
  * Bump compat level to 10
  * Bump std-version to 3.9.8
  * Add homepage field
  * Add watch file
  * Add upstream signing key
  * Convert copyright file in dep-5 format

This way we will notice if a new release is out, and we add some new features
to the packaging (e.g. machine readable copyright file, Homepage fields to BTS,
lintian free package and so on).

I'm uploading right now in deferred/10, please let me know if I can reschedule 
it

thanks

G.
diff -Nru python-parse-1.6.3/debian/changelog 
python-parse-1.6.6/debian/changelog
--- python-parse-1.6.3/debian/changelog 2013-11-11 15:37:03.0 +0100
+++ python-parse-1.6.6/debian/changelog 2017-01-13 08:55:28.0 +0100
@@ -1,3 +1,19 @@
+python-parse (1.6.6-0.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Adds python3 support (closes: #849937).
+
+  [ Gianfranco Costamagna ]
+  * New upstream release.
+  * Bump compat level to 10
+  * Bump std-version to 3.9.8
+  * Add homepage field
+  * Add watch file
+  * Add upstream signing key
+  * Convert copyright file in dep-5 format
+
+ -- Daniel Manila   Thu, 12 Jan 2017 16:57:30 +0600
+
 python-parse (1.6.3-1) unstable; urgency=low
 
   * Initial release (closes: #726715).
diff -Nru python-parse-1.6.3/debian/compat python-parse-1.6.6/debian/compat
--- python-parse-1.6.3/debian/compat2013-10-18 11:42:01.0 +0200
+++ python-parse-1.6.6/debian/compat2017-01-13 08:28:48.0 +0100
@@ -1 +1 @@
-7
+10
diff -Nru python-parse-1.6.3/debian/control python-parse-1.6.6/debian/control
--- python-parse-1.6.3/debian/control   2013-11-11 15:38:39.0 +0100
+++ python-parse-1.6.6/debian/control   2017-01-13 08:40:33.0 +0100
@@ -5,13 +5,14 @@
   Cyril Bouthors 
 Section: python
 Priority: optional
-Build-Depends: python-all (>= 2.6.6-3), debhelper (>= 7)
-Standards-Version: 3.9.4
+Build-Depends: python-all, python3-all, debhelper (>= 10), dh-python
+Standards-Version: 3.9.8
+Homepage: https://github.com/r1chardj0n3s/parse
 
 Package: python-parse
 Architecture: all
 Depends: ${misc:Depends}, ${python:Depends}
-Description: Parse provides the reverse function for format().
+Description: Parse provides the reverse function for format(), Python2 package
  Parse strings using a specification based on the Python format() syntax.
  .
 ``parse()`` is the opposite of ``format()``
@@ -32,3 +33,32 @@
  .
  >>> search('Age: {:d}\n', 'Name: Rufus\nAge: 42\nColor: red\n')
  
+ .
+ This is the Python 2 package
+
+Package: python3-parse
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: Parse provides the reverse function for format(), Python3 package
+ Parse strings using a specification based on the Python format() syntax.
+ .
+``parse()`` is the opposite of ``format()``
+ .
+ The module is set up to only export ``parse()``, ``search()`` and
+ ``findall()`` when ``import *`` is used:
+ .
+ >>> from parse import *
+ .
+ From there it's a simple thing to parse a string:
+ .
+ >>> parse("It's {}, I love it!", "It's spam, I love it!")
+ 
+ >>> _[0]
+ 'spam'
+ .
+ Or to search a string for some pattern:
+ .
+ >>> search('Age: {:d}\n', 'Name: Rufus\nAge: 42\nColor: red\n')
+ 
+ .
+ This is the Python 3 package
diff -Nru python-parse-1.6.3/debian/copyright 
python-parse-1.6.6/debian/copyright
--- python-parse-1.6.3/debian/copyright 2013-10-18 11:50:31.0 +0200
+++ python-parse-1.6.6/debian/copyright 2017-01-13 08:47:04.0 +0100
@@ -1,30 +1,30 @@
-This package was debianized by Arthur Vuillard  on
-Fri Oct 18 11:46:48 CEST 2013
-
-It was downloaded from 
-
-Upstream Author:
-
-Richard Jones 
-
-License:
-
-Copyright (c) 2012-2013 Richard Jones 
-
-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
-furnish

Bug#849937: python-parse: Support python3

2017-01-02 Thread Daniel Manila
Package: python-parse
Version: 1.6.3-1
Severity: wishlist

Dear Maintainer,

The python-parse package currently only supports python 2, though the actual
code (including the PyPI release) support python 3 without issue. I would like
to use a python3 version of this package in one of my packages and so would
like to see this option released.

I have attached an update control and rules file that will move this package
over to pybuild as the build system. This worked better for building on my
system than the distutils system did. I have also attached an updated control
file which will add the python3 package.

Sincerely,
Daniel Manila
Source: python-parse
Maintainer: Cyril Bouthors 
Uploaders: Arthur Vuillard ,
  Cyril Bouthors ,
  Cyril Bouthors 
Section: python
Priority: optional
Build-Depends: python-all (>= 2.6.6-3),python3-all, debhelper (>= 7),dh-python
Standards-Version: 3.9.4

Package: python-parse
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}
Description: Parse provides the reverse function for format().
 Parse strings using a specification based on the Python format() syntax.
 .
``parse()`` is the opposite of ``format()``
 .
 The module is set up to only export ``parse()``, ``search()`` and
 ``findall()`` when ``import *`` is used:
 .
 >>> from parse import *
 .
 From there it's a simple thing to parse a string:
 .
 >>> parse("It's {}, I love it!", "It's spam, I love it!")
 
 >>> _[0]
 'spam'
 .
 Or to search a string for some pattern:
 .
 >>> search('Age: {:d}\n', 'Name: Rufus\nAge: 42\nColor: red\n')
 
 .
 Python 2 package

Package: python3-parse
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}
Description: Parse provides the reverse function for format().
 Parse strings using a specification based on the Python format() syntax.
 .
``parse()`` is the opposite of ``format()``
 .
 The module is set up to only export ``parse()``, ``search()`` and
 ``findall()`` when ``import *`` is used:
 .
 >>> from parse import *
 .
 From there it's a simple thing to parse a string:
 .
 >>> parse("It's {}, I love it!", "It's spam, I love it!")
 
 >>> _[0]
 'spam'
 .
 Or to search a string for some pattern:
 .
 >>> search('Age: {:d}\n', 'Name: Rufus\nAge: 42\nColor: red\n')
 
 .
 Python 3 package
#!/usr/bin/make -f

# This file was automatically generated by stdeb 0.6.0+git at
# Fri, 18 Oct 2013 09:42:01 +

export PYBUILD_NAME = parse

%:
dh $@ --with python2,python3 --buildsystem=pybuild