Skip to content

Commit

Permalink
DimaKudosh#203 Fixed pulp dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaKudosh committed Jan 9, 2021
1 parent 47ed94c commit 62e036a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion pydfs_lineup_optimizer/solvers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from pydfs_lineup_optimizer.solvers.pulp_solver import Solver, PuLPSolver
from pydfs_lineup_optimizer.solvers.base import Solver
from pydfs_lineup_optimizer.solvers.pulp_solver import PuLPSolver
from pydfs_lineup_optimizer.solvers.constants import SolverSign
from pydfs_lineup_optimizer.solvers.exceptions import SolverException, SolverInfeasibleSolutionException

Expand Down
8 changes: 4 additions & 4 deletions pydfs_lineup_optimizer/solvers/pulp_solver.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from pulp import LpProblem, LpMaximize, LpVariable, lpSum, LpStatusOptimal, LpBinary, LpInteger, PULP_CBC_CMD
from .base import Solver
from .constants import SolverSign
from .exceptions import SolverException, SolverInfeasibleSolutionException
from pydfs_lineup_optimizer.solvers.base import Solver
from pydfs_lineup_optimizer.solvers.constants import SolverSign
from pydfs_lineup_optimizer.solvers.exceptions import SolverException, SolverInfeasibleSolutionException


class PuLPSolver(Solver):
LP_SOLVER = PULP_CBC_CMD(verbose=False, msg=False)
LP_SOLVER = PULP_CBC_CMD(msg=False)

def __init__(self):
self.prob = LpProblem('Daily Fantasy Sports', LpMaximize)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
PuLP==2.0
PuLP==2.4
pytz
parameterized
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def read(fname):
author_email='[email protected]',
description='Tool for creating optimal lineups for daily fantasy sports',
keywords=['dfs', 'fantasy', 'sport', 'lineup', 'optimize', 'optimizer', 'nba', 'nfl', 'nhl', 'mlb'],
install_requires=['PuLP>=2.2', 'pytz'],
install_requires=['PuLP==2.4', 'pytz>=2020.5'],
long_description=read('README.md'),
long_description_content_type='text/markdown',
classifiers=[
Expand Down

0 comments on commit 62e036a

Please sign in to comment.