pyproject.toml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. [build-system]
  2. requires = ["setuptools>=61.2"]
  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 = {text = "Apachev2 or later or GPLv2"}
  10. keywords = ["vcs", "git"]
  11. classifiers = [
  12. "Development Status :: 4 - Beta",
  13. "License :: OSI Approved :: Apache Software License",
  14. "Programming Language :: Python :: 3.9",
  15. "Programming Language :: Python :: 3.10",
  16. "Programming Language :: Python :: 3.11",
  17. "Programming Language :: Python :: 3.12",
  18. "Programming Language :: Python :: 3.13",
  19. "Programming Language :: Python :: 3.13",
  20. "Programming Language :: Python :: 3.12",
  21. "Programming Language :: Python :: 3.11",
  22. "Programming Language :: Python :: 3.10",
  23. "Programming Language :: Python :: 3.9",
  24. "Operating System :: POSIX",
  25. "Operating System :: Microsoft :: Windows",
  26. "Topic :: Software Development :: Version Control",
  27. ]
  28. requires-python = ">=3.9"
  29. dependencies = [
  30. "urllib3>=1.25",
  31. ]
  32. dynamic = ["version"]
  33. [project.urls]
  34. Homepage = "https://www.dulwich.io/"
  35. Repository = "https://www.dulwich.io/code/"
  36. GitHub = "https://github.com/dulwich/dulwich"
  37. "Bug Tracker" = "https://github.com/dulwich/dulwich/issues"
  38. [project.optional-dependencies]
  39. fastimport = ["fastimport"]
  40. https = ["urllib3>=1.24.1"]
  41. pgp = ["gpg"]
  42. paramiko = ["paramiko"]
  43. dev = [
  44. "ruff==0.7.3",
  45. "mypy==1.13.0"
  46. ]
  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. license-files = ["COPYING"]
  65. [tool.setuptools.dynamic]
  66. version = {attr = "dulwich.__version__"}
  67. [tool.ruff.lint]
  68. select = [
  69. "ANN",
  70. "D",
  71. "E",
  72. "F",
  73. "I",
  74. "PIE",
  75. "UP",
  76. "RSE",
  77. "RUF",
  78. ]
  79. ignore = [
  80. "ANN001",
  81. "ANN002",
  82. "ANN003",
  83. "ANN101", # missing-type-self
  84. "ANN102",
  85. "ANN201",
  86. "ANN202",
  87. "ANN204",
  88. "ANN205",
  89. "ANN206",
  90. "D100",
  91. "D101",
  92. "D102",
  93. "D103",
  94. "D104",
  95. "D105",
  96. "D107",
  97. "D204",
  98. "D205",
  99. "D417",
  100. "E501", # line too long
  101. "E741", # ambiguous variable name
  102. ]
  103. [tool.ruff.lint.pydocstyle]
  104. convention = "google"
  105. [tool.cibuildwheel]
  106. environment = {PATH="$HOME/.cargo/bin:$PATH"}
  107. before-build = "pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y && rustup show"
  108. [tool.cibuildwheel.linux]
  109. skip = "*-musllinux_*"
  110. archs = ["auto", "aarch64"]
  111. [tool.cibuildwheel.macos]
  112. archs = ["auto", "universal2", "x86_64", "arm64"]
  113. before-all = "rustup target add x86_64-apple-darwin aarch64-apple-darwin"
  114. skip = """\
  115. cp39-macosx_x86_64 cp39-macosx_universal2 \
  116. cp310-macosx_x86_64 cp310-macosx_universal2 \
  117. cp311-macosx_x86_64 cp311-macosx_universal2 \
  118. cp312-macosx_x86_64 cp312-macosx_universal2 \
  119. cp313-macosx_x86_64 cp313-macosx_universal2 \
  120. """