pyoframe 0.1.1__tar.gz → 0.1.2__tar.gz

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.
Files changed (25) hide show
  1. {pyoframe-0.1.1/src/pyoframe.egg-info → pyoframe-0.1.2}/PKG-INFO +1 -1
  2. {pyoframe-0.1.1 → pyoframe-0.1.2}/pyproject.toml +1 -1
  3. {pyoframe-0.1.1 → pyoframe-0.1.2}/src/pyoframe/constants.py +3 -3
  4. {pyoframe-0.1.1 → pyoframe-0.1.2/src/pyoframe.egg-info}/PKG-INFO +1 -1
  5. {pyoframe-0.1.1 → pyoframe-0.1.2}/LICENSE +0 -0
  6. {pyoframe-0.1.1 → pyoframe-0.1.2}/README.md +0 -0
  7. {pyoframe-0.1.1 → pyoframe-0.1.2}/setup.cfg +0 -0
  8. {pyoframe-0.1.1 → pyoframe-0.1.2}/src/pyoframe/__init__.py +0 -0
  9. {pyoframe-0.1.1 → pyoframe-0.1.2}/src/pyoframe/_arithmetic.py +0 -0
  10. {pyoframe-0.1.1 → pyoframe-0.1.2}/src/pyoframe/core.py +0 -0
  11. {pyoframe-0.1.1 → pyoframe-0.1.2}/src/pyoframe/model.py +0 -0
  12. {pyoframe-0.1.1 → pyoframe-0.1.2}/src/pyoframe/model_element.py +0 -0
  13. {pyoframe-0.1.1 → pyoframe-0.1.2}/src/pyoframe/monkey_patch.py +0 -0
  14. {pyoframe-0.1.1 → pyoframe-0.1.2}/src/pyoframe/objective.py +0 -0
  15. {pyoframe-0.1.1 → pyoframe-0.1.2}/src/pyoframe/util.py +0 -0
  16. {pyoframe-0.1.1 → pyoframe-0.1.2}/src/pyoframe.egg-info/SOURCES.txt +0 -0
  17. {pyoframe-0.1.1 → pyoframe-0.1.2}/src/pyoframe.egg-info/dependency_links.txt +0 -0
  18. {pyoframe-0.1.1 → pyoframe-0.1.2}/src/pyoframe.egg-info/requires.txt +0 -0
  19. {pyoframe-0.1.1 → pyoframe-0.1.2}/src/pyoframe.egg-info/top_level.txt +0 -0
  20. {pyoframe-0.1.1 → pyoframe-0.1.2}/tests/test_arithmetic.py +0 -0
  21. {pyoframe-0.1.1 → pyoframe-0.1.2}/tests/test_examples.py +0 -0
  22. {pyoframe-0.1.1 → pyoframe-0.1.2}/tests/test_io.py +0 -0
  23. {pyoframe-0.1.1 → pyoframe-0.1.2}/tests/test_model.py +0 -0
  24. {pyoframe-0.1.1 → pyoframe-0.1.2}/tests/test_operations.py +0 -0
  25. {pyoframe-0.1.1 → pyoframe-0.1.2}/tests/test_solver.py +0 -0
@@ -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/
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pyoframe"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  authors = [{ name = "Bravos Power", email = "dev@bravospower.com" }]
9
9
  description = "Blazing fast linear program interface"
10
10
  readme = "README.md"
@@ -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/
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes