-
-
Notifications
You must be signed in to change notification settings - Fork 567
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
Upstream Python distribution package for conway_polynomials #32747
Comments
These polynomials (by way of the same database) are all included with GAP. I'll create a PR that replaces our implementation with GAP's, and deprecates the sage module. |
I don't think that's a good idea from the modularization side of things. GAP is huge, this database is small and is needed for basic ring implementations already |
Which piece of sage is going to wind up with the GAP dependency? Punting to GAP does have another benefit. Our existing implementation throws a |
I'm not opposed to using GAP for providing additional functionality (providing Conway polynomials when it can, when our own code would have to fall back to pseudo-Conway). |
I see the issue with the missing Conway database in testing distributions like sagemath-categories, sagemath-modules, etc. in #35095 -- large parts of Sage, basically everything that does not have to use non-abelian groups or the Universal Cyclotomic Field. |
Ok, it was too good to be true I guess. I'll start reverse engineering the tarball on files.sagemath.org. |
https://github.com/orlitzky/conway-polynomials/ Create a repo under the sage umbrella for it? |
Yes please! Should the package be called "sagemath-database-conway-polynomials", as for example Debian calls it according to https://repology.org/project/sagemath-conway-polynomials/versions? |
I was bikeshedding with myself over this. I don't think the "sagemath-" prefix is appropriate any more because the new package is completely independent of SageMath. It ships Frank Lübeck's upstream data file and produces a vanilla dict of coefficient lists. I do think the name conway-polynomials-database would be more appropriate, in case someone wants to create a python package that actually does something with Conway polynomials. But then since this is a continuation of our existing conway_polynomials package with the same version scheme, I decided to stop thinking about it and leave the name alone. If you think it's better with "-database" at the end, do that and I'll update the package. |
I forgot perhaps the strongest argument in favor of conway-polynomials: it's obvious that you should |
This all makes sense, thanks for the discussion. |
If someone can create either https://github.com/sagemath/conway-polynomials or https://gitlab.com/sagemath/conway-polynomials and give me push access, I'll update the project URLs, date the NEWS entry, tag a release, and start working on the sage PR. I'm happy to make the pypi release too, however that would work. (I've preferred a hyphen over an underscore in the project name because otherwise, the underscore has to be normalized to a hyphen anyway to arrive at e.g. the correct pypi URL; https://peps.python.org/pep-0503/#normalized-names) |
I can add a GH Actions workflow that pushes to PyPI using the sagemath organization's credentials |
Thanks, I just pushed everything. |
Added. OK to force-push the release tag to trigger the push to PyPI? |
The first release is always missing some imporant file, but maybe this time will be different. AFAIK it's ready. |
And now that it's published I see that a tuple would be much more appropriate than a list for the coefficients. |
I tagged a v0.7 if you could please re-push it. |
sagemathgh-36765: Update to new conway-polynomials python package Fix sagemath#32747 by switching to the newly-minted [conway-polynomials package](https://pypi.org/project/conway-polynomials/0.7/) on pypi. IMO `sage.databases.conway` (which makes the dict immutable by wrapping it in a class) is of dubious value but I've left everything alone for now. URL: sagemath#36765 Reported by: Michael Orlitzky Reviewer(s): François Bissey, Matthias Köppe, Michael Orlitzky, Tobias Diez
sagemathgh-36765: Update to new conway-polynomials python package Fix sagemath#32747 by switching to the newly-minted [conway-polynomials package](https://pypi.org/project/conway-polynomials/0.7/) on pypi. IMO `sage.databases.conway` (which makes the dict immutable by wrapping it in a class) is of dubious value but I've left everything alone for now. URL: sagemath#36765 Reported by: Michael Orlitzky Reviewer(s): François Bissey, Matthias Köppe, Michael Orlitzky, Tobias Diez
... so that we can replace the Sage-specific installation script
build/pkgs/conway_polynomials/spkg-install.py
by justpip install ...
CC: @orlitzky @antonio-rojas
Component: packages: standard
Issue created by migration from https://trac.sagemath.org/ticket/32747
The text was updated successfully, but these errors were encountered: