[arch-commits] Commit in sage-data-conway_polynomials/repos/community-any (4 files)
Antonio Rojas
arojas at gemini.archlinux.org
Mon Nov 29 18:57:38 UTC 2021
Date: Monday, November 29, 2021 @ 18:57:37
Author: arojas
Revision: 1057586
archrelease: copy trunk to community-any
Added:
sage-data-conway_polynomials/repos/community-any/PKGBUILD
(from rev 1057585, sage-data-conway_polynomials/trunk/PKGBUILD)
sage-data-conway_polynomials/repos/community-any/spkg-install
(from rev 1057585, sage-data-conway_polynomials/trunk/spkg-install)
Deleted:
sage-data-conway_polynomials/repos/community-any/PKGBUILD
sage-data-conway_polynomials/repos/community-any/spkg-install
--------------+
PKGBUILD | 45 +++++++++++++++++++++++----------------------
spkg-install | 41 +++++++++++++++++++++--------------------
2 files changed, 44 insertions(+), 42 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-29 18:57:22 UTC (rev 1057585)
+++ PKGBUILD 2021-11-29 18:57:37 UTC (rev 1057586)
@@ -1,22 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-
-_dbname=conway_polynomials
-pkgname=sage-data-$_dbname
-pkgver=0.5
-pkgrel=4
-pkgdesc="A small database of Conway polynomials"
-arch=(any)
-url="https://www.sagemath.org"
-license=(GPL)
-depends=()
-makedepends=(python2-six)
-source=("https://mirrors.mit.edu/sage/spkg/upstream/conway_polynomials/$_dbname-$pkgver.tar.bz2" 'spkg-install')
-sha256sums=('d8f2788a85b1c2482cc4abe1a35d3da777445e21ec49b031d36b899e3c0deb17'
- '02a93174df87f7afe55a7720571e04df3471bd7dad197017b16bc83396b32254')
-
-package() {
- export SAGE_SHARE="$pkgdir"/usr/share
- export PYTHONPATH=$PWD
- ln -s conway_polynomials-$pkgver src
- python2 spkg-install
-}
Copied: sage-data-conway_polynomials/repos/community-any/PKGBUILD (from rev 1057585, sage-data-conway_polynomials/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-11-29 18:57:37 UTC (rev 1057586)
@@ -0,0 +1,23 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+_dbname=conway_polynomials
+pkgname=sage-data-$_dbname
+pkgver=0.5
+pkgrel=5
+pkgdesc='A small database of Conway polynomials'
+arch=(any)
+url='https://www.sagemath.org'
+license=(GPL)
+depends=()
+makedepends=(python)
+source=(https://mirrors.mit.edu/sage/spkg/upstream/conway_polynomials/$_dbname-$pkgver.tar.bz2
+ spkg-install)
+sha256sums=('d8f2788a85b1c2482cc4abe1a35d3da777445e21ec49b031d36b899e3c0deb17'
+ 'd1dd7f996b6552edaf692296a8bc170572a95c8201634d45adddddb7092ab636')
+
+package() {
+ export SAGE_SHARE="$pkgdir"/usr/share
+ export PYTHONPATH=$PWD
+ ln -s conway_polynomials-$pkgver src
+ python spkg-install
+}
Deleted: spkg-install
===================================================================
--- spkg-install 2021-11-29 18:57:22 UTC (rev 1057585)
+++ spkg-install 2021-11-29 18:57:37 UTC (rev 1057586)
@@ -1,20 +0,0 @@
-import os
-from six.moves import cPickle as pickle
-
-SAGE_SHARE = os.getenv('SAGE_SHARE')
-install_root = os.path.join(SAGE_SHARE, 'conway_polynomials')
-
-def create_db():
- db = {}
- from src import conway_polynomials
- for p, n, v in conway_polynomials:
- if not p in db:
- db[p] = {}
- db[p][n] = v
- if not os.path.exists(install_root):
- os.makedirs(install_root)
- with open(os.path.join(install_root, 'conway_polynomials.p'), 'wb') as f:
- pickle.dump(db, f)
-
-if __name__ == '__main__':
- create_db()
Copied: sage-data-conway_polynomials/repos/community-any/spkg-install (from rev 1057585, sage-data-conway_polynomials/trunk/spkg-install)
===================================================================
--- spkg-install (rev 0)
+++ spkg-install 2021-11-29 18:57:37 UTC (rev 1057586)
@@ -0,0 +1,21 @@
+import os
+import pickle
+
+SAGE_SHARE = os.getenv('SAGE_SHARE')
+install_root = os.path.join(SAGE_SHARE, 'conway_polynomials')
+
+def create_db():
+ db = {}
+ from src import conway_polynomials
+ for p, n, v in conway_polynomials:
+ if not p in db:
+ db[p] = {}
+ db[p][n] = v
+ if not os.path.exists(install_root):
+ os.makedirs(install_root)
+ with open(os.path.join(install_root, 'conway_polynomials.p'), 'wb') as f:
+ pickle.dump(db, f)
+
+if __name__ == '__main__':
+ create_db()
+
More information about the arch-commits
mailing list