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

Support for Python 3.12 #5

Closed
tueda opened this issue Dec 29, 2023 · 0 comments
Closed

Support for Python 3.12 #5

tueda opened this issue Dec 29, 2023 · 0 comments

Comments

@tueda
Copy link
Owner

tueda commented Dec 29, 2023

Locally it seems to work (except lint due to csachs/pyproject-flake8#30), but the CI failed: https://github.com/tueda/donuts-python/actions/runs/7347713849.

py312: commands[0]> pytest --benchmark-disable
  ImportError while loading conftest '/home/runner/work/donuts-python/donuts-python/tests/conftest.py'.
  tests/conftest.py:8: in <module>
      from donuts import Polynomial, RationalFunction
  .tox/py312/lib/python3.12/site-packages/donuts/__init__.py:5: in <module>
      from .poly import Polynomial, gcd, lcm, product
  .tox/py312/lib/python3.12/site-packages/donuts/poly.py:20: in <module>
      from .array import _create_raw_int_array, _create_raw_poly_array, _create_raw_var_array
  .tox/py312/lib/python3.12/site-packages/donuts/array.py:7: in <module>
      from .jvm import jvm
  .tox/py312/lib/python3.12/site-packages/donuts/jvm.py:6: in <module>
      import pkg_resources
  E   ModuleNotFoundError: No module named 'pkg_resources'
tueda added a commit that referenced this issue Jan 25, 2024
Python 3.12 no longer installs setuptools in virtual environments, so
pkg_resources may not be available.
@tueda tueda closed this as completed in ff6945f Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant