Skip to content

Commit

Permalink
Regenerate some lockfiles with Poetry 1.5 (dependabot#7862)
Browse files Browse the repository at this point in the history
Otherwise some specs fail depending on order:

```
[dependabot-core-dev] ~/python $ rspec spec/dependabot/python/file_parser/pyproject_files_parser_spec.rb:145
Run options: include {:locations=>{"./spec/dependabot/python/file_parser/pyproject_files_parser_spec.rb"=>[145]}}

Randomized with seed 52409
F

Failures:

  1) Dependabot::Python::FileParser::PyprojectFilesParser parse poetry files with a lockfile with a path dependency excludes the path dependency
     Failure/Error: dep.name if dep.production?

     RuntimeError:
       Unsupported package_manager pip
     # /home/dependabot/common/lib/dependabot/dependency.rb:15:in `production_check_for_package_manager'
     # /home/dependabot/common/lib/dependabot/dependency.rb:97:in `production?'
     # ./lib/dependabot/python/file_parser/pyproject_files_parser.rb:199:in `block (2 levels) in parse_production_dependency_names'
     # ./lib/dependabot/python/file_parser/pyproject_files_parser.rb:198:in `each'
     # ./lib/dependabot/python/file_parser/pyproject_files_parser.rb:198:in `filter_map'
     # ./lib/dependabot/python/file_parser/pyproject_files_parser.rb:198:in `rescue in block in parse_production_dependency_names'
     # ./lib/dependabot/python/file_parser/pyproject_files_parser.rb:188:in `block in parse_production_dependency_names'
     # /home/dependabot/common/lib/dependabot/shared_helpers.rb:55:in `block in in_a_temporary_directory'
     # /home/dependabot/common/lib/dependabot/shared_helpers.rb:55:in `chdir'
     # /home/dependabot/common/lib/dependabot/shared_helpers.rb:55:in `in_a_temporary_directory'
     # ./lib/dependabot/python/file_parser/pyproject_files_parser.rb:184:in `parse_production_dependency_names'
     # ./lib/dependabot/python/file_parser/pyproject_files_parser.rb:180:in `production_dependency_names'
     # ./lib/dependabot/python/file_parser/pyproject_files_parser.rb:171:in `block in lockfile_dependencies'
     # ./lib/dependabot/python/file_parser/pyproject_files_parser.rb:159:in `each'
     # ./lib/dependabot/python/file_parser/pyproject_files_parser.rb:159:in `lockfile_dependencies'
     # ./lib/dependabot/python/file_parser/pyproject_files_parser.rb:30:in `dependency_set'
     # ./spec/dependabot/python/file_parser/pyproject_files_parser_spec.rb:24:in `block (3 levels) in <top (required)>'
     # ./spec/dependabot/python/file_parser/pyproject_files_parser_spec.rb:143:in `block (5 levels) in <top (required)>'
     # ./spec/dependabot/python/file_parser/pyproject_files_parser_spec.rb:146:in `block (5 levels) in <top (required)>'
     # ./spec/spec_helper.rb:24:in `block (2 levels) in <top (required)>'
     # /home/dependabot/common/spec/spec_helper.rb:45:in `block (2 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # Dependabot::SharedHelpers::HelperSubprocessFailed:
     #   Path /home/dependabot/python/tmp/toml for toml does not exist
     #   Creating virtualenv pythonprojects-Ixb30aeJ-py3.11 in /home/dependabot/.cache/pypoetry/virtualenvs
     #
     #   Because no versions of pytest match !=3.7.4
     #    and pytest (3.7.4) depends on setuptools (*), every version of pytest requires setuptools (*).
     #   So, because no versions of setuptools match *
     #    and pythonprojects depends on pytest (*), version solving failed.
     #   ./lib/dependabot/python/helpers.rb:22:in `run_poetry_command'

Top 1 slowest examples (0.65481 seconds, 99.6% of total time):
  Dependabot::Python::FileParser::PyprojectFilesParser parse poetry files with a lockfile with a path dependency excludes the path dependency
    0.65481 seconds ./spec/dependabot/python/file_parser/pyproject_files_parser_spec.rb:145

Finished in 0.6576 seconds (files took 3.02 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/dependabot/python/file_parser/pyproject_files_parser_spec.rb:145 # Dependabot::Python::FileParser::PyprojectFilesParser parse poetry files with a lockfile with a path dependency excludes the path dependency

```
  • Loading branch information
deivid-rodriguez committed Aug 21, 2023
1 parent 04cdde1 commit 08ca9ef
Show file tree
Hide file tree
Showing 2 changed files with 284 additions and 126 deletions.
202 changes: 141 additions & 61 deletions python/spec/fixtures/poetry_locks/dir_dependency.lock
Original file line number Diff line number Diff line change
@@ -1,115 +1,195 @@
# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand.

[[package]]
category = "main"
description = "Atomic file writes."
name = "atomicwrites"
version = "1.4.1"
description = "Atomic file writes."
optional = false
platform = "*"
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
version = "1.2.1"
files = [
{file = "atomicwrites-1.4.1.tar.gz", hash = "sha256:81b2c9071a49367a7f770170e5eec8cb66567cfbbc8c73d20ce5ca4a8d71cf11"},
]

[[package]]
category = "main"
description = "Classes Without Boilerplate"
name = "attrs"
version = "23.1.0"
description = "Classes Without Boilerplate"
optional = false
platform = "*"
python-versions = "*"
version = "18.2.0"
python-versions = ">=3.7"
files = [
{file = "attrs-23.1.0-py3-none-any.whl", hash = "sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04"},
{file = "attrs-23.1.0.tar.gz", hash = "sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015"},
]

[package.dependencies]
importlib-metadata = {version = "*", markers = "python_version < \"3.8\""}

[package.extras]
cov = ["attrs[tests]", "coverage[toml] (>=5.3)"]
dev = ["attrs[docs,tests]", "pre-commit"]
docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier", "zope-interface"]
tests = ["attrs[tests-no-zope]", "zope-interface"]
tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]

[[package]]
category = "main"
description = "Cross-platform colored terminal text."
name = "colorama"
version = "0.4.6"
description = "Cross-platform colored terminal text."
optional = false
platform = "UNKNOWN"
python-versions = "*"
version = "0.3.9"

[package.requirements]
platform = "win32"
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"
files = [
{file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"},
{file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},
]

[[package]]
category = "main"
description = "More routines for operating on iterables, beyond itertools"
name = "more-itertools"
name = "importlib-metadata"
version = "6.7.0"
description = "Read metadata from Python packages"
optional = false
platform = "*"
python-versions = "*"
version = "4.3.0"
python-versions = ">=3.7"
files = [
{file = "importlib_metadata-6.7.0-py3-none-any.whl", hash = "sha256:cb52082e659e97afc5dac71e79de97d8681de3aa07ff18578330904a9d18e5b5"},
{file = "importlib_metadata-6.7.0.tar.gz", hash = "sha256:1aaf550d4f73e5d6783e7acb77aec43d49da8017410afae93822cc9cca98c4d4"},
]

[package.dependencies]
six = ">=1.0.0,<2.0.0"
typing-extensions = {version = ">=3.6.4", markers = "python_version < \"3.8\""}
zipp = ">=0.5"

[package.extras]
docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
perf = ["ipython"]
testing = ["flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefs", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-mypy (>=0.9.1)", "pytest-perf (>=0.9.2)", "pytest-ruff"]

[[package]]
name = "more-itertools"
version = "9.1.0"
description = "More routines for operating on iterables, beyond itertools"
optional = false
python-versions = ">=3.7"
files = [
{file = "more-itertools-9.1.0.tar.gz", hash = "sha256:cabaa341ad0389ea83c17a94566a53ae4c9d07349861ecb14dc6d0345cf9ac5d"},
{file = "more_itertools-9.1.0-py3-none-any.whl", hash = "sha256:d2bc7f02446e86a68911e58ded76d6561eea00cddfb2a91e7019bbb586c799f3"},
]

[[package]]
category = "main"
description = "plugin and hook calling mechanisms for python"
name = "pluggy"
version = "1.2.0"
description = "plugin and hook calling mechanisms for python"
optional = false
platform = "unix"
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
version = "0.7.1"
python-versions = ">=3.7"
files = [
{file = "pluggy-1.2.0-py3-none-any.whl", hash = "sha256:c2fd55a7d7a3863cba1a013e4e2414658b1d07b6bc57b3919e0c63c9abb99849"},
{file = "pluggy-1.2.0.tar.gz", hash = "sha256:d12f0c4b579b15f5e054301bb226ee85eeeba08ffec228092f8defbaa3a4c4b3"},
]

[package.dependencies]
importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""}

[package.extras]
dev = ["pre-commit", "tox"]
testing = ["pytest", "pytest-benchmark"]

[[package]]
category = "main"
description = "library with cross-python path, ini-parsing, io, code, log facilities"
name = "py"
version = "1.11.0"
description = "library with cross-python path, ini-parsing, io, code, log facilities"
optional = false
platform = "unix"
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
version = "1.6.0"
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
files = [
{file = "py-1.11.0-py2.py3-none-any.whl", hash = "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"},
{file = "py-1.11.0.tar.gz", hash = "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719"},
]

[[package]]
category = "main"
description = "pytest: simple powerful testing with Python"
name = "pytest"
version = "3.7.4"
description = "pytest: simple powerful testing with Python"
optional = false
platform = "unix"
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
version = "3.7.4"
files = [
{file = "pytest-3.7.4-py2.py3-none-any.whl", hash = "sha256:ad0c7db7b5d4081631e0155f5c61b80ad76ce148551aaafe3a718d65a7508b18"},
{file = "pytest-3.7.4.tar.gz", hash = "sha256:2d7c49e931316cc7d1638a3e5f54f5d7b4e5225972b3c9838f3584788d27f349"},
]

[package.dependencies]
atomicwrites = ">=1.0"
attrs = ">=17.4.0"
colorama = {version = "*", markers = "sys_platform == \"win32\""}
more-itertools = ">=4.0.0"
pluggy = ">=0.7"
py = ">=1.5.0"
setuptools = "*"
six = ">=1.10.0"

[package.dependencies.colorama]
platform = "win32"
version = "*"
[[package]]
name = "setuptools"
version = "68.0.0"
description = "Easily download, build, install, upgrade, and uninstall Python packages"
optional = false
python-versions = ">=3.7"
files = [
{file = "setuptools-68.0.0-py3-none-any.whl", hash = "sha256:11e52c67415a381d10d6b462ced9cfb97066179f0e871399e006c4ab101fc85f"},
{file = "setuptools-68.0.0.tar.gz", hash = "sha256:baf1fdb41c6da4cd2eae722e135500da913332ab3f2f5c7d33af9b492acb5235"},
]

[package.extras]
docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-hoverxref (<2)", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (==0.8.3)", "sphinx-reredirects", "sphinxcontrib-towncrier"]
testing = ["build[virtualenv]", "filelock (>=3.4.0)", "flake8-2020", "ini2toml[lite] (>=0.9)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "pip (>=19.1)", "pip-run (>=8.8)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-mypy (>=0.9.1)", "pytest-perf", "pytest-ruff", "pytest-timeout", "pytest-xdist", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"]
testing-integration = ["build[virtualenv]", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"]

[[package]]
category = "main"
description = "Python 2 and 3 compatibility utilities"
name = "six"
version = "1.16.0"
description = "Python 2 and 3 compatibility utilities"
optional = false
platform = "*"
python-versions = "*"
version = "1.11.0"
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
files = [
{file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"},
{file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"},
]

[[package]]
category = "main"
description = ""
name = "toml"
version = "0.10.0"
description = ""
optional = false
platform = "*"
python-versions = "*"
version = "0.10.0"
files = []
develop = false

[package.source]
reference = ""
type = "directory"
url = "../toml"

[metadata.hashes]
atomicwrites = ["0312ad34fcad8fac3704d441f7b317e50af620823353ec657a53e981f92920c0", "ec9ae8adaae229e4f8446952d204a3e4b5fdd2d099f9be3aaf556120135fb3ee"]
attrs = ["10cbf6e27dbce8c30807caf056c8eb50917e0eaafe86347671b57254006c3e69", "ca4be454458f9dec299268d472aaa5a11f67a4ff70093396e1ceae9c76cf4bbb"]
colorama = ["463f8483208e921368c9f306094eb6f725c6ca42b0f97e313cb5d5512459feda", "48eb22f4f8461b1df5734a074b57042430fb06e1d61bd1e11b078c0fe6d7a1f1"]
more-itertools = ["c187a73da93e7a8acc0001572aebc7e3c69daf7bf6881a2cea10650bd4420092", "c476b5d3a34e12d40130bc2f935028b5f636df8f372dc2c1c01dc19681b2039e", "fcbfeaea0be121980e15bc97b3817b5202ca73d0eae185b4550cbfce2a3ebb3d"]
pluggy = ["6e3836e39f4d36ae72840833db137f7b7d35105079aee6ec4a62d9f80d594dd1", "95eb8364a4708392bae89035f45341871286a333f749c3141c20573d2b3876e1"]
py = ["06a30435d058473046be836d3fc4f27167fd84c45b99704f2fb5509ef61f9af1", "50402e9d1c9005d759426988a492e0edaadb7f4e68bcddfea586bc7432d009c6"]
pytest = ["2d7c49e931316cc7d1638a3e5f54f5d7b4e5225972b3c9838f3584788d27f349", "ad0c7db7b5d4081631e0155f5c61b80ad76ce148551aaafe3a718d65a7508b18"]
six = ["70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9", "832dc0e10feb1aa2c68dcc57dbb658f1c7e65b9b61af69048abc87a2db00a0eb"]
toml = []
[[package]]
name = "typing-extensions"
version = "4.7.1"
description = "Backported and Experimental Type Hints for Python 3.7+"
optional = false
python-versions = ">=3.7"
files = [
{file = "typing_extensions-4.7.1-py3-none-any.whl", hash = "sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36"},
{file = "typing_extensions-4.7.1.tar.gz", hash = "sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2"},
]

[[package]]
name = "zipp"
version = "3.15.0"
description = "Backport of pathlib-compatible object wrapper for zip files"
optional = false
python-versions = ">=3.7"
files = [
{file = "zipp-3.15.0-py3-none-any.whl", hash = "sha256:48904fc76a60e542af151aded95726c1a5c34ed43ab4134b597665c86d7ad556"},
{file = "zipp-3.15.0.tar.gz", hash = "sha256:112929ad649da941c23de50f356a2b5570c954b65150642bccdd66bf194d224b"},
]

[package.extras]
docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)"]

[metadata]
lock-version = "2.0"
python-versions = "^3.7"
content-hash = "282f615475785b19b24fdb9205c2f22a16e1162bc1ae56f8d9d17ee68dcf5119"
Loading

0 comments on commit 08ca9ef

Please sign in to comment.