Skip to content
Snippets Groups Projects

#313: Poetry v1.1

Merged Moul requested to merge 313_poetry_v1.1 into dev

Update to poetry.lock v1.1.0 format

  • Not compatible with Poetry v1.0
  • Update dependencies

Upgrade to Poetry v1.1.x

Close #313 (closed).

Edited by Moul

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Moul changed milestone to %0.9.0

    changed milestone to %0.9.0

  • Moul added Dep Dev Env labels

    added Dep Dev Env labels

  • Moul added 2 commits

    added 2 commits

    Compare with previous version

  • Moul changed the description

    changed the description

  • 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 matograine
  • Moul added 2 commits

    added 2 commits

    Compare with previous version

  • Author Owner

    Thanks for checking! In fact, I mixed up between poetry and poetry-core.

  • matograine approved this merge request

    approved this merge request

  • matograine unapproved this merge request

    unapproved this merge request

  • 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 could poetry 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 matograine
  • matograine approved this merge request

    approved this merge request

  • Moul added 3 commits

    added 3 commits

    Compare with previous version

  • Moul enabled an automatic merge when the pipeline for 6a9bc455 succeeds

    enabled an automatic merge when the pipeline for 6a9bc455 succeeds

  • merged

  • Author Owner

    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 Moul
  • Author Owner

    I updated regex to the version 2020.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
  • Author Owner

    @matograine, is the issue you are encountering fixed so far?

  • It is. I don't know how.

  • Author Owner

    Great!

Please register or sign in to reply
Loading