pyproject.toml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Copyright (c) Jupyter Development Team.
  2. # Distributed under the terms of the Modified BSD License.
  3. [build-system]
  4. requires = [
  5. "hatchling",
  6. "jupyterlab>=4.0.0a36,<5.0.0",
  7. ]
  8. build-backend = "hatchling.build"
  9. [project]
  10. name = "test-hyphens"
  11. license = "BSD-3-Clause"
  12. version = "3.0.2"
  13. [tool.hatch.build.targets.wheel.shared-data]
  14. "test_hyphens/labextension/static" = "share/jupyter/labextensions/test-hyphens/static"
  15. "test_hyphens/labextension/package.json" = "share/jupyter/labextensions/test-hyphens/package.json"
  16. [tool.hatch.build.targets.sdist]
  17. exclude = [
  18. ".github",
  19. ]
  20. [tool.hatch.build.hooks.jupyter-builder]
  21. dependencies = [
  22. "hatch-jupyter-builder>=0.9.1",
  23. ]
  24. build-function = "hatch_jupyter_builder.npm_builder"
  25. ensured-targets = [
  26. "test_hyphens/labextension/package.json",
  27. ]
  28. [tool.hatch.build.hooks.jupyter-builder.editable-build-kwargs]
  29. build_dir = "test_hyphens/labextension"
  30. build_cmd = "build:labextension"
  31. npm = [
  32. "jlpm",
  33. ]
  34. [tool.hatch.build.hooks.jupyter-builder.build-kwargs]
  35. build_cmd = "build:labextension"
  36. npm = [
  37. "jlpm",
  38. ]
  39. [tool.tbump]
  40. field = [
  41. { name = "channel", default = "" },
  42. { name = "release", default = "" },
  43. ]
  44. [tool.tbump.version]
  45. current = "3.0.2"
  46. regex = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)((?P<channel>a|b|rc|.dev)(?P<release>\\d+))?"
  47. [tool.tbump.git]
  48. message_template = "Bump to {new_version}"
  49. tag_template = "v{new_version}"
  50. [[tool.tbump.file]]
  51. src = "pyproject.toml"
  52. version_template = "version = \"{major}.{minor}.{patch}{channel}{release}\""
  53. [[tool.tbump.file]]
  54. src = "package.json"
  55. version_template = "\"version\": \"{major}.{minor}.{patch}{channel}{release}\""