Skip to content

Instantly share code, notes, and snippets.

@sanzoghenzo
Created August 19, 2020 09:09
Show Gist options
  • Save sanzoghenzo/c0ce4aa0d6bc62db3883484879d720c9 to your computer and use it in GitHub Desktop.
Save sanzoghenzo/c0ce4aa0d6bc62db3883484879d720c9 to your computer and use it in GitHub Desktop.
poetry dependency with extra issue
Using virtualenv: C:\Users\a.ghensi\AppData\Local\pypoetry\Cache\virtualenvs\test-poetry-_wgRV3sz-py3.7
sws: 3 packages found for pyswsutils *
Using version ^2.1.0 for pyswsutils
Updating dependencies
Resolving dependencies...
1: fact: test-poetry is 0.1.0
1: derived: test-poetry
1: fact: test-poetry depends on pyswsutils (^2.1.0)
1: fact: test-poetry depends on pytest (^5.2)
1: fact: test-poetry depends on pytest (^5.2)
1: selecting test-poetry (0.1.0)
1: derived: pytest (^5.2)
1: derived: pyswsutils (^2.1.0)
1: fact: pytest (5.4.3) depends on py (>=1.5.0)
1: fact: pytest (5.4.3) depends on packaging (*)
1: fact: pytest (5.4.3) depends on attrs (>=17.4.0)
1: fact: pytest (5.4.3) depends on more-itertools (>=4.0.0)
1: fact: pytest (5.4.3) depends on pluggy (>=0.12,<1.0)
1: fact: pytest (5.4.3) depends on wcwidth (*)
1: fact: pytest (5.4.3) depends on importlib-metadata (>=0.12)
1: fact: pytest (5.4.3) depends on atomicwrites (>=1.0)
1: fact: pytest (5.4.3) depends on colorama (*)
1: selecting pytest (5.4.3)
1: derived: colorama (*)
1: derived: atomicwrites (>=1.0)
1: derived: importlib-metadata (>=0.12)
1: derived: wcwidth (*)
1: derived: pluggy (>=0.12,<1.0)
1: derived: more-itertools (>=4.0.0)
1: derived: attrs (>=17.4.0)
1: derived: packaging (*)
1: derived: py (>=1.5.0)
sws: 1 packages found for pyswsutils >=2.1.0,<3.0.0
1: fact: pyswsutils (2.1.0) depends on attrs (>=19.3.0,<20.0.0)
1: fact: pyswsutils (2.1.0) depends on cached_property (>=1.5.1,<2.0.0)
1: fact: pyswsutils (2.1.0) depends on fnc (>=0.4.0,<0.5.0)
1: fact: pyswsutils (2.1.0) depends on inflection (>=0.5.0,<0.6.0)
1: fact: pyswsutils (2.1.0) depends on munch (>=2.5.0,<3.0.0)
1: fact: pyswsutils (2.1.0) depends on pandas (>=1.1.0,<2.0.0)
1: fact: pyswsutils (2.1.0) depends on pint (>=0.14,<0.15)
1: fact: pyswsutils (2.1.0) depends on scipy (>=1.5.2,<2.0.0)
1: fact: pyswsutils (2.1.0) depends on GDAL (3.1.2)
1: fact: pyswsutils (2.1.0) depends on ezdxf (>=0.13.1,<0.14.0)
1: fact: pyswsutils (2.1.0) depends on fiona (1.8.13)
1: fact: pyswsutils (2.1.0) depends on geopandas (>=0.8.1,<0.9.0)
1: fact: pyswsutils (2.1.0) depends on matplotlib (>=3.3.0,<4.0.0)
1: fact: pyswsutils (2.1.0) depends on openpyxl (>=3.0.4,<4.0.0)
1: fact: pyswsutils (2.1.0) depends on pydantic (>=1.6.1,<2.0.0)
1: fact: pyswsutils (2.1.0) depends on pymongo (>=3.11.0,<4.0.0)
1: fact: pyswsutils (2.1.0) depends on pyproj (>=2.6.1,<3.0.0)
1: fact: pyswsutils (2.1.0) depends on pyqt5 (>=5.15.0,<6.0.0)
1: fact: pyswsutils (2.1.0) depends on shapely (>=1.7.0,<2.0.0)
1: fact: pyswsutils (2.1.0) depends on xlrd (>=1.2.0,<2.0.0)
1: fact: pyswsutils (2.1.0) depends on xlsxwriter (>=1.3.0,<2.0.0)
1: selecting pyswsutils (2.1.0)
1: derived: xlsxwriter (>=1.3.0,<2.0.0)
1: derived: xlrd (>=1.2.0,<2.0.0)
1: derived: shapely (>=1.7.0,<2.0.0)
1: derived: pyqt5 (>=5.15.0,<6.0.0)
1: derived: pyproj (>=2.6.1,<3.0.0)
1: derived: pymongo (>=3.11.0,<4.0.0)
1: derived: pydantic (>=1.6.1,<2.0.0)
1: derived: openpyxl (>=3.0.4,<4.0.0)
1: derived: matplotlib (>=3.3.0,<4.0.0)
1: derived: geopandas (>=0.8.1,<0.9.0)
1: derived: fiona (1.8.13)
1: derived: ezdxf (>=0.13.1,<0.14.0)
1: derived: GDAL (3.1.2)
1: derived: scipy (>=1.5.2,<2.0.0)
1: derived: pint (>=0.14,<0.15)
1: derived: pandas (>=1.1.0,<2.0.0)
1: derived: munch (>=2.5.0,<3.0.0)
1: derived: inflection (>=0.5.0,<0.6.0)
1: derived: fnc (>=0.4.0,<0.5.0)
1: derived: cached_property (>=1.5.1,<2.0.0)
1: derived: attrs (>=19.3.0,<20.0.0)
sws: 4 packages found for xlsxwriter >=1.3.0,<2.0.0
sws: 1 packages found for xlrd >=1.2.0,<2.0.0
sws: 1 packages found for shapely >=1.7.0,<2.0.0
sws: 1 packages found for pyqt5 >=5.15.0,<6.0.0
sws: 2 packages found for pyproj >=2.6.1,<3.0.0
sws: 1 packages found for pymongo >=3.11.0,<4.0.0
sws: 1 packages found for pydantic >=1.6.1,<2.0.0
sws: 1 packages found for openpyxl >=3.0.4,<4.0.0
sws: 2 packages found for matplotlib >=3.3.0,<4.0.0
sws: 1 packages found for geopandas >=0.8.1,<0.9.0
sws: 1 packages found for fiona 1.8.13
sws: 1 packages found for ezdxf >=0.13.1,<0.14.0
sws: 1 packages found for gdal 3.1.2
1: selecting colorama (0.4.3)
1: selecting atomicwrites (1.4.0)
1: fact: importlib-metadata (1.7.0) depends on zipp (>=0.5)
1: selecting importlib-metadata (1.7.0)
1: derived: zipp (>=0.5)
1: selecting wcwidth (0.2.5)
1: fact: pluggy (0.13.1) depends on importlib-metadata (>=0.12)
1: selecting pluggy (0.13.1)
1: selecting more-itertools (8.4.0)
1: selecting attrs (19.3.0)
1: fact: packaging (20.4) depends on pyparsing (>=2.0.2)
1: fact: packaging (20.4) depends on six (*)
1: selecting packaging (20.4)
1: derived: six (*)
1: derived: pyparsing (>=2.0.2)
1: selecting py (1.9.0)
1: selecting xlrd (1.2.0)
1: selecting shapely (1.7.0)
1: selecting pyqt5 (5.15.0)
1: selecting pymongo (3.11.0)
1: selecting pydantic (1.6.1)
1: selecting openpyxl (3.0.4)
1: selecting geopandas (0.8.1)
sws: Invalid constraint (mock; python_version < "3.4" ; extra == "test") found in fiona-1.8.13 dependencies, skipping
1: selecting fiona (1.8.13)
1: selecting ezdxf (0.13.1)
1: selecting gdal (3.1.2)
1: selecting scipy (1.5.2)
1: fact: pint (0.14) depends on packaging (*)
1: fact: pint (0.14) depends on importlib-metadata (*)
1: selecting pint (0.14)
1: fact: pandas (1.1.0) depends on python-dateutil (>=2.7.3)
1: fact: pandas (1.1.0) depends on pytz (>=2017.2)
1: fact: pandas (1.1.0) depends on numpy (>=1.15.4)
1: selecting pandas (1.1.0)
1: derived: numpy (>=1.15.4)
1: derived: pytz (>=2017.2)
1: derived: python-dateutil (>=2.7.3)
1: fact: munch (2.5.0) depends on six (*)
1: selecting munch (2.5.0)
1: selecting inflection (0.5.0)
1: selecting fnc (0.4.0)
1: selecting cached-property (1.5.1)
1: selecting zipp (3.1.0)
1: selecting six (1.15.0)
1: selecting pyparsing (2.4.7)
1: selecting numpy (1.19.1)
1: selecting pytz (2020.1)
1: fact: python-dateutil (2.8.1) depends on six (>=1.5)
1: selecting python-dateutil (2.8.1)
1: selecting pyproj (2.6.1.post1)
1: selecting matplotlib (3.3.1)
1: selecting xlsxwriter (1.3.3)
1: Version solving took 2.125 seconds.
1: Tried 1 solutions.
[SolverProblemError]
Because no versions of pyswsutils match >2.1.0,<3.0.0
and pyswsutils (2.1.0) depends on xlsxwriter (>=1.3.0,<2.0.0), pyswsutils (>=2.1.0,<3.0.0) requires xlsxwriter (>=1.3.0,<2.0.0).
So, because no versions of xlsxwriter match >=1.3.0,<2.0.0
and test-poetry depends on pyswsutils (^2.1.0), version solving failed.
Traceback (most recent call last):
File "d:\users\a.ghensi\miniconda3\lib\site-packages\clikit\console_application.py", line 131, in run
status_code = command.handle(parsed_args, io)
File "d:\users\a.ghensi\miniconda3\lib\site-packages\clikit\api\command\command.py", line 120, in handle
status_code = self._do_handle(args, io)
File "d:\users\a.ghensi\miniconda3\lib\site-packages\clikit\api\command\command.py", line 171, in _do_handle
return getattr(handler, handler_method)(args, io, self)
File "d:\users\a.ghensi\miniconda3\lib\site-packages\cleo\commands\command.py", line 92, in wrap_handle
return self.handle()
File "d:\users\a.ghensi\miniconda3\lib\site-packages\poetry\console\commands\add.py", line 156, in handle
status = installer.run()
File "d:\users\a.ghensi\miniconda3\lib\site-packages\poetry\installation\installer.py", line 74, in run
self._do_install(local_repo)
File "d:\users\a.ghensi\miniconda3\lib\site-packages\poetry\installation\installer.py", line 225, in _do_install
ops = solver.solve(use_latest=whitelist)
File "d:\users\a.ghensi\miniconda3\lib\site-packages\poetry\puzzle\solver.py", line 36, in solve
packages, depths = self._solve(use_latest=use_latest)
File "d:\users\a.ghensi\miniconda3\lib\site-packages\poetry\puzzle\solver.py", line 190, in _solve
raise SolverProblemError(e)
[tool.poetry]
name = "pyswsutils"
version = "2.1.0"
description = "Various SWS python utilities."
authors = ["Andrea Ghensi <[email protected]>"]
packages = [
{ include = "pyswsutils"}
]
[tool.poetry.dependencies]
python = "~3.7"
attrs = "^19.3.0"
cached_property = "^1.5.1"
fnc = "^0.4.0"
inflection = "^0.5.0"
munch = "^2.5.0"
pandas = "^1.1.0"
pint = "^0.14"
scipy = "^1.5.2"
# optional dependencies
ezdxf = { version = "^0.13.1", optional = true }
fiona = { version = "1.8.13", optional = true }
GDAL = { version = "3.1.2", optional = true }
geopandas = { version = "^0.8.1", optional = true }
matplotlib = { version = "^3.3.0", optional = true }
openpyxl = { version = "^3.0.4", optional = true }
pydantic = { version = "^1.6.1", optional = true }
pymongo = { version = "^3.11.0", optional = true }
pyproj = { version = "^2.6.1", optional = true }
pyqt5 = { version ="^5.15.0", optional = true }
shapely = { version = "^1.7.0", optional = true }
xlrd = { version = "^1.2.0", optional = true }
xlsxwriter = { version = "^1.3.0", optional = true }
[tool.poetry.extras]
mongo = ["pymongo", "pydantic"]
plaxis = ["pydantic"] # TODO: plxscripting
gis = [
"ezdxf", "GDAL", "geopandas", "matplotlib", "pyproj", "shapely", "fiona"
]
charts = ["pyqt5", "ezdxf", "matplotlib"]
excel = ["openpyxl", "xlrd", "xlsxwriter"]
all = [
"environ-config",
"ezdxf",
"fiona",
"gdal",
"geopandas",
"matplotlib",
"openpyxl",
"pydantic",
"pymongo",
"pyproj",
"pyqt5",
"shapely",
"xlrd",
"xlsxwriter"
]
[tool.poetry.dev-dependencies]
pytest = "^5.2"
coverage = {extras = ["toml"], version = "^5.1"}
mypy = "^0.780"
safety = "^1.9.0"
typeguard = "^2.9.1"
xdoctest = "^0.12.0"
pre-commit = "^2.5.1"
portray = "^1.4.0"
mongomock = "^3.20.0"
cattrs = "^1.0.0"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment