Skip to content

Commit

Permalink
feat(bindgen): add pyproject.toml short description for wheel summary
Browse files Browse the repository at this point in the history
Closes #949
  • Loading branch information
thewtex committed Oct 11, 2023
1 parent c346d89 commit 5c1a3a5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion packages/dicom/python/itkwasm-dicom/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/bindgen/python/package-py-project-toml.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion src/bindgen/python/resources/template.pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5c1a3a5

Please sign in to comment.