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