pyproject.toml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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 :: 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.8"
  26. dependencies = [
  27. "urllib3>=1.25",
  28. ]
  29. dynamic = ["version"]
  30. [project.urls]
  31. Homepage = "https://www.dulwich.io/"
  32. Repository = "https://www.dulwich.io/code/"
  33. GitHub = "https://github.com/dulwich/dulwich"
  34. "Bug Tracker" = "https://github.com/dulwich/dulwich/issues"
  35. [project.optional-dependencies]
  36. fastimport = ["fastimport"]
  37. https = ["urllib3>=1.24.1"]
  38. pgp = ["gpg"]
  39. paramiko = ["paramiko"]
  40. dev = [
  41. "ruff==0.5.4"
  42. ]
  43. [project.scripts]
  44. dulwich = "dulwich.cli:main"
  45. [tool.mypy]
  46. ignore_missing_imports = true
  47. [tool.setuptools]
  48. packages = [
  49. "dulwich",
  50. "dulwich.cloud",
  51. "dulwich.contrib",
  52. "dulwich.tests",
  53. ]
  54. include-package-data = true
  55. zip-safe = false
  56. script-files = [
  57. "bin/dul-receive-pack",
  58. "bin/dul-upload-pack",
  59. ]
  60. license-files = ["COPYING"]
  61. [tool.setuptools.dynamic]
  62. version = {attr = "dulwich.__version__"}
  63. [tool.ruff.lint]
  64. select = [
  65. "ANN",
  66. "D",
  67. "E",
  68. "F",
  69. "I",
  70. "PIE",
  71. "UP",
  72. "RSE",
  73. "RUF",
  74. ]
  75. ignore = [
  76. "ANN001",
  77. "ANN002",
  78. "ANN003",
  79. "ANN101", # missing-type-self
  80. "ANN102",
  81. "ANN201",
  82. "ANN202",
  83. "ANN204",
  84. "ANN205",
  85. "ANN206",
  86. "D100",
  87. "D101",
  88. "D102",
  89. "D103",
  90. "D104",
  91. "D105",
  92. "D107",
  93. "D204",
  94. "D205",
  95. "D417",
  96. "E501", # line too long
  97. "E741", # ambiguous variable name
  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. [tool.cibuildwheel.macos]
  108. archs = ["auto", "universal2", "x86_64", "arm64"]
  109. before-all = "rustup target add x86_64-apple-darwin aarch64-apple-darwin"
  110. skip = "cp38-macosx_arm64 cp38-macosx_universal2 cp39-macosx_x86_64 cp39-macosx_universal2 cp310-macosx_x86_64 cp310-macosx_universal2 cp311-macosx_x86_64 cp311-macosx_universal2 cp311-macosx_universal2 cp312-macosx_x86_64 cp312-macosx_universal2"