[sagemath-database-conway-polynomials] 01/01: Follow upstream rename of the database file and add depend on python-six

Julien Puydt julien.puydt at laposte.net
Thu Jun 15 12:52:58 UTC 2017


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

jpuydt-guest pushed a commit to branch master
in repository sagemath-database-conway-polynomials.

commit 4ab7292f5991bc81c78d485daff4347b75fd2c67
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Thu Jun 15 14:46:00 2017 +0200

    Follow upstream rename of the database file and add depend on python-six
---
 debian/builder.py | 9 +++++----
 debian/changelog  | 7 +++++++
 debian/control    | 2 +-
 3 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/debian/builder.py b/debian/builder.py
index 9bfe118..4e90ad7 100644
--- a/debian/builder.py
+++ b/debian/builder.py
@@ -1,6 +1,6 @@
-import zlib; comp = zlib
-import cPickle
 import os
+from six.moves import cPickle
+
 import sys
 sys.path.append('.')
 from table import conway_polynomials
@@ -12,8 +12,9 @@ for p,n,v in conway_polynomials:
     db[p][n] = v
 
 dstdir = os.path.join('build')
-dst = os.path.join(dstdir, 'conway_polynomials.sobj')
+dst = os.path.join(dstdir, 'conway_polynomials.p')
 if not os.path.exists(dstdir):
         os.makedirs(dstdir)
 
-open(dst, 'wb').write(comp.compress(cPickle.dumps(db, protocol=2)))
+with open(dst, 'wb') as f:
+	cPickle.dump(db, f)
diff --git a/debian/changelog b/debian/changelog
index 839bc04..687e5f7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+sagemath-database-conway-polynomials (0.5-2) UNRELEASED; urgency=medium
+
+  * Change the database format and name to follow upstream's.
+  * Add depend on python-six.
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Thu, 15 Jun 2017 14:42:57 +0200
+
 sagemath-database-conway-polynomials (0.5-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/control b/debian/control
index 748e7cd..a1ff012 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Section: math
 Priority: optional
 Standards-Version: 3.9.8
 Homepage: http://files.sagemath.org/spkg/upstream/conway_polynomials/index.html
-Build-Depends: debhelper (>= 10), python (>= 2.7)
+Build-Depends: debhelper (>= 10), python (>= 2.7), python-six
 Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/sagemath-database-conway-polynomials.git
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/sagemath-database-conway-polynomials.git
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath-database-conway-polynomials.git



More information about the debian-science-commits mailing list