Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logging of total time and attempted_solutions #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions mixology/version_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,8 @@ def solve(self): # type: () -> SolverResult

i += 1

logger.info("Version solving took {:.3f} seconds.\n")
logger.info(
"Tried {} solutions.".format(
time.time() - start, self._solution.attempted_solutions
)
)
logger.info("Version solving took {:.3f} seconds.".format(time.time() - start))
logger.info("Tried {} solutions.".format(self._solution.attempted_solutions))

return SolverResult(
self._solution.decisions, self._solution.attempted_solutions
Expand Down
2 changes: 1 addition & 1 deletion tests/package_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ def convert_dependency(self, dependency): # type: (Dependency) -> Constraint
)
for range in dependency.constraint.ranges
]
constraint = Union.of(ranges)
constraint = Union.of(*ranges)

return Constraint(dependency.name, constraint)