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

Added Python 3.12 Support #84

Merged
merged 5 commits into from
Nov 13, 2023
Merged

Conversation

Nusnus
Copy link
Member

@Nusnus Nusnus commented Nov 7, 2023

No description provided.

@Nusnus Nusnus self-assigned this Nov 7, 2023
Copy link

codecov bot commented Nov 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (920366e) 23.74% compared to head (fad1537) 23.74%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #84   +/-   ##
=======================================
  Coverage   23.74%   23.74%           
=======================================
  Files          34       34           
  Lines         939      939           
  Branches      182      182           
=======================================
  Hits          223      223           
+ Misses        695      694    -1     
- Partials       21       22    +1     

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Nusnus Nusnus force-pushed the develop branch 2 times, most recently from bc9f5c1 to dbb357c Compare November 7, 2023 13:48
@Nusnus
Copy link
Member Author

Nusnus commented Nov 7, 2023

Mypy:

6s
Run poetry install --with dev,test,ci
  poetry install --with dev,test,ci
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.12.0/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.0/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.0/x64/lib
    VENV: .venv/bin/activate
Creating virtualenv pytest-celery-AyA7hmot-py3.12 in /home/runner/.cache/pypoetry/virtualenvs
Installing dependencies from lock file

Package operations: 76 installs, 0 updates, 0 removals

  • Installing pycparser (2.21)
  • Installing certifi (2023.7.22)
  • Installing cffi (1.16.0)
  • Installing charset-normalizer (3.3.2)
  • Installing idna (3.4)
  • Installing urllib3 (2.0.7)
  • Installing vine (5.1.0)
  • Installing wcwidth (0.2.9)
  • Installing amqp (5.2.0)
  • Installing click (8.1.7)
  • Installing cryptography (41.0.5)
  • Installing distlib (0.3.7)
  • Installing filelock (3.13.1)
  • Installing iniconfig (2.0.0)
  • Installing packaging (23.2)
  • Installing platformdirs (3.11.0)
  • Installing pluggy (1.3.0)
  • Installing prompt-toolkit (3.0.39)
  • Installing requests (2.31.0)
  • Installing setuptools (68.2.2)
  • Installing six (1.16.0)
  • Installing websocket-client (1.6.4)
  • Installing attrs (23.1.0)
  • Installing billiard (4.2.0)
  • Installing cachetools (5.3.2)
  • Installing cfgv (3.4.0)
  • Installing chardet (5.2.0)
  • Installing click-didyoumean (0.3.0)
  • Installing click-plugins (1.1.1)
  • Installing click-repl (0.3.0)
  • Installing colorama (0.4.6)
  • Installing coverage (7.3.2)
  • Installing decorator (5.1.1)
  • Installing docker (6.1.3)
  • Installing execnet (2.0.2)
  • Installing identify (2.5.31)
  • Installing kombu (5.3.3)
  • Installing mccabe (0.7.0)
  • Installing mypy-extensions (1.0.0)
  • Installing nodeenv (1.8.0)
  • Installing pathspec (0.11.2)
  • Installing py (1.11.0)
  • Installing pycodestyle (2.11.1)
  • Installing pyflakes (3.1.0)
  • Installing pylibmc (1.6.3)
  • Installing pyproject-api (1.6.1)
  • Installing pytest (7.4.3)
  • Installing python-dateutil (2.8.2)
  • Installing python-memcached (1.59)
  • Installing pyyaml (6.0.1)
  • Installing redis (4.6.0)
  • Installing termcolor (2.3.0)
  • Installing tomlkit (0.12.2)
  • Installing types-pyopenssl (23.3.0.0)
  • Installing typing-extensions (4.8.0)
  • Installing tzdata (2023.3)
  • Installing virtualenv (20.24.6)

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel
  
  In file included from src/_pylibmcmodule.c:34:
  src/_pylibmcmodule.h:42:10: fatal error: libmemcached/memcached.h: No such file or directory
     42 | #include <libmemcached/memcached.h>
        |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1
  

  at ~/.local/venv/lib/python3.12/site-packages/poetry/installation/chef.py:166 in _prepare
      162│ 
      163│                 error = ChefBuildError("\n\n".join(message_parts))
      164│ 
      165│             if error is not None:
    → 166│                 raise error from None
      167│ 
      168│             return path
      169│ 
      170│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with pylibmc (1.6.3) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "pylibmc (==1.6.3)"'.

Error: Process completed with exit code 1.

Locally works...

@Nusnus Nusnus marked this pull request as ready for review November 13, 2023 19:33
@Nusnus Nusnus merged commit 6bdb7c5 into celery:main Nov 13, 2023
26 checks passed
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

Successfully merging this pull request may close these issues.

1 participant