cmeel 0.52.1__tar.gz → 0.53.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.

Potentially problematic release.


This version of cmeel might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cmeel
3
- Version: 0.52.1
3
+ Version: 0.53.1
4
4
  Summary: Create Wheel from CMake projects
5
5
  Home-page: https://github.com/cmake-wheel/cmeel
6
6
  License: BSD-2-Clause
@@ -25,7 +25,7 @@ Requires-Dist: cmake (>=3.27.7,<4.0.0) ; extra == "build"
25
25
  Requires-Dist: git-archive-all (>=1.23.1,<2.0.0) ; extra == "build"
26
26
  Requires-Dist: packaging (>=23.2,<24.0) ; extra == "build"
27
27
  Requires-Dist: tomli (>=2.0.1,<3.0.0) ; python_version < "3.11"
28
- Requires-Dist: wheel (>=0.41.1,<0.42.0) ; extra == "build"
28
+ Requires-Dist: wheel (>=0.41.1,<0.43.0) ; extra == "build"
29
29
  Project-URL: Documentation, https://cmeel.readthedocs.io/
30
30
  Project-URL: changelog, https://github.com/cmake-wheel/cmeel/blob/main/CHANGELOG.md
31
31
  Description-Content-Type: text/markdown
@@ -1,8 +1,12 @@
1
1
  """Append cmeel prefix sitelib to sys.path."""
2
+ import os
2
3
  import sys
3
4
  from pathlib import Path
4
5
 
5
- from .consts import CMEEL_PREFIX, SITELIB
6
+ CMEEL_PREFIX = "cmeel.prefix"
7
+ SITELIB = os.sep.join( # noqa: PTH118
8
+ ["lib", "python" + ".".join(sys.version.split(".")[:2]), "site-packages"],
9
+ )
6
10
 
7
11
  sys.path.append(str(Path(__file__).parent.parent / CMEEL_PREFIX / SITELIB))
8
12
 
@@ -20,10 +20,7 @@ PATCH_IGNORE = [
20
20
  "The next patch would delete",
21
21
  ]
22
22
 
23
- EXECUTABLE = """#!python
24
- from cmeel.run import cmeel_run
25
- cmeel_run()
26
- """
23
+ EXECUTABLE = ["#!python", "from cmeel.run import cmeel_run", "cmeel_run()"]
27
24
 
28
25
 
29
26
  class PatchError(CalledProcessError):
@@ -176,7 +173,10 @@ def expose_bin(install: Path, wheel_dir: Path, distribution: str):
176
173
  with fn.open("rb") as fo:
177
174
  is_script = fo.read(2) == b"#!"
178
175
  with executable.open("w") as fe:
179
- fe.write(fn.read_text() if is_script else EXECUTABLE)
176
+ content = fn.read_text().split("\n") if is_script else EXECUTABLE
177
+ if "python" in content[0]:
178
+ content = ["#!python", *content[1:]]
179
+ fe.write("\n".join(content))
180
180
  executable.chmod(0o755)
181
181
 
182
182
 
@@ -23,7 +23,7 @@ include = ['cmeel.pth']
23
23
  license = "BSD-2-Clause"
24
24
  name = "cmeel"
25
25
  readme = "README.md"
26
- version = "0.52.1"
26
+ version = "0.53.1"
27
27
 
28
28
  [tool.poetry.dependencies]
29
29
  cmake = {optional = true, version = "^3.27.7"}
@@ -31,7 +31,7 @@ git-archive-all = {optional = true, version = "^1.23.1"}
31
31
  packaging = {optional = true, version = "^23.2"}
32
32
  python = "^3.8"
33
33
  tomli = {python = "< 3.11", version = "^2.0.1"}
34
- wheel = {optional = true, version = "^0.41.1"}
34
+ wheel = {optional = true, version = ">=0.41.1,<0.43.0"}
35
35
 
36
36
  [tool.poetry.extras]
37
37
  build = ["cmake", "git-archive-all", "packaging", "wheel"]
@@ -43,7 +43,7 @@ optional = true
43
43
  black = "^23.11.0"
44
44
  furo = "^2023.9.10"
45
45
  isort = "^5.12.0"
46
- mypy = "^1.7.0"
46
+ mypy = "^1.7.1"
47
47
  myst-parser = "^2.0.0"
48
48
  requests = "^2.31.0"
49
49
  ruff = "^0.1.4"
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes