Skip to content

Commit

Permalink
new (utils.setup_reader): try to parse version found in setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
finswimmer committed Sep 24, 2020
1 parent 5af22a5 commit 9df7adf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion poetry/utils/setup_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from typing import Tuple
from typing import Union

from poetry.core.semver import Version

from ._compat import PY35
from ._compat import Path
from ._compat import basestring
Expand Down Expand Up @@ -109,7 +111,7 @@ def read_setup_cfg(
name = parser.get("metadata", "name")

if parser.has_option("metadata", "version"):
version = parser.get("metadata", "version")
version = Version.parse(parser.get("metadata", "version")).text

install_requires = []
extras_require = {}
Expand Down

0 comments on commit 9df7adf

Please sign in to comment.