2
0

pyproject.toml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. [build-system]
  2. requires = ["setuptools>=77.0.0"]
  3. build-backend = "setuptools.build_meta"
  4. [project]
  5. name = "dulwich"
  6. description = "Python Git Library"
  7. readme = "README.rst"
  8. authors = [{name = "Jelmer Vernooij", email = "jelmer@jelmer.uk"}]
  9. license = "Apache-2.0 OR GPL-2.0-or-later"
  10. keywords = ["vcs", "git"]
  11. classifiers = [
  12. "Development Status :: 4 - Beta",
  13. "Programming Language :: Python :: 3.9",
  14. "Programming Language :: Python :: 3.10",
  15. "Programming Language :: Python :: 3.11",
  16. "Programming Language :: Python :: 3.12",
  17. "Programming Language :: Python :: 3.13",
  18. "Programming Language :: Python :: Implementation :: CPython",
  19. "Programming Language :: Python :: Implementation :: PyPy",
  20. "Operating System :: POSIX",
  21. "Operating System :: Microsoft :: Windows",
  22. "Topic :: Software Development :: Version Control",
  23. ]
  24. requires-python = ">=3.9"
  25. dependencies = [
  26. "urllib3>=1.25",
  27. ]
  28. dynamic = ["version"]
  29. license-files = ["COPYING"]
  30. [project.urls]
  31. Homepage = "https://www.dulwich.io/"
  32. Repository = "https://www.dulwich.io/code/"
  33. GitHub = "https://github.com/dulwich/dulwich"
  34. "Bug Tracker" = "https://github.com/dulwich/dulwich/issues"
  35. [project.optional-dependencies]
  36. fastimport = ["fastimport"]
  37. https = ["urllib3>=1.24.1"]
  38. pgp = ["gpg"]
  39. paramiko = ["paramiko"]
  40. dev = [
  41. "ruff==0.11.11",
  42. "mypy==1.15.0",
  43. "dissolve"
  44. ]
  45. merge = ["merge3"]
  46. [project.scripts]
  47. dulwich = "dulwich.cli:main"
  48. [tool.mypy]
  49. ignore_missing_imports = true
  50. [tool.setuptools]
  51. packages = [
  52. "dulwich",
  53. "dulwich.cloud",
  54. "dulwich.contrib",
  55. "dulwich.tests",
  56. ]
  57. include-package-data = true
  58. zip-safe = false
  59. script-files = [
  60. "bin/dul-receive-pack",
  61. "bin/dul-upload-pack",
  62. ]
  63. [tool.setuptools.dynamic]
  64. version = {attr = "dulwich.__version__"}
  65. [tool.ruff.lint]
  66. select = [
  67. "ANN",
  68. "D",
  69. "E",
  70. "F",
  71. "I",
  72. "PIE",
  73. "UP",
  74. "RSE",
  75. "RUF",
  76. ]
  77. ignore = [
  78. "ANN001",
  79. "ANN002",
  80. "ANN003",
  81. "ANN201",
  82. "ANN202",
  83. "ANN204",
  84. "ANN205",
  85. "ANN206",
  86. "D100",
  87. "D101",
  88. "D102",
  89. "D103",
  90. "D104",
  91. "D105",
  92. "D107",
  93. "D204",
  94. "D205",
  95. "D417",
  96. "E501", # line too long
  97. ]
  98. [tool.ruff.lint.pydocstyle]
  99. convention = "google"
  100. [tool.cibuildwheel]
  101. environment = {PATH="$HOME/.cargo/bin:$PATH"}
  102. before-build = "pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y && rustup show"
  103. [tool.cibuildwheel.linux]
  104. skip = "*-musllinux_*"
  105. archs = ["auto", "aarch64"]
  106. before-build = "pip install -U setuptools-rust && yum -y install libatomic && curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y && rustup show"
  107. [tool.cibuildwheel.macos]
  108. archs = ["auto", "universal2", "x86_64", "arm64"]
  109. before-all = "rustup target add x86_64-apple-darwin aarch64-apple-darwin"
  110. skip = """\
  111. cp39-macosx_x86_64 cp39-macosx_universal2 \
  112. cp310-macosx_x86_64 cp310-macosx_universal2 \
  113. cp311-macosx_x86_64 cp311-macosx_universal2 \
  114. cp312-macosx_x86_64 cp312-macosx_universal2 \
  115. cp313-macosx_x86_64 cp313-macosx_universal2 \
  116. """