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

CI - add Python 3.10 #106

Merged
merged 47 commits into from
Oct 18, 2021
Merged

CI - add Python 3.10 #106

merged 47 commits into from
Oct 18, 2021

Conversation

macbre
Copy link
Owner

@macbre macbre commented Mar 2, 2021

No description provided.

@macbre macbre added this to the v1.12 milestone Mar 2, 2021
macbre added 2 commits March 2, 2021 14:00
And actions/setup-python@v2
@macbre
Copy link
Owner Author

macbre commented Mar 3, 2021

ModuleNotFoundError: No module named 'cleo'

python-poetry/poetry#3187

@macbre
Copy link
Owner Author

macbre commented Mar 4, 2021

 EnvCommandError

  Command ['/home/runner/work/sql-metadata/sql-metadata/.venv/bin/pip', 'install', '--no-deps', '/home/runner/.cache/pypoetry/artifacts/64/08/ea/6fcac08da010d65557566f4f78be903d17d7f7ae66e7584e4334a8bb6e/dataclasses-0.8-py3-none-any.whl'] errored with the following return code 1, and output: 
  Processing /home/runner/.cache/pypoetry/artifacts/64/08/ea/6fcac08da010d65557566f4f78be903d17d7f7ae66e7584e4334a8bb6e/dataclasses-0.8-py3-none-any.whl
  ERROR: Package 'dataclasses' requires a different Python: 3.10.0 not in '<3.7,>=3.6'

python-poetry/poetry#2386

macbre added 7 commits March 4, 2021 12:40
  EnvCommandError

  Command ['/home/runner/work/sql-metadata/sql-metadata/.venv/bin/pip', 'install', '--no-deps', '/home/runner/.cache/pypoetry/artifacts/64/08/ea/6fcac08da010d65557566f4f78be903d17d7f7ae66e7584e4334a8bb6e/dataclasses-0.8-py3-none-any.whl'] errored with the following return code 1, and output: 
  Processing /home/runner/.cache/pypoetry/artifacts/64/08/ea/6fcac08da010d65557566f4f78be903d17d7f7ae66e7584e4334a8bb6e/dataclasses-0.8-py3-none-any.whl
  ERROR: Package 'dataclasses' requires a different Python: 3.10.0 not in '<3.7,>=3.6'
@macbre
Copy link
Owner Author

macbre commented Mar 4, 2021

https://github.com/pyenv/pyenv/wiki#suggested-build-environment

$ sudo apt-get install libffi-dev
$ pyenv install 3.10.0a5
$ poetry env use ~/.pyenv/versions/3.10.0a5/bin/python
$ poetry env info

Virtualenv
Python:         3.10.0
Implementation: CPython
...

@macbre macbre removed this from the v1.12 milestone Mar 5, 2021
@macbre macbre marked this pull request as ready for review May 22, 2021 21:37
@macbre
Copy link
Owner Author

macbre commented May 22, 2021

The current project's Python requirement (3.10.0a5) is not compatible with some of the required packages Python requirement:
    - dataclasses requires Python >=3.6, <3.7, so it will not be satisfied for Python 3.10.0a5
  
  Because no versions of black match >21.5b1,<22.0
   and black (21.5b1) depends on dataclasses (>=0.6), black (>=21.5b1,<22.0) requires dataclasses (>=0.6).

@macbre macbre requested a review from collerek as a code owner September 20, 2021 09:01
@macbre
Copy link
Owner Author

macbre commented Sep 20, 2021

Package operations: 35 installs, 0 updates, 0 removals

  • Installing pyparsing (2.4.7)

  JSONDecodeError

  Expecting value: line 1 column 1 (char 0)

  at /opt/hostedtoolcache/Python/3.10.0-rc.1/x64/lib/python3.10/json/decoder.py:355 in raw_decode
      351│         """
      352│         try:
      353│             obj, end = self.scan_once(s, idx)
      354│         except StopIteration as err:
    → 355│             raise JSONDecodeError("Expecting value", s, err.value) from None
      356│         return obj, end
      357│ 

@macbre macbre merged commit 9330f88 into master Oct 18, 2021
@macbre macbre deleted the ci-python-3.10 branch October 18, 2021 10:32
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.

1 participant