cmeel 0.51.1__tar.gz → 0.52.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.51.1
3
+ Version: 0.52.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
@@ -66,7 +66,7 @@ This Install in `${PYTHON_SITELIB}/cmeel.prefix/`:
66
66
  packages work out of the box
67
67
  - Existing `${PYTHON_SITELIB}/cmeel.prefix` are automatically added to `$CMAKE_PREFIX_PATH`, so we can build CMake
68
68
  packages whose dependencies are provided by other packages installed with cmeel
69
- - Stuff in `${PYTHON_SITELIB}/cmeel.prefix/bin` is exposed via `cmeel.run:cmeel_run`
69
+ - Stuff in `${PYTHON_SITELIB}/cmeel.prefix/bin` is exposed via `cmeel.run:cmeel_run`, or copied if start with a shebang
70
70
 
71
71
  ## Basic pyproject.toml example
72
72
 
@@ -34,7 +34,7 @@ This Install in `${PYTHON_SITELIB}/cmeel.prefix/`:
34
34
  packages work out of the box
35
35
  - Existing `${PYTHON_SITELIB}/cmeel.prefix` are automatically added to `$CMAKE_PREFIX_PATH`, so we can build CMake
36
36
  packages whose dependencies are provided by other packages installed with cmeel
37
- - Stuff in `${PYTHON_SITELIB}/cmeel.prefix/bin` is exposed via `cmeel.run:cmeel_run`
37
+ - Stuff in `${PYTHON_SITELIB}/cmeel.prefix/bin` is exposed via `cmeel.run:cmeel_run`, or copied if start with a shebang
38
38
 
39
39
  ## Basic pyproject.toml example
40
40
 
@@ -0,0 +1,10 @@
1
+ """Cmeel constants."""
2
+ import os
3
+ import sys
4
+
5
+ CMEEL_PREFIX = "cmeel.prefix"
6
+ SITELIB = os.path.join( # noqa: PTH118
7
+ "lib",
8
+ "python" + ".".join(sys.version.split(".")[:2]),
9
+ "site-packages",
10
+ )
@@ -173,8 +173,10 @@ def expose_bin(install: Path, wheel_dir: Path, distribution: str):
173
173
  scripts.mkdir(parents=True)
174
174
  for fn in bin_dir.glob("*"):
175
175
  executable = scripts / fn.name
176
+ with fn.open("rb") as fo:
177
+ is_script = fo.read(2) == b"#!"
176
178
  with executable.open("w") as fe:
177
- fe.write(EXECUTABLE)
179
+ fe.write(fn.read_text() if is_script else EXECUTABLE)
178
180
  executable.chmod(0o755)
179
181
 
180
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.51.1"
26
+ version = "0.52.1"
27
27
 
28
28
  [tool.poetry.dependencies]
29
29
  cmake = {optional = true, version = "^3.27.7"}
@@ -40,10 +40,10 @@ build = ["cmake", "git-archive-all", "packaging", "wheel"]
40
40
  optional = true
41
41
 
42
42
  [tool.poetry.group.dev.dependencies]
43
- black = "^23.10.1"
43
+ black = "^23.11.0"
44
44
  furo = "^2023.9.10"
45
45
  isort = "^5.12.0"
46
- mypy = "^1.6.1"
46
+ mypy = "^1.7.0"
47
47
  myst-parser = "^2.0.0"
48
48
  requests = "^2.31.0"
49
49
  ruff = "^0.1.4"
@@ -1,8 +0,0 @@
1
- """Cmeel constants."""
2
- import os
3
- import sys
4
-
5
- CMEEL_PREFIX = "cmeel.prefix"
6
- SITELIB = os.sep.join( # noqa: PTH118
7
- ["lib", "python" + ".".join(sys.version.split(".")[:2]), "site-packages"],
8
- )
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