File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,11 +100,9 @@ def _update_pyproject_toml(
100100 "worker_template" , package_name
101101 )
102102 entry_points ["datashare.activities" ]["activities" ] = activities_entry_point
103-
104- hatch_sdist = pyproject_toml ["tool" ]["hatch" ]["build" ]["targets" ]["sdist" ]
105- hatch_sdist ["only-include" ] = [
106- i if i != "worker_template" else package_name
107- for i in hatch_sdist ["only-include" ]
103+ hatch_sdist = pyproject_toml ["tool" ]["hatch" ]["build" ]["targets" ]["wheel" ]
104+ hatch_sdist ["packages" ] = [
105+ i if i != "worker_template" else package_name for i in hatch_sdist ["packages" ]
108106 ]
109107
110108 return pyproject_toml
Original file line number Diff line number Diff line change @@ -43,5 +43,5 @@ async def test_init_project(
4343 acts = entry_points ["datashare.activities" ]["activities" ]
4444 assert acts == "test_project.activities:ACTIVITIES"
4545
46- hatch_sdist = pyproject_toml ["tool" ]["hatch" ]["build" ]["targets" ]["sdist " ]
47- assert hatch_sdist ["only-include " ] == ["test_project" ]
46+ hatch_sdist = pyproject_toml ["tool" ]["hatch" ]["build" ]["targets" ]["wheel " ]
47+ assert hatch_sdist ["packages " ] == ["test_project" ]
Original file line number Diff line number Diff line change 11[project ]
22name = " datashare-worker-template"
3- version = " 0.1.4 "
3+ version = " 0.1.5 "
44description = " Datashare worker template"
55authors = [
66 { name = " Clément Doumouro" , email = " cdoumouro@icij.org" },
@@ -60,8 +60,13 @@ requires = ["hatchling"]
6060build-backend = " hatchling.build"
6161package = [" worker_template" ]
6262
63+ [tool .hatch .build .targets .wheel ]
64+ packages = [" worker_template" ]
65+
6366[tool .hatch .build .targets .sdist ]
64- only-include = [" worker_template" ]
67+ exclude = [
68+ " tests"
69+ ]
6570
6671[tool .pytest .ini_options ]
6772asyncio_mode = " auto"
You can’t perform that action at this time.
0 commit comments