A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

75 wiersze
2.2 KiB

  1. [project]
  2. name = "earwigbot"
  3. version = "0.4.dev0"
  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. ignore = ["F403"]
  65. [tool.ruff.lint.isort]
  66. known-first-party = ["conftest"]