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 :: 3.14",
  19. "Programming Language :: Python :: Implementation :: CPython",
  20. "Programming Language :: Python :: Implementation :: PyPy",
  21. "Operating System :: POSIX",
  22. "Operating System :: Microsoft :: Windows",
  23. "Topic :: Software Development :: Version Control",
  24. ]
  25. requires-python = ">=3.9"
  26. dependencies = [
  27. "urllib3>=1.25",
  28. 'typing_extensions >=4.0 ; python_version < "3.10"',
  29. ]
  30. dynamic = ["version"]
  31. license-files = ["COPYING"]
  32. [project.urls]
  33. Homepage = "https://www.dulwich.io/"
  34. Repository = "https://www.dulwich.io/code/"
  35. GitHub = "https://github.com/dulwich/dulwich"
  36. "Bug Tracker" = "https://github.com/dulwich/dulwich/issues"
  37. [project.optional-dependencies]
  38. fastimport = ["fastimport"]
  39. https = ["urllib3>=1.24.1"]
  40. pgp = ["gpg"]
  41. paramiko = ["paramiko"]
  42. colordiff = ["rich"]
  43. dev = [
  44. "ruff==0.12.4",
  45. "mypy==1.17.0",
  46. "dissolve>=0.1.1"
  47. ]
  48. merge = ["merge3"]
  49. fuzzing = ["atheris"]
  50. [project.scripts]
  51. dulwich = "dulwich.cli:main"
  52. [tool.mypy]
  53. ignore_missing_imports = true
  54. [[tool.mypy.overrides]]
  55. module = "atheris"
  56. ignore_missing_imports = true
  57. [tool.setuptools]
  58. packages = [
  59. "dulwich",
  60. "dulwich.cloud",
  61. "dulwich.contrib",
  62. "dulwich.tests",
  63. ]
  64. include-package-data = true
  65. zip-safe = false
  66. script-files = [
  67. "bin/dul-receive-pack",
  68. "bin/dul-upload-pack",
  69. ]
  70. [tool.setuptools.dynamic]
  71. version = {attr = "dulwich.__version__"}
  72. [tool.ruff.lint]
  73. select = [
  74. "ANN",
  75. "D",
  76. "E",
  77. "F",
  78. "I",
  79. "PIE",
  80. "UP",
  81. "RSE",
  82. "RUF",
  83. ]
  84. ignore = [
  85. "ANN001",
  86. "ANN002",
  87. "ANN003",
  88. "ANN201",
  89. "ANN202",
  90. "ANN204",
  91. "ANN205",
  92. "ANN206",
  93. "D100",
  94. "D101",
  95. "D102",
  96. "D103",
  97. "D104",
  98. "D105",
  99. "D107",
  100. "D204",
  101. "D205",
  102. "D417",
  103. "E501", # line too long
  104. ]
  105. [tool.ruff.lint.pydocstyle]
  106. convention = "google"
  107. [tool.cibuildwheel]
  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_*"
  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. """