A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

74 行
2.2 KiB

  1. [project]
  2. name = "earwigbot"
  3. version = "0.4"
  4. authors = [
  5. {name = "Ben Kurtovic", email = "ben@benkurtovic.com"},
  6. ]
  7. description = "EarwigBot is a bot that edits Wikipedia and interacts over IRC"
  8. readme = "README.rst"
  9. requires-python = ">=3.11"
  10. dependencies = [
  11. "PyYAML >= 5.4.1", # Parsing config files
  12. "mwparserfromhell >= 0.6", # Parsing wikicode for manipulation
  13. "requests >= 2.25.1", # Wiki API requests
  14. "requests_oauthlib >= 1.3.0", # API authentication via OAuth
  15. ]
  16. keywords = ["earwig", "earwigbot", "irc", "wikipedia", "wiki", "mediawiki"]
  17. classifiers = [
  18. "Development Status :: 3 - Alpha",
  19. "Environment :: Console",
  20. "Intended Audience :: Developers",
  21. "License :: OSI Approved :: MIT License",
  22. "Natural Language :: English",
  23. "Operating System :: OS Independent",
  24. "Programming Language :: Python :: 3",
  25. "Topic :: Communications :: Chat :: Internet Relay Chat",
  26. "Topic :: Internet :: WWW/HTTP",
  27. ]
  28. [project.optional-dependencies]
  29. crypto = [
  30. "cryptography >= 3.4.7", # Storing bot passwords + keys in the config file
  31. ]
  32. sql = [
  33. "pymysql >= 1.1.0", # Interfacing with MediaWiki databases
  34. ]
  35. copyvios = [
  36. "beautifulsoup4 >= 4.9.3", # Parsing/scraping HTML
  37. "charset_normalizer >= 3.3.2", # Encoding detection for BeautifulSoup
  38. "lxml >= 4.6.3", # Faster parser for BeautifulSoup
  39. "nltk >= 3.6.1", # Parsing sentences to split article content
  40. "pdfminer >= 20191125", # Extracting text from PDF files
  41. "tldextract >= 3.1.0", # Getting domains for the multithreaded workers
  42. ]
  43. dev = [
  44. "pytest >= 8.3.1"
  45. ]
  46. [project.urls]
  47. Homepage = "https://github.com/earwig/earwigbot"
  48. Documentation = "https://pythonhosted.org/earwigbot/"
  49. Issues = "https://github.com/earwig/earwigbot/issues"
  50. Changelog = "https://github.com/earwig/earwigbot/blob/main/CHANGELOG"
  51. [project.scripts]
  52. earwigbot = "earwigbot.cli:main"
  53. [build-system]
  54. requires = ["setuptools>=61.0"]
  55. build-backend = "setuptools.build_meta"
  56. [tool.pyright]
  57. pythonVersion = "3.11"
  58. venvPath = "."
  59. venv = "venv"
  60. [tool.ruff]
  61. target-version = "py311"
  62. [tool.ruff.lint]
  63. select = ["E4", "E7", "E9", "F", "I", "UP"]
  64. [tool.ruff.lint.isort]
  65. known-first-party = ["conftest"]