pyproject.toml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. 'typing_extensions >=4.0 ; python_version < "3.10"',
  28. ]
  29. dynamic = ["version"]
  30. license-files = ["COPYING"]
  31. [project.urls]
  32. Homepage = "https://www.dulwich.io/"
  33. Repository = "https://www.dulwich.io/code/"
  34. GitHub = "https://github.com/dulwich/dulwich"
  35. "Bug Tracker" = "https://github.com/dulwich/dulwich/issues"
  36. [project.optional-dependencies]
  37. fastimport = ["fastimport"]
  38. https = ["urllib3>=1.24.1"]
  39. pgp = ["gpg"]
  40. paramiko = ["paramiko"]
  41. colordiff = ["rich"]
  42. dev = [
  43. "ruff==0.12.4",
  44. "mypy==1.17.0",
  45. "dissolve>=0.1.1"
  46. ]
  47. merge = ["merge3"]
  48. fuzzing = ["atheris"]
  49. [project.scripts]
  50. dulwich = "dulwich.cli:main"
  51. [tool.mypy]
  52. ignore_missing_imports = true
  53. [[tool.mypy.overrides]]
  54. module = "atheris"
  55. ignore_missing_imports = true
  56. [tool.setuptools]
  57. packages = [
  58. "dulwich",
  59. "dulwich.cloud",
  60. "dulwich.contrib",
  61. "dulwich.tests",
  62. ]
  63. include-package-data = true
  64. zip-safe = false
  65. script-files = [
  66. "bin/dul-receive-pack",
  67. "bin/dul-upload-pack",
  68. ]
  69. [tool.setuptools.dynamic]
  70. version = {attr = "dulwich.__version__"}
  71. [tool.ruff.lint]
  72. select = [
  73. "ANN",
  74. "D",
  75. "E",
  76. "F",
  77. "I",
  78. "PIE",
  79. "UP",
  80. "RSE",
  81. "RUF",
  82. ]
  83. ignore = [
  84. "ANN001",
  85. "ANN002",
  86. "ANN003",
  87. "ANN201",
  88. "ANN202",
  89. "ANN204",
  90. "ANN205",
  91. "ANN206",
  92. "D100",
  93. "D101",
  94. "D102",
  95. "D103",
  96. "D104",
  97. "D105",
  98. "D107",
  99. "D204",
  100. "D205",
  101. "D417",
  102. "E501", # line too long
  103. ]
  104. [tool.ruff.lint.pydocstyle]
  105. convention = "google"
  106. [tool.cibuildwheel]
  107. skip = "cp314-*"
  108. environment = {PATH="$HOME/.cargo/bin:$PATH"}
  109. before-build = "pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y && rustup show"
  110. [tool.cibuildwheel.linux]
  111. skip = "*-musllinux_* cp314-*"
  112. archs = ["auto", "aarch64"]
  113. before-build = "pip install -U setuptools-rust && yum -y install libatomic && curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y && rustup show"
  114. [tool.cibuildwheel.macos]
  115. archs = ["auto", "universal2", "x86_64", "arm64"]
  116. before-all = "rustup target add x86_64-apple-darwin aarch64-apple-darwin"
  117. skip = """\
  118. cp39-macosx_x86_64 cp39-macosx_universal2 \
  119. cp310-macosx_x86_64 cp310-macosx_universal2 \
  120. cp311-macosx_x86_64 cp311-macosx_universal2 \
  121. cp312-macosx_x86_64 cp312-macosx_universal2 \
  122. cp313-macosx_x86_64 cp313-macosx_universal2 \
  123. cp314-macosx_x86_64 cp314-macosx_universal2 \
  124. """