mirror of
https://github.com/simonw/dclient.git
synced 2026-09-29 13:24:14 +02:00
Migrate from setup.py to pyproject.toml for uv compatibility
- Replace setup.py with pyproject.toml using uv_build backend - Add dependency-groups.dev for test dependencies - Configure flat layout with module-root = "" - Fix pre-existing test failures (updated error message, optional mock) - Add uv.lock and dist/ to .gitignore - uv run pytest (39 passed) and uv build both work https://claude.ai/code/session_01DoiJf9Gbvbw2asN9yvP6dx
This commit is contained in:
parent
2a8836b272
commit
9715510431
4 changed files with 46 additions and 48 deletions
|
|
@ -120,7 +120,7 @@ def make_format_test(content, arg):
|
|||
input_data=SIMPLE_CSV,
|
||||
cmd_args=[],
|
||||
table_exists=False,
|
||||
expected_output="Inserting rows\nError: Table not found: table1\n",
|
||||
expected_output="Inserting rows\nError: Table not found\n",
|
||||
should_error=True,
|
||||
expected_table_json=None,
|
||||
),
|
||||
|
|
@ -296,7 +296,7 @@ def test_insert_against_datasette(
|
|||
|
||||
return loop.run_until_complete(run())
|
||||
|
||||
httpx_mock.add_callback(custom_response)
|
||||
httpx_mock.add_callback(custom_response, is_optional=should_error)
|
||||
|
||||
path = pathlib.Path(tmpdir) / "data.txt"
|
||||
if isinstance(input_data, str):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue