Skip to content

Can't install 0.13.2 with Poetry #206

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

Closed
zupo opened this issue Feb 28, 2020 · 3 comments · Fixed by #214
Closed

Can't install 0.13.2 with Poetry #206

zupo opened this issue Feb 28, 2020 · 3 comments · Fixed by #214

Comments

@zupo
Copy link
Contributor

zupo commented Feb 28, 2020

TL;DR: Version 0.13.2 of openapi-core cannot be installed using Poetry. 0.13.1 can be installed fine.

More details

Given a minimal Poetry project:

[tool.poetry]
name = "test"
version = "0.1.0"
description = ""
authors = ["zupo"]

[tool.poetry.dependencies]
python = "^3.7"
openapi-core = "==0.12.0"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

I can install it:

➜  tmp$ poetry install
Creating virtualenv test-BBcLBBh7-py3.7 in /Users/zupo/Library/Caches/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies... (1.6s)

Writing lock file


Package operations: 12 installs, 0 updates, 0 removals

  - Installing six (1.14.0)
  - Installing zipp (3.0.0)
  - Installing attrs (19.3.0)
  - Installing importlib-metadata (1.5.0)
  - Installing pyrsistent (0.15.7)
  - Installing jsonschema (3.2.0)
  - Installing pyyaml (5.3)
  - Installing isodate (0.6.0)
  - Installing lazy-object-proxy (1.4.3)
  - Installing openapi-spec-validator (0.2.8)
  - Installing strict-rfc3339 (0.7)
  - Installing openapi-core (0.12.0)

Then I bump openapi-core version to 0.13.1. and update the project:

- openapi-core = "==0.12.0"
+ openapi-core = "==0.13.1"
➜  tmp$ poetry update
Updating dependencies
Resolving dependencies... (0.2s)

Writing lock file


Package operations: 0 installs, 12 updates, 0 removals

  - Updating six (1.14.0 /Users/zupo/Library/Caches/pypoetry/virtualenvs/test-BBcLBBh7-py3.7/lib/python3.7/site-packages -> 1.14.0)
  - Updating zipp (3.0.0 /Users/zupo/Library/Caches/pypoetry/virtualenvs/test-BBcLBBh7-py3.7/lib/python3.7/site-packages -> 3.0.0)
  - Updating attrs (19.3.0 /Users/zupo/Library/Caches/pypoetry/virtualenvs/test-BBcLBBh7-py3.7/lib/python3.7/site-packages -> 19.3.0)
  - Updating importlib-metadata (1.5.0 /Users/zupo/Library/Caches/pypoetry/virtualenvs/test-BBcLBBh7-py3.7/lib/python3.7/site-packages -> 1.5.0)
  - Updating pyrsistent (0.15.7 /Users/zupo/Library/Caches/pypoetry/virtualenvs/test-BBcLBBh7-py3.7/lib/python3.7/site-packages -> 0.15.7)
  - Updating jsonschema (3.2.0 /Users/zupo/Library/Caches/pypoetry/virtualenvs/test-BBcLBBh7-py3.7/lib/python3.7/site-packages -> 3.2.0)
  - Updating pyyaml (5.3 /Users/zupo/Library/Caches/pypoetry/virtualenvs/test-BBcLBBh7-py3.7/lib/python3.7/site-packages -> 5.3)
  - Updating isodate (0.6.0 /Users/zupo/Library/Caches/pypoetry/virtualenvs/test-BBcLBBh7-py3.7/lib/python3.7/site-packages -> 0.6.0)
  - Updating lazy-object-proxy (1.4.3 /Users/zupo/Library/Caches/pypoetry/virtualenvs/test-BBcLBBh7-py3.7/lib/python3.7/site-packages -> 1.4.3)
  - Updating openapi-spec-validator (0.2.8 /Users/zupo/Library/Caches/pypoetry/virtualenvs/test-BBcLBBh7-py3.7/lib/python3.7/site-packages -> 0.2.8)
  - Updating strict-rfc3339 (0.7 /Users/zupo/Library/Caches/pypoetry/virtualenvs/test-BBcLBBh7-py3.7/lib/python3.7/site-packages -> 0.7)
  - Updating openapi-core (0.12.0 /Users/zupo/Library/Caches/pypoetry/virtualenvs/test-BBcLBBh7-py3.7/lib/python3.7/site-packages -> 0.13.1)

Success! However, if I bump the version to 0.13.2, update/install fails:

- openapi-core = "==0.13.1"
+ openapi-core = "==0.13.2"
➜  tmp$ poetry update
Updating dependencies
Resolving dependencies... (1.7s)

[ValueError]
Could not parse version constraint: >="3.0"

The error is likely caused by this line in setup.cfg.

@p1c2u
Copy link
Collaborator

p1c2u commented Feb 28, 2020

Hi @zupo
which pip version are you using?

@zupo
Copy link
Contributor Author

zupo commented Feb 28, 2020

pip-19.2.3

@zupo
Copy link
Contributor Author

zupo commented Mar 2, 2020

Reported upstream: python-poetry/poetry#2119

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 a pull request may close this issue.

2 participants