-
-
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
fc3e788
build/pkgs/conway_polynomials: update to v0.7
orlitzky 90decf7
src/sage/databases/conway.py: update for conway-polynomials-0.7
orlitzky bdf36ab
src/sage/features/databases.py: update for conway-polynomials-0.7
orlitzky b801eaa
src/sage/env.py: drop obsolete CONWAY_POLYNOMIALS_DATA_DIR
orlitzky 48d6e9c
build/pkgs/conway_polynomials/SPKG.rst: fix header
orlitzky 4b45b63
build/pkgs/conway_polynomials/dependencies: add $(PYTHON_TOOLCHAIN)
orlitzky a76e0fd
src/sage/databases/all.py: Luebeck -> Lübeck to match conway.py
orlitzky bb55f5e
src/sage/features/__init__.py: Luebeck -> Lübeck to match databases.py
orlitzky c579508
src/setup.cfg.m4: pull in conway_polynomial's install-requires as deps
orlitzky a2ab364
src/sage/features: forego detection of conway_polynomials
orlitzky c0dc661
src/sage/databases/conway.py: drop DatabaseConwayPolynomials import
orlitzky e6af986
conda now has this package independently of Sage
dimpase 1685d81
build/pkgs/conway_polynomials: update to v0.8
orlitzky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dev-python/conway-polynomials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
conway-polynomials >=0.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.5 | ||
0.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,43 +19,10 @@ | |
|
||
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 |
||
r""" | ||
A :class:`~sage.features.Feature` which describes the presence of :ref:`Frank Luebeck's | ||
database of Conway polynomials <spkg_conway_polynomials>`. | ||
|
||
EXAMPLES:: | ||
|
||
sage: from sage.features.databases import DatabaseConwayPolynomials | ||
sage: DatabaseConwayPolynomials().is_present() | ||
FeatureTestResult('conway_polynomials', True) | ||
""" | ||
|
||
def __init__(self): | ||
r""" | ||
TESTS:: | ||
|
||
sage: from sage.features.databases import DatabaseConwayPolynomials | ||
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') | ||
|
||
|
||
CREMONA_DATA_DIRS = set([CREMONA_MINI_DATA_DIR, CREMONA_LARGE_DATA_DIR]) | ||
|
||
|
||
|
@@ -197,8 +164,7 @@ def __init__(self, name='polytopes_db', dirname='Full3D'): | |
|
||
|
||
def all_features(): | ||
return [DatabaseConwayPolynomials(), | ||
DatabaseCremona(), DatabaseCremona('cremona_mini'), | ||
return [DatabaseCremona(), DatabaseCremona('cremona_mini'), | ||
DatabaseJones(), | ||
DatabaseKnotInfo(), | ||
DatabaseCubicHecke(), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.