2
0

pyproject.toml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. [build-system]
  2. requires = ["setuptools>=61.2", "setuptools-rust"]
  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.8",
  15. "Programming Language :: Python :: 3.9",
  16. "Programming Language :: Python :: 3.10",
  17. "Programming Language :: Python :: 3.11",
  18. "Programming Language :: Python :: 3.12",
  19. "Programming Language :: Python :: 3.13",
  20. "Programming Language :: Python :: Implementation :: CPython",
  21. "Programming Language :: Python :: Implementation :: PyPy",
  22. "Operating System :: POSIX",
  23. "Operating System :: Microsoft :: Windows",
  24. "Topic :: Software Development :: Version Control",
  25. ]
  26. requires-python = ">=3.8"
  27. dependencies = [
  28. "urllib3>=1.25",
  29. ]
  30. dynamic = ["version"]
  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.6.9",
  43. "mypy==1.12.0"
  44. ]
  45. [project.scripts]
  46. dulwich = "dulwich.cli:main"
  47. [tool.mypy]
  48. ignore_missing_imports = true
  49. [tool.setuptools]
  50. packages = [
  51. "dulwich",
  52. "dulwich.cloud",
  53. "dulwich.contrib",
  54. "dulwich.tests",
  55. ]
  56. include-package-data = true
  57. zip-safe = false
  58. script-files = [
  59. "bin/dul-receive-pack",
  60. "bin/dul-upload-pack",
  61. ]
  62. license-files = ["COPYING"]
  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. "ANN101", # missing-type-self
  82. "ANN102",
  83. "ANN201",
  84. "ANN202",
  85. "ANN204",
  86. "ANN205",
  87. "ANN206",
  88. "D100",
  89. "D101",
  90. "D102",
  91. "D103",
  92. "D104",
  93. "D105",
  94. "D107",
  95. "D204",
  96. "D205",
  97. "D417",
  98. "E501", # line too long
  99. "E741", # ambiguous variable name
  100. ]
  101. [tool.ruff.lint.pydocstyle]
  102. convention = "google"
  103. [tool.cibuildwheel]
  104. environment = {PATH="$HOME/.cargo/bin:$PATH"}
  105. before-build = "pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y && rustup show"
  106. [tool.cibuildwheel.linux]
  107. skip = "*-musllinux_*"
  108. archs = ["auto", "aarch64"]
  109. [tool.cibuildwheel.macos]
  110. archs = ["auto", "universal2", "x86_64", "arm64"]
  111. before-all = "rustup target add x86_64-apple-darwin aarch64-apple-darwin"