Skip to content

Commit

Permalink
Stop installing custom python versions in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
feelepxyz committed Apr 13, 2021
1 parent 89e6f47 commit df6d5d3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,10 @@
let(:requirements_file) do
Dependabot::DependencyFile.new(
name: "runtime.txt",
content: "python-3.7.1"
content: fixture(
"requirements",
"version_not_specified_runtime.txt"
)
)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
require "dependabot/dependency_file"
require "dependabot/python/update_checker/pipenv_version_resolver"

namespace = Dependabot::Python::UpdateChecker
RSpec.describe namespace::PipenvVersionResolver do
RSpec.describe Dependabot::Python::UpdateChecker::PipenvVersionResolver do
let(:resolver) do
described_class.new(
dependency: dependency,
Expand Down
2 changes: 1 addition & 1 deletion python/spec/fixtures/pip_compile_files/met_marker.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
flaky; python_version < '3.7'
flaky; python_version < '2.8'
pytest
pytest-xdist
mock
Expand Down
2 changes: 1 addition & 1 deletion python/spec/fixtures/pyproject_files/exact_version.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ authors = ["Dependabot <support@dependabot.com>"]
description = "Various small python projects."

[tool.poetry.dependencies]
python = "^3.7"
python = "*"
requests = "2.18.0"
2 changes: 1 addition & 1 deletion python/spec/fixtures/pyproject_locks/exact_version.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ version = "1.21.1"
[metadata]
content-hash = "a8d5762e953227a34625a209e9cc67a1c6fb2d7a971845829cf2f9cf61a5bd7c"
platform = "*"
python-versions = "^3.7"
python-versions = "*"

[metadata.hashes]
certifi = ["13e698f54293db9f89122b0581843a782ad0934a4fe0172d2a980ba77fc61bb7", "9fa520c1bacfb634fa7af20a76bcbd3d5fb390481724c597da32c719a7dca4b0"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apipkg==1.5 # via execnet
atomicwrites==1.3.0 # via pytest
attrs==17.3.0
execnet==1.6.0 # via pytest-xdist
flaky==3.5.0 ; python_version < "3.7"
flaky==3.5.0 ; python_version < "2.8"
mock==3.0.3
more-itertools==7.0.0 # via pytest
pluggy==0.9.0 # via pytest
Expand Down

0 comments on commit df6d5d3

Please sign in to comment.