pyproject.toml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. dev = [
  42. "ruff==0.11.13",
  43. "mypy==1.16.0",
  44. "dissolve>=0.1.1"
  45. ]
  46. merge = ["merge3"]
  47. [project.scripts]
  48. dulwich = "dulwich.cli:main"
  49. [tool.mypy]
  50. ignore_missing_imports = true
  51. [tool.setuptools]
  52. packages = [
  53. "dulwich",
  54. "dulwich.cloud",
  55. "dulwich.contrib",
  56. "dulwich.tests",
  57. ]
  58. include-package-data = true
  59. zip-safe = false
  60. script-files = [
  61. "bin/dul-receive-pack",
  62. "bin/dul-upload-pack",
  63. ]
  64. [tool.setuptools.dynamic]
  65. version = {attr = "dulwich.__version__"}
  66. [tool.ruff.lint]
  67. select = [
  68. "ANN",
  69. "D",
  70. "E",
  71. "F",
  72. "I",
  73. "PIE",
  74. "UP",
  75. "RSE",
  76. "RUF",
  77. ]
  78. ignore = [
  79. "ANN001",
  80. "ANN002",
  81. "ANN003",
  82. "ANN201",
  83. "ANN202",
  84. "ANN204",
  85. "ANN205",
  86. "ANN206",
  87. "D100",
  88. "D101",
  89. "D102",
  90. "D103",
  91. "D104",
  92. "D105",
  93. "D107",
  94. "D204",
  95. "D205",
  96. "D417",
  97. "E501", # line too long
  98. ]
  99. [tool.ruff.lint.pydocstyle]
  100. convention = "google"
  101. [tool.cibuildwheel]
  102. environment = {PATH="$HOME/.cargo/bin:$PATH"}
  103. before-build = "pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y && rustup show"
  104. [tool.cibuildwheel.linux]
  105. skip = "*-musllinux_*"
  106. archs = ["auto", "aarch64"]
  107. before-build = "pip install -U setuptools-rust && yum -y install libatomic && curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y && rustup show"
  108. [tool.cibuildwheel.macos]
  109. archs = ["auto", "universal2", "x86_64", "arm64"]
  110. before-all = "rustup target add x86_64-apple-darwin aarch64-apple-darwin"
  111. skip = """\
  112. cp39-macosx_x86_64 cp39-macosx_universal2 \
  113. cp310-macosx_x86_64 cp310-macosx_universal2 \
  114. cp311-macosx_x86_64 cp311-macosx_universal2 \
  115. cp312-macosx_x86_64 cp312-macosx_universal2 \
  116. cp313-macosx_x86_64 cp313-macosx_universal2 \
  117. """