iesopt 2.2.0__tar.gz → 2.2.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iesopt
3
- Version: 2.2.0
3
+ Version: 2.2.1
4
4
  Summary: IESopt -- an Integrated Energy System Optimization framework.
5
5
  Home-page: https://github.com/ait-energy/iesopt
6
6
  License: MIT
@@ -10,7 +10,7 @@ Author-email: 8915976+sstroemer@users.noreply.github.com
10
10
  Maintainer: Stefan Strömer
11
11
  Maintainer-email: 8915976+sstroemer@users.noreply.github.com
12
12
  Requires-Python: >=3.11,<4.0
13
- Classifier: Development Status :: 4 - Beta
13
+ Classifier: Development Status :: 5 - Production/Stable
14
14
  Classifier: Intended Audience :: Science/Research
15
15
  Classifier: License :: OSI Approved :: MIT License
16
16
  Classifier: Programming Language :: Python :: 3
@@ -24,7 +24,7 @@ Requires-Dist: pandas (>=2.0.0,<3.0.0)
24
24
  Requires-Dist: pathlib (>=1.0.0,<2.0.0)
25
25
  Requires-Dist: pydantic (>=2.7.4,<3.0.0)
26
26
  Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
27
- Project-URL: Changelog, https://github.com/ait-energy/iesopt/blob/main/CHANGELOG.md
27
+ Project-URL: Changelog, https://github.com/ait-energy/iesopt/releases
28
28
  Project-URL: Documentation, https://ait-energy.github.io/iesopt
29
29
  Project-URL: Issues, https://github.com/ait-energy/iesopt/issues
30
30
  Project-URL: Repository, https://github.com/ait-energy/iesopt
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "iesopt"
7
- version = "2.2.0"
7
+ version = "2.2.1"
8
8
  description = "IESopt -- an Integrated Energy System Optimization framework."
9
9
  keywords = ["integrated energy systems", "optimization", "energy model", "modelling"]
10
10
  authors = [
@@ -16,7 +16,7 @@ maintainers = [
16
16
  readme = "README.md"
17
17
  license = "MIT"
18
18
  classifiers = [
19
- "Development Status :: 4 - Beta",
19
+ "Development Status :: 5 - Production/Stable",
20
20
  "Intended Audience :: Science/Research",
21
21
  "License :: OSI Approved :: MIT License",
22
22
  "Programming Language :: Python :: 3.10",
@@ -29,7 +29,7 @@ repository = "https://github.com/ait-energy/iesopt"
29
29
 
30
30
  [tool.poetry.urls]
31
31
  "Issues" = "https://github.com/ait-energy/iesopt/issues"
32
- "Changelog" = "https://github.com/ait-energy/iesopt/blob/main/CHANGELOG.md"
32
+ "Changelog" = "https://github.com/ait-energy/iesopt/releases"
33
33
 
34
34
  [tool.poetry.dependencies]
35
35
  python = "^3.11"
@@ -13,9 +13,9 @@ def _strtobool(val: str):
13
13
  class Config:
14
14
  DEFAULTS = {
15
15
  "IESOPT_JULIA": "1.11.2",
16
- "IESOPT_CORE": "2.1.0",
16
+ "IESOPT_CORE": "2.2.0",
17
17
  "IESOPT_JUMP": "1.23.5",
18
- "IESOPT_SOLVER_HIGHS": "1.12.1",
18
+ "IESOPT_SOLVER_HIGHS": "1.12.2",
19
19
  "IESOPT_MULTITHREADED": "no", # yes, no
20
20
  "IESOPT_OPTIMIZATION": "latency", # rapid, latency, normal, performance
21
21
  }
@@ -16,6 +16,7 @@ def lookup_package(name: str):
16
16
  "gurobi": ("Gurobi", "2e9cd046-0924-5485-92f1-d5272153d98b"),
17
17
  "cplex": ("CPLEX", "a076750e-1247-5638-91d2-ce28b192dca0"),
18
18
  "ipopt": ("Ipopt", "b6b21f68-93f8-5de0-b562-5493be1d77c9"),
19
+ "pythoncall": ("PythonCall", "6099a3de-0909-46bc-b1f4-468b9a2dfc0d"),
19
20
  }
20
21
 
21
22
  if name in lookup:
@@ -49,8 +50,10 @@ def setup_julia():
49
50
  )
50
51
 
51
52
  if Path("juliapkg.json").exists():
52
- logger.warning("Found `juliapkg.json` file; removing it to prevent potential conflicts")
53
- Path("juliapkg.json").unlink()
53
+ raise Exception("Found `juliapkg.json` file; remove it to prevent potential conflicts")
54
+
55
+ if (Path(__file__).parent / ".." / "juliapkg.json").exists():
56
+ (Path(__file__).parent / ".." / "juliapkg.json").unlink()
54
57
 
55
58
  # # Check for local SSL certificate file, that can interfere with Julia setup.
56
59
  # _ssl = None
@@ -66,6 +69,7 @@ def setup_julia():
66
69
 
67
70
  # Set Julia version.
68
71
  juliapkg.require_julia(f"={Config.get('julia')}", target=target)
72
+ # add_package(juliapkg.add, "pythoncall", "0.9.23", target)
69
73
 
70
74
  # Set versions of "core" packages.
71
75
  add_package(juliapkg.add, "jump", Config.get("jump"), target)
@@ -57,7 +57,7 @@ def jl_isa(obj, julia_type: str):
57
57
 
58
58
  def jl_docs(obj: str, module: str = "IESopt"):
59
59
  """Get the documentation string of a Julia object inside the IESopt module."""
60
- return str(jl_safe_seval(f"@doc {module}.{obj}"))
60
+ return "".join(el for el in jl_safe_seval(f"@doc {module}.{obj}").text)
61
61
 
62
62
 
63
63
  def recursive_convert_py2jl(item):
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes