Skip to content

Commit 38f969c

Browse files
committed
Make this repository as distributable package
1 parent ae0d9ec commit 38f969c

9 files changed

+11
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The linprog-modeler, akin to the [PuLP](https://github.com/coin-or/pulp) interfa
66

77
To employ this modeler in AtCoder contests, one must:
88

9-
1. Carefully copy the entirety of the [modeler.py](./modeler.py) script and incorporate it into your submission file.
9+
1. Carefully copy the entirety of the [lpmodeler/model.py](./lpmodeler/model.py) script and incorporate it into your submission file.
1010
2. Develop your algorithmic solution within the submission.
1111

1212
For additional information and a concrete example, please consult the [Submission Example](https://atcoder.jp/contests/abc326/submissions/49047540).

lpmodeler/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.1.0"

modeler.py lpmodeler/model.py

File renamed without changes.

lpmodeler/py.typed

Whitespace-only changes.

pyproject.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
[tool.poetry]
2-
name = "linprog-modeler"
2+
name = "lpmodeler"
33
version = "0.1.0"
4-
description = ""
4+
description = "Simple wrapper around scipy.optimize.linprog for linear and mixed integer programming problems"
55
authors = ["hitonanode <32937551+hitonanode@users.noreply.github.com>"]
66
readme = "README.md"
7+
packages = [
8+
{ include = "lpmodeler" },
9+
]
710

811
[tool.poetry.dependencies]
912
python = "^3.11"

test/test_corner_usage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from modeler import LPModel, LPStatus, LPVar, LPVarType
3+
from lpmodeler.model import LPModel, LPStatus, LPVar, LPVarType
44

55

66
def test_lpvar_objective() -> None:

test/test_lp_var_types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from modeler import LPModel, LPStatus, LPVar, LPVarType
3+
from lpmodeler.model import LPModel, LPStatus, LPVar, LPVarType
44

55

66
def test_semicontinuos() -> None:

test/test_maximize.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from modeler import LPModel, LPSense, LPStatus, LPVar
3+
from lpmodeler.model import LPModel, LPSense, LPStatus, LPVar
44

55

66
def test_maximize() -> None:

test/test_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from modeler import LPModel, LPStatus, LPVar
3+
from lpmodeler.model import LPModel, LPStatus, LPVar
44

55

66
def test_simple_lp() -> None:

0 commit comments

Comments
 (0)