-
-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to new conway-polynomials python package #36765
Changes from 8 commits
fc3e788
90decf7
bdf36ab
b801eaa
48d6e9c
4b45b63
a76e0fd
bb55f5e
c579508
a2ab364
c0dc661
e6af986
1685d81
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
conway_polynomials: Tables of Conway polynomials over finite fields | ||
=================================================================== | ||
conway_polynomials: Python interface to Frank Lübeck's Conway polynomial database | ||
================================================================================= | ||
|
||
Description | ||
----------- | ||
|
||
Frank Lübeck's tables of Conway polynomials over finite fields. | ||
This python module evolved from the old SageMath *conway_polynomials* | ||
package once hosted at, | ||
|
||
Upstream contact | ||
http://files.sagemath.org/spkg/upstream/conway_polynomials/ | ||
|
||
It's still maintained by Sage developers, but having a pip-installable | ||
interface to the data will make it easier to install SageMath via pip | ||
or another package manager. | ||
|
||
|
||
License | ||
------- | ||
|
||
GPL version 3 or later | ||
|
||
|
||
Upstream Contact | ||
---------------- | ||
|
||
http://www.math.rwth-aachen.de/~Frank.Luebeck/data/ConwayPol/ | ||
https://github.com/sagemath/conway-polynomials |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
tarball=conway_polynomials-VERSION.tar.bz2 | ||
sha1=d4d89bda60ac54e73121f84635e774766e19a8b6 | ||
md5=a2725ba21f44554196781424d957f68a | ||
cksum=1387933493 | ||
tarball=conway-polynomials-VERSION.tar.gz | ||
sha1=a822baa014c68ab44f654d8a88b2ea81436a26ef | ||
md5=779cfaad6fc4413fa5b4d5a17e5e9ceb | ||
cksum=634397699 | ||
upstream_url=https://files.pythonhosted.org/packages/source/c/conway-polynomials/conway-polynomials-VERSION.tar.gz |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
| $(PYTHON) | ||
| $(PYTHON_TOOLCHAIN) $(PYTHON) | ||
|
||
---------- | ||
All lines of this file are ignored except the first. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dev-python/conway-polynomials |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
conway-polynomials >=0.7 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.5 | ||
0.7 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SAGE_SPKG_CONFIGURE([conway_polynomials], [ | ||
SAGE_PYTHON_PACKAGE_CHECK([conway_polynomials]) | ||
]) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
exec python3 spkg-install.py | ||
cd src && sdh_pip_install . |
This file was deleted.
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -19,15 +19,15 @@ | |||||
|
||||||
from . import StaticFile, PythonModule | ||||||
from sage.env import ( | ||||||
CONWAY_POLYNOMIALS_DATA_DIR, | ||||||
CREMONA_MINI_DATA_DIR, CREMONA_LARGE_DATA_DIR, | ||||||
POLYTOPE_DATA_DIR) | ||||||
|
||||||
|
||||||
class DatabaseConwayPolynomials(StaticFile): | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Normally I think we would say that this is API and should not be removed without deprecation. But I don't object to removing it |
||||||
class DatabaseConwayPolynomials(PythonModule): | ||||||
r""" | ||||||
A :class:`~sage.features.Feature` which describes the presence of :ref:`Frank Luebeck's | ||||||
database of Conway polynomials <spkg_conway_polynomials>`. | ||||||
A :class:`~sage.features.Feature` which describes the presence of | ||||||
:ref:`Frank Lübeck's database of Conway polynomials | ||||||
<spkg_conway_polynomials>`. | ||||||
|
||||||
EXAMPLES:: | ||||||
|
||||||
|
@@ -44,16 +44,13 @@ def __init__(self): | |||||
sage: isinstance(DatabaseConwayPolynomials(), DatabaseConwayPolynomials) | ||||||
True | ||||||
""" | ||||||
if CONWAY_POLYNOMIALS_DATA_DIR: | ||||||
search_path = [CONWAY_POLYNOMIALS_DATA_DIR] | ||||||
else: | ||||||
search_path = [] | ||||||
StaticFile.__init__(self, "conway_polynomials", | ||||||
filename='conway_polynomials.p', | ||||||
search_path=search_path, | ||||||
spkg='conway_polynomials', | ||||||
description="Frank Luebeck's database of Conway polynomials", | ||||||
type='standard') | ||||||
PythonModule.__init__( | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
(not that it is that important) |
||||||
self, | ||||||
"conway_polynomials", | ||||||
spkg='conway_polynomials', | ||||||
description="Frank Lübeck's database of Conway polynomials", | ||||||
type="standard" | ||||||
) | ||||||
|
||||||
|
||||||
CREMONA_DATA_DIRS = set([CREMONA_MINI_DATA_DIR, CREMONA_LARGE_DATA_DIR]) | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh? What happened there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was asking myself the same question.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inflation.
The old package came with preprocessed data that would have been harder to diff against the upstream list for changes. I think it was just a tiny bit out-of-date. Here's the diff:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Does upstream update the list "often"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea. There's no change history on the site, but the new package ships the upstream file unmodified so at least we can
git diff
it in the future.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shipping upstream file unmodified sounds very good to me. I think it is ready.