Skip to content
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

src/sage/misc/package.py: use gnulib instead of conway_polynomials in tests #38661

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

orlitzky
Copy link
Contributor

The conway_polynomials package now has an spkg-configure.m4, and may not be installed as an SPKG. In that case, several tests fail. For example,

File "src/sage/misc/package.py", line 404, in sage.misc.package.installed_packages
Failed example:
    sorted(installed_packages().keys())
Expected:
    [...'conway_polynomials', ...]
Got:
    ['combinatorial_designs',
     'elliptic_curves',
     'execnet',
     'gnulib',
     'gnumake_tokenpool',
     'graphs',
     'h11',
     'iniconfig',
     'jmol',
     'polytopes_db',
     'pyproject_hooks',
     'pytest_mock',
     'pytest_xdist',
     'python3_venv',
     'python_build',
     'sage_conf',
     'sage_setup',
     'sagelib',
     'threejs']

The gnulib package seems like a safe alternative.

Copy link

github-actions bot commented Sep 15, 2024

Documentation preview for this PR (built with commit e282f46; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@orlitzky
Copy link
Contributor Author

This fixes a harmless but annoying test failure with --enable-system-site-packages when conway-polynomials from the system is used.

"gnulib" should be a safe alternative because it's not a real package, only a placeholder for the iconv.m4 file that is already in the repo.

@dimpase
Copy link
Member

dimpase commented Sep 23, 2024

please rebase

… tests

The conway_polynomials package now has an spkg-configure.m4, and may
not be installed as an SPKG. In that case, several tests fail. For
example,

  File "src/sage/misc/package.py", line 404, in
  sage.misc.package.installed_packages
  Failed example:
    sorted(installed_packages().keys())
  Expected:
    [...'conway_polynomials', ...]
  Got:
    ['combinatorial_designs',
     'elliptic_curves',
     'execnet',
     'gnulib',
     'gnumake_tokenpool',
     'graphs',
     'h11',
     'iniconfig',
     'jmol',
     'polytopes_db',
     'pyproject_hooks',
     'pytest_mock',
     'pytest_xdist',
     'python3_venv',
     'python_build',
     'sage_conf',
     'sage_setup',
     'sagelib',
     'threejs']

The gnulib package seems like a safe alternative.
@orlitzky
Copy link
Contributor Author

no problem, done

Copy link
Member

@dimpase dimpase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

vbraun pushed a commit to vbraun/sage that referenced this pull request Sep 27, 2024
…way_polynomials in tests

    
The conway_polynomials package now has an `spkg-configure.m4`, and may
not be installed as an SPKG. In that case, several tests fail. For
example,

```
File "src/sage/misc/package.py", line 404, in
sage.misc.package.installed_packages
Failed example:
    sorted(installed_packages().keys())
Expected:
    [...'conway_polynomials', ...]
Got:
    ['combinatorial_designs',
     'elliptic_curves',
     'execnet',
     'gnulib',
     'gnumake_tokenpool',
     'graphs',
     'h11',
     'iniconfig',
     'jmol',
     'polytopes_db',
     'pyproject_hooks',
     'pytest_mock',
     'pytest_xdist',
     'python3_venv',
     'python_build',
     'sage_conf',
     'sage_setup',
     'sagelib',
     'threejs']
```

The gnulib package seems like a safe alternative.
    
URL: sagemath#38661
Reported by: Michael Orlitzky
Reviewer(s): Dima Pasechnik
@vbraun vbraun merged commit f59136a into sagemath:develop Sep 29, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants