pyoframe 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pyoframe/constants.py CHANGED
@@ -2,7 +2,6 @@
2
2
  File containing shared constants used across the package.
3
3
  """
4
4
 
5
- import importlib.metadata
6
5
  import typing
7
6
  from enum import Enum
8
7
  from typing import Literal, Optional
@@ -11,8 +10,9 @@ import polars as pl
11
10
  import pyoptinterface as poi
12
11
  from packaging import version
13
12
 
14
- # We want to try and support multiple major versions of polars
15
- POLARS_VERSION = version.parse(importlib.metadata.version("polars"))
13
+ # Constant to help split our logic depending on the polars version in use.
14
+ # This approach is compatible with polars-lts-cpu.
15
+ POLARS_VERSION = version.parse(pl.__version__)
16
16
 
17
17
  COEF_KEY = "__coeff"
18
18
  VAR_KEY = "__variable_id"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pyoframe
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Blazing fast linear program interface
5
5
  Author-email: Bravos Power <dev@bravospower.com>
6
6
  Project-URL: Homepage, https://bravos-power.github.io/pyoframe/
@@ -1,14 +1,14 @@
1
1
  pyoframe/__init__.py,sha256=nEN0OgqhevtsvxEiPbJLzwPojf3ngYAoT90M_1mc4kM,477
2
2
  pyoframe/_arithmetic.py,sha256=LvuxI4pFYuqrqus4FxcIekUwXfdEMEVWBR-1h5hF7Ac,14764
3
- pyoframe/constants.py,sha256=STQZufgBCS7QTmyQTK_8lINYNSDjXCxVFgF1mXoXen4,3769
3
+ pyoframe/constants.py,sha256=Dy1sCzykZlmkbvgsc5ckujqXPuYmsKkD3stANU0qr5Y,3784
4
4
  pyoframe/core.py,sha256=C9T0wFDAgcsFVxwnLOYqQ2j9fwnCCS_usjlGSME_qmo,62743
5
5
  pyoframe/model.py,sha256=d_WyLzdfroDYAtyXs3Ie_jo5c_CGxTX5qPT4vCVaiB8,11967
6
6
  pyoframe/model_element.py,sha256=nCfe56CRWr6bwP8irUd2bmLAEGQ-7GwOQtWeqz2WxtU,5944
7
7
  pyoframe/monkey_patch.py,sha256=9IfS14G6IPabmM9z80jzi_D4Rq0Mdx5aUCA39Yi2tgE,2044
8
8
  pyoframe/objective.py,sha256=PBWxj30QkFlsvY6ijZ6KjyKdrJARD4to0ieF6GUqaQU,3238
9
9
  pyoframe/util.py,sha256=Oyk8xh6FJHlb04X_cM4lN0UzdnKLXAMrKfyOf7IexiA,13480
10
- pyoframe-0.1.1.dist-info/LICENSE,sha256=dkwA40ZzT-3x6eu2a6mf_o7PNSqHbdsyaFNhLxGHNQs,1065
11
- pyoframe-0.1.1.dist-info/METADATA,sha256=fJyV3KirCM8UBwOGNYODi_6mRxKKU7chhvuYpWob4bE,3518
12
- pyoframe-0.1.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
13
- pyoframe-0.1.1.dist-info/top_level.txt,sha256=10z3OOJSVLriQ0IrFLMH8CH9zByugPWolqhlHlkNjV4,9
14
- pyoframe-0.1.1.dist-info/RECORD,,
10
+ pyoframe-0.1.2.dist-info/LICENSE,sha256=dkwA40ZzT-3x6eu2a6mf_o7PNSqHbdsyaFNhLxGHNQs,1065
11
+ pyoframe-0.1.2.dist-info/METADATA,sha256=VEtEP6xMwf3R2cbBXXPgfGRnn13qv-QjYwMY6FGR24I,3518
12
+ pyoframe-0.1.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
13
+ pyoframe-0.1.2.dist-info/top_level.txt,sha256=10z3OOJSVLriQ0IrFLMH8CH9zByugPWolqhlHlkNjV4,9
14
+ pyoframe-0.1.2.dist-info/RECORD,,