#313: Poetry v1.1
Update to poetry.lock v1.1.0 format
- Not compatible with Poetry v1.0
- Update dependencies
Upgrade to Poetry v1.1.x
- Set poetry-core v1.0.0 as requirement and new build system
- https://python-poetry.org/blog/announcing-poetry-1-1-0.html
Close #313 (closed).
Merge request reports
Activity
changed milestone to %0.9.0
added 2 commits
- 55973b3c - [mod] #313 (closed): Upgrade to Poetry v1.1.x
- f643d0b9 - [mod] #313 (closed): Update to poetry.lock v1.1.x format
I get an error when installing :
$ poetry install Installing dependencies from lock file Package operations: 0 installs, 12 updates, 0 removals - Updating zipp (3.1.0 -> 1.2.0) - Updating importlib-metadata (1.7.0 -> 2.0.0) - Updating iniconfig (1.0.0 -> 1.1.1) - Updating aiohttp (3.6.2 -> 3.6.3) - Updating coverage (5.2.1 -> 5.3) - Updating identify (1.4.25 -> 1.5.6) - Updating nodeenv (1.4.0 -> 1.5.0) - Updating pytest (6.0.0 -> 6.1.1) - Updating regex (2020.7.14 -> 2020.10.15) - Updating virtualenv (20.0.28 -> 20.0.35) - Updating duniterpy (0.56.0 -> 0.58.0) - Updating pytest-cov (2.10.0 -> 2.10.1) - Installing silkaj (0.8.0) [EnvCommandError] Command ['/home/bob/.cache/pypoetry/virtualenvs/silkaj-HKHTj0CI-py3.7/bin/pip', 'install', '-e', '/mnt/DATA/Users/bob/Documents/Associatif/June/Developpement/dev-silkaj/silkaj-multi_output'] errored with the following return code 1, and output: Obtaining file:///mnt/DATA/Users/bob/Documents/Associatif/June/Developpement/dev-silkaj/silkaj-multi_output Installing build dependencies: started Installing build dependencies: finished with status 'error' Complete output from command /home/bob/.cache/pypoetry/virtualenvs/silkaj-HKHTj0CI-py3.7/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-m90ktr67 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- poetry-core>=1.1.0: Collecting poetry-core>=1.1.0 Could not find a version that satisfies the requirement poetry-core>=1.1.0 (from versions: 1.0.0a0, 1.0.0a1, 1.0.0a2, 1.0.0a3, 1.0.0a4, 1.0.0a5, 1.0.0a6, 1.0.0a7, 1.0.0a8, 1.0.0a9, 1.0.0b1, 1.0.0rc1, 1.0.0rc2, 1.0.0rc3, 1.0.0) No matching distribution found for poetry-core>=1.1.0 ---------------------------------------- Command "/home/bob/.cache/pypoetry/virtualenvs/silkaj-HKHTj0CI-py3.7/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-m90ktr67 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- poetry-core>=1.1.0" failed with error code 1 in None
The package poetry-core is available for 1.0.0 on PyPi. How did you get 1.1.0 ?
In the commit message and the MR, you write you want poetry-core 1.0.0, but in the requirements, you set :
requires = ["poetry-core>=1.1.0"]
Edited by matograineadded 2 commits
- e2014fd0 - [mod] #313 (closed): Upgrade to Poetry v1.1.x
- 6895d7bd - [mod] #313 (closed): Update to poetry.lock v1.1.x format
I understand that this change will only accelerate the build with Pip, and change almost nothing during dev.
I understand that I have to run
poetry self update
to use the poetry.lock in v1.1.0 format. How is it that I couldpoetry install
with a poetry 1.0.2 if you need poetry 1.1.0 to install ? edit - OK, I read poetry 1.0 might not be able to install a poetry.lock v1.1.You can merge.
Edited by matograineadded 3 commits
-
7d67a826 - 1 commit from branch
dev
- 479ea41d - [mod] #313 (closed): Upgrade to Poetry v1.1.x
- 6a9bc455 - [mod] #313 (closed): Update to poetry.lock v1.1.x format
-
7d67a826 - 1 commit from branch
enabled an automatic merge when the pipeline for 6a9bc455 succeeds
By @matograine on !149 (comment 24166):
I got an error installing in my dev directory ; however, cloning and installing in a clean dir did not return any issue. The raised error is not related to your changes.
Copying the error for information :
$ poetry install Installing dependencies from lock file Package operations: 0 installs, 1 update, 0 removals • Updating regex (2020.10.15 -> 2020.10.23): Failed EnvCommandError Command ['/home/bob/.cache/pypoetry/virtualenvs/silkaj-HKHTj0CI-py3.7/bin/pip', 'install', '--no-deps', '-U', 'file:///home/bob/.cache/pypoetry/artifacts/7c/36/0b/d8c48c5c77d275338c6bc8e63e8ab2e8b61e6a75af8dc45b87ec3b49f2/regex-2020.10.23-cp37-cp37m-manylinux2010_x86_64.whl'] errored with the following return code 1, and output: regex-2020.10.23-cp37-cp37m-manylinux2010_x86_64.whl is not a supported wheel on this platform. at ~/.local/lib/python3.7/site-packages/poetry/utils/env.py:1074 in _run 1070│ output = subprocess.check_output( 1071│ cmd, stderr=subprocess.STDOUT, **kwargs 1072│ ) 1073│ except CalledProcessError as e: → 1074│ raise EnvCommandError(e, input=input_) 1075│ 1076│ return decode(output) 1077│ 1078│ def execute(self, bin, *args, **kwargs):
Edited by MoulI updated
regex
to the version2020.10.23
in the last patch of !148 (merged). Actually, I am not sure what's wrong.Let's continue here this discussion, since it's related to this change. A ticket can be open if this issue persists.
Edited by Moul@matograine, is the issue you are encountering fixed so far?