diff --git a/README.md b/README.md index 1f4025c..ef4f368 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ The linprog-modeler, akin to the [PuLP](https://github.com/coin-or/pulp) interfa To employ this modeler in AtCoder contests, one must: -1. Carefully copy the entirety of the [modeler.py](./modeler.py) script and incorporate it into your submission file. +1. Carefully copy the entirety of the [lpmodeler/model.py](./lpmodeler/model.py) script and incorporate it into your submission file. 2. Develop your algorithmic solution within the submission. For additional information and a concrete example, please consult the [Submission Example](https://atcoder.jp/contests/abc326/submissions/49047540). diff --git a/lpmodeler/__init__.py b/lpmodeler/__init__.py new file mode 100644 index 0000000..3dc1f76 --- /dev/null +++ b/lpmodeler/__init__.py @@ -0,0 +1 @@ +__version__ = "0.1.0" diff --git a/modeler.py b/lpmodeler/model.py similarity index 100% rename from modeler.py rename to lpmodeler/model.py diff --git a/lpmodeler/py.typed b/lpmodeler/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/pyproject.toml b/pyproject.toml index 3e07844..49ec3fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,12 @@ [tool.poetry] -name = "linprog-modeler" +name = "lpmodeler" version = "0.1.0" -description = "" +description = "Simple wrapper around scipy.optimize.linprog for linear and mixed integer programming problems" authors = ["hitonanode <32937551+hitonanode@users.noreply.github.com>"] readme = "README.md" +packages = [ + { include = "lpmodeler" }, +] [tool.poetry.dependencies] python = "^3.11" diff --git a/test/test_corner_usage.py b/test/test_corner_usage.py index 00728d4..99d28dc 100644 --- a/test/test_corner_usage.py +++ b/test/test_corner_usage.py @@ -1,6 +1,6 @@ import pytest -from modeler import LPModel, LPStatus, LPVar, LPVarType +from lpmodeler.model import LPModel, LPStatus, LPVar, LPVarType def test_lpvar_objective() -> None: diff --git a/test/test_lp_var_types.py b/test/test_lp_var_types.py index c401b59..32ab4f1 100644 --- a/test/test_lp_var_types.py +++ b/test/test_lp_var_types.py @@ -1,6 +1,6 @@ import pytest -from modeler import LPModel, LPStatus, LPVar, LPVarType +from lpmodeler.model import LPModel, LPStatus, LPVar, LPVarType def test_semicontinuos() -> None: diff --git a/test/test_maximize.py b/test/test_maximize.py index 67d4e6f..01a1904 100644 --- a/test/test_maximize.py +++ b/test/test_maximize.py @@ -1,6 +1,6 @@ import pytest -from modeler import LPModel, LPSense, LPStatus, LPVar +from lpmodeler.model import LPModel, LPSense, LPStatus, LPVar def test_maximize() -> None: diff --git a/test/test_model.py b/test/test_model.py index b3353e0..3178a52 100644 --- a/test/test_model.py +++ b/test/test_model.py @@ -1,6 +1,6 @@ import pytest -from modeler import LPModel, LPStatus, LPVar +from lpmodeler.model import LPModel, LPStatus, LPVar def test_simple_lp() -> None: