2
0

pyproject.toml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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.7",
  15. "Programming Language :: Python :: 3.8",
  16. "Programming Language :: Python :: 3.9",
  17. "Programming Language :: Python :: 3.10",
  18. "Programming Language :: Python :: 3.11",
  19. "Programming Language :: Python :: 3.12",
  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.7"
  27. dependencies = [
  28. "urllib3>=1.25",
  29. 'typing_extensions;python_version<="3.7"',
  30. 'setuptools ; python_version >= "3.12"',
  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. [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.tests",
  52. "dulwich.tests.compat",
  53. "dulwich.contrib",
  54. ]
  55. include-package-data = true
  56. zip-safe = false
  57. script-files = [
  58. "bin/dul-receive-pack",
  59. "bin/dul-upload-pack",
  60. ]
  61. license-files = ["COPYING"]
  62. [tool.setuptools.dynamic]
  63. version = {attr = "dulwich.__version__"}
  64. [tool.ruff]
  65. select = [
  66. "ANN",
  67. "D",
  68. "E",
  69. "F",
  70. "I",
  71. "PIE",
  72. "UP",
  73. "RSE",
  74. "RUF",
  75. ]
  76. ignore = [
  77. "ANN001",
  78. "ANN002",
  79. "ANN003",
  80. "ANN101", # missing-type-self
  81. "ANN102",
  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. "E741", # ambiguous variable name
  99. ]
  100. target-version = "py37"
  101. [tool.ruff.pydocstyle]
  102. convention = "google"