-
Notifications
You must be signed in to change notification settings - Fork 295
Commit 87f7f1a
authored
While building from a fresh setup, I noticed that uv is a requirement:
```
python3 -m hatch build
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /Users/fokko.driesprong/Library/Python/3.9/lib/python/site-packages/hatch/cli/__init__.py:221 in │
│ main │
│ │
│ 218 │
│ 219 def main(): # no cov │
│ 220 │ try: │
│ ❱ 221 │ │ hatch(prog_name='hatch', windows_expand_args=False) │
│ 222 │ except Exception: # noqa: BLE001 │
│ 223 │ │ import sys │
│ 224 │
│ │
│ /Users/fokko.driesprong/Library/Python/3.9/lib/python/site-packages/click/core.py:1161 in │
│ __call__ │
│ │
│ /Users/fokko.driesprong/Library/Python/3.9/lib/python/site-packages/click/core.py:1082 in main │
│ │
│ /Users/fokko.driesprong/Library/Python/3.9/lib/python/site-packages/click/core.py:1697 in invoke │
│ │
│ /Users/fokko.driesprong/Library/Python/3.9/lib/python/site-packages/click/core.py:1443 in invoke │
│ │
│ /Users/fokko.driesprong/Library/Python/3.9/lib/python/site-packages/click/core.py:788 in invoke │
│ │
│ /Users/fokko.driesprong/Library/Python/3.9/lib/python/site-packages/click/decorators.py:45 in │
│ new_func │
│ │
│ /Users/fokko.driesprong/Library/Python/3.9/lib/python/site-packages/hatch/cli/build/__init__.py: │
│ 72 in build │
│ │
│ 69 │ │ targets = ('sdist', 'wheel') │
│ 70 │ │
│ 71 │ if app.project.metadata.build.build_backend != 'hatchling.build': │
│ ❱ 72 │ │ for context in app.runner_context(['hatch-build']): │
│ 73 │ │ │ context.add_shell_command( │
│ 74 │ │ │ │ 'build-sdist' if targets == ('sdist',) else 'build-wheel' if targets == │
│ 75 │ │ │ ) │
│ │
│ /Users/fokko.driesprong/Library/Python/3.9/lib/python/site-packages/hatch/cli/application.py:224 │
│ in runner_context │
│ │
│ 221 │ │ │ │ context = ExecutionContext(environment) │
│ 222 │ │ │ │ yield context │
│ 223 │ │ │ │ │
│ ❱ 224 │ │ │ │ self.prepare_environment(environment) │
│ 225 │ │ │ │ with EnvVars(context.env_vars): │
│ 226 │ │ │ │ │ self.run_shell_commands(context) │
│ 227 │
│ │
│ /Users/fokko.driesprong/Library/Python/3.9/lib/python/site-packages/hatch/cli/application.py:111 │
│ in prepare_environment │
│ │
│ 108 │ │ │ self.env_metadata.reset(environment) │
│ 109 │ │ │ │
│ 110 │ │ │ with environment.app_status_creation(): │
│ ❱ 111 │ │ │ │ environment.create() │
│ 112 │ │ │ │
│ 113 │ │ │ if not environment.skip_install: │
│ 114 │ │ │ │ if environment.pre_install_commands: │
│ │
│ /Users/fokko.driesprong/Library/Python/3.9/lib/python/site-packages/hatch/env/virtual.py:157 in │
│ create │
│ │
│ 154 """ │
│ 155 │ │ │ │ ) │
│ 156 │ │ │
│ ❱ 157 │ │ with self.expose_uv(): │
│ 158 │ │ │ self.virtual_env.create(self.parent_python, allow_system_packages=self.confi │
│ 159 │ │
│ 160 │ def remove(self): │
│ │
│ /Users/fokko.driesprong/Library/Python/3.9/lib/python/site-packages/hatch/utils/structures.py:38 │
│ in __enter__ │
│ │
│ 35 │ │
│ 36 │ def __enter__(self) -> None: │
│ 37 │ │ os.environ.clear() │
│ ❱ 38 │ │ os.environ.update(self) │
│ 39 │ │
│ 40 │ def __exit__( │
│ 41 │ │ self, exc_type: type[BaseException] | None, exc_value: BaseException | None, tra │
│ │
│ /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python │
│ 3.9/_collections_abc.py:942 in update │
│ │
│ 939 │ │ ''' │
│ 940 │ │ if isinstance(other, Mapping): │
│ 941 │ │ │ for key in other: │
│ ❱ 942 │ │ │ │ self[key] = other[key] │
│ 943 │ │ elif hasattr(other, "keys"): │
│ 944 │ │ │ for key in other.keys(): │
│ 945 │ │ │ │ self[key] = other[key] │
│ │
│ /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python │
│ 3.9/os.py:684 in __setitem__ │
│ │
│ 681 │ │
│ 682 │ def __setitem__(self, key, value): │
│ 683 │ │ key = self.encodekey(key) │
│ ❱ 684 │ │ value = self.encodevalue(value) │
│ 685 │ │ putenv(key, value) │
│ 686 │ │ self._data[key] = value │
│ 687 │
│ │
│ /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python │
│ 3.9/os.py:756 in encode │
│ │
│ 753 │ │ encoding = sys.getfilesystemencoding() │
│ 754 │ │ def encode(value): │
│ 755 │ │ │ if not isinstance(value, str): │
│ ❱ 756 │ │ │ │ raise TypeError("str expected, not %s" % type(value).__name__) │
│ 757 │ │ │ return value.encode(encoding, 'surrogateescape') │
│ 758 │ │ def decode(value): │
│ 759 │ │ │ return value.decode(encoding, 'surrogateescape') │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: str expected, not NoneType
```
1 parent 9277a17 commit 87f7f1aCopy full SHA for 87f7f1a
File tree
Expand file treeCollapse file tree
1 file changed
+6
-2
lines changedFilter options
- bindings/python
Expand file treeCollapse file tree
1 file changed
+6
-2
lines changed+6-2Lines changed: 6 additions & 2 deletions
- Display the source diff
- Display the rich diff
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
| 27 | + | |
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
29 | 31 |
| |
| 32 | + | |
| 33 | + | |
30 | 34 |
| |
31 | 35 |
| |
32 | 36 |
| |
| |||
37 | 41 |
| |
38 | 42 |
| |
39 | 43 |
| |
40 |
| - | |
| 44 | + |
0 commit comments