Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels