pyproject.toml 2.8 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. 'setuptools ; python_version >= "3.12"',
  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. [project.scripts]
  42. dulwich = "dulwich.cli:main"
  43. [tool.mypy]
  44. ignore_missing_imports = true
  45. [tool.setuptools]
  46. packages = [
  47. "dulwich",
  48. "dulwich.cloud",
  49. "dulwich.contrib",
  50. "dulwich.tests",
  51. ]
  52. include-package-data = true
  53. zip-safe = false
  54. script-files = [
  55. "bin/dul-receive-pack",
  56. "bin/dul-upload-pack",
  57. ]
  58. license-files = ["COPYING"]
  59. [tool.setuptools.dynamic]
  60. version = {attr = "dulwich.__version__"}
  61. [tool.ruff.lint]
  62. select = [
  63. "ANN",
  64. "D",
  65. "E",
  66. "F",
  67. "I",
  68. "PIE",
  69. "UP",
  70. "RSE",
  71. "RUF",
  72. ]
  73. ignore = [
  74. "ANN001",
  75. "ANN002",
  76. "ANN003",
  77. "ANN101", # missing-type-self
  78. "ANN102",
  79. "ANN201",
  80. "ANN202",
  81. "ANN204",
  82. "ANN205",
  83. "ANN206",
  84. "D100",
  85. "D101",
  86. "D102",
  87. "D103",
  88. "D104",
  89. "D105",
  90. "D107",
  91. "D204",
  92. "D205",
  93. "D417",
  94. "E501", # line too long
  95. "E741", # ambiguous variable name
  96. ]
  97. [tool.ruff]
  98. target-version = "py37"
  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.overrides]]
  108. select = "*-macosx_arm64"
  109. before-build = "pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y && rustup target add x86_64-apple-darwin"