diff --git a/packages/compare-images/python/itkwasm-compare-images/pyproject.toml b/packages/compare-images/python/itkwasm-compare-images/pyproject.toml index e1efc21fd..b5cd11b13 100644 --- a/packages/compare-images/python/itkwasm-compare-images/pyproject.toml +++ b/packages/compare-images/python/itkwasm-compare-images/pyproject.toml @@ -6,7 +6,8 @@ build-backend = "hatchling.build" name = "itkwasm-compare-images" readme = "README.md" license = "Apache-2.0" -dynamic = ["version", "description"] +dynamic = ["version"] +description = "Compare images with a tolerance for regression testing." classifiers = [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", diff --git a/packages/compress-stringify/python/itkwasm-compress-stringify/pyproject.toml b/packages/compress-stringify/python/itkwasm-compress-stringify/pyproject.toml index aa1374020..85957eafb 100644 --- a/packages/compress-stringify/python/itkwasm-compress-stringify/pyproject.toml +++ b/packages/compress-stringify/python/itkwasm-compress-stringify/pyproject.toml @@ -6,7 +6,8 @@ build-backend = "hatchling.build" name = "itkwasm-compress-stringify" readme = "README.md" license = "Apache-2.0" -dynamic = ["version", "description"] +dynamic = ["version"] +description = "Zstandard compression and decompression and base64 encoding and decoding in WebAssembly." classifiers = [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", diff --git a/packages/dicom/python/itkwasm-dicom/pyproject.toml b/packages/dicom/python/itkwasm-dicom/pyproject.toml index db80d1731..8a0889d42 100644 --- a/packages/dicom/python/itkwasm-dicom/pyproject.toml +++ b/packages/dicom/python/itkwasm-dicom/pyproject.toml @@ -6,7 +6,8 @@ build-backend = "hatchling.build" name = "itkwasm-dicom" readme = "README.md" license = "Apache-2.0" -dynamic = ["version", "description"] +dynamic = ["version"] +description = "Read files and images related to DICOM file format." classifiers = [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", diff --git a/src/bindgen/python/package-py-project-toml.js b/src/bindgen/python/package-py-project-toml.js index 767c74837..74018803e 100644 --- a/src/bindgen/python/package-py-project-toml.js +++ b/src/bindgen/python/package-py-project-toml.js @@ -7,6 +7,7 @@ function packagePyProjectToml(packageName, packageDir, bindgenPyPackage, options let pyProjectToml = fs.readFileSync(bindgenResource('template.pyproject.toml'), {encoding:'utf8', flag:'r'}) pyProjectToml = pyProjectToml.replaceAll('@bindgenPackageName@', packageName) const repository = options.repository ?? 'https://github.com/InsightSoftwareConsortium/itk-wasm' + const bindgenPackageDescription = options.packageDescription let bindgenKeywords = '' let bindgenDependencies = '' let bindgenHatchEnvDependencies = '' @@ -49,6 +50,7 @@ serve = [ pyProjectToml = pyProjectToml.replaceAll('@bindgenHatchEnvScripts@', bindgenHatchEnvScripts) pyProjectToml = pyProjectToml.replaceAll('@bindgenProjectRepository@', repository) pyProjectToml = pyProjectToml.replaceAll('@bindgenPyPackage@', bindgenPyPackage) + pyProjectToml = pyProjectToml.replaceAll('@bindgenPackageDescription@', bindgenPackageDescription) const pyProjectTomlPath = path.join(packageDir, 'pyproject.toml') if (!fs.existsSync(pyProjectTomlPath)) { fs.writeFileSync(pyProjectTomlPath, pyProjectToml) diff --git a/src/bindgen/python/resources/template.pyproject.toml b/src/bindgen/python/resources/template.pyproject.toml index e93e7f14f..ea53d1d95 100644 --- a/src/bindgen/python/resources/template.pyproject.toml +++ b/src/bindgen/python/resources/template.pyproject.toml @@ -6,7 +6,8 @@ build-backend = "hatchling.build" name = "@bindgenPackageName@" readme = "README.md" license = "Apache-2.0" -dynamic = ["version", "description"] +dynamic = ["version"] +description = "@bindgenPackageDescription@" classifiers = [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python",