forked from hhursev/recipe-scrapers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
126 lines (117 loc) · 4.05 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "recipe_scrapers"
description = "Python package, scraping recipes from all over the internet"
authors = [
{name = "Hristo Harsev", email = "[email protected]"},
{name = "James Addison", email = "[email protected]"},
]
maintainers = [
{name = "James Addison", email = "[email protected]"},
]
urls = {Homepage = "https://github.com/hhursev/recipe-scrapers/"}
keywords = ["python", "recipes", "scraper", "harvest", "recipe-scraper", "recipe-scrapers"]
license = {text = "MIT License"}
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries",
]
dynamic = ["version", "readme"]
requires-python = ">= 3.9"
dependencies = [
"beautifulsoup4 >= 4.12.3",
"extruct >= 0.17.0",
"isodate >= 0.6.1",
]
[project.optional-dependencies]
online = [
"requests>=2.31.0",
]
# Documentation dependencies
# Install these to build and serve the documentation:
# pip install -e ".[docs]"
#
# Common commands:
# mkdocs serve # Start local docs server at http://127.0.0.1:8000
# # The server auto-reloads when you change files in docs/
docs = [
"mkdocs >= 1.6.1", # Core documentation generator
"mkdocs-material >= 9.5.48", # Material theme for MkDocs
"mkdocstrings >= 0.27.0", # API documentation from docstrings
"mkdocstrings-python >= 1.12.2", # Python handler for mkdocstrings
"markdown-exec >= 1.10.0", # Execute code blocks in markdown
]
# Testing dependencies
# Install these to run tests and check coverage:
# pip install -e ".[test]"
# Common commands:
# python -m unittest # Run tests sequentially
# python -m unittest_parallel --level test # Run tests in parallel (speeed)
# coverage run -m unittest # Run tests with coverage
# coverage report # View coverage report in terminal
# coverage html # Generate HTML coverage report
tests = [
"coverage >= 7.6.9", # Code coverage measurement tool
"unittest-parallel >= 1.7.0", # Run unittest tests in parallel
]
linters = [
"pre-commit == 4.0.1", # latest from PyPI
"black == 24.10.0", # match what's in .pre-commit-config.yaml
"flake8 == 7.1.1", # match what's in .pre-commit-config.yaml
"pep8-naming == 0.14.1", # match what's in .pre-commit-config.yaml
"mypy == 1.14.0", # match what's in .pre-commit-config.yaml
"types-beautifulsoup4", # needed for mypy
"types-requests", # needed for mypy
]
dev = [
"recipe-scrapers[docs,tests,linters]",
]
all = [
"recipe_scrapers[online,docs,tests,linters,dev]"
]
[tool.setuptools.packages.find]
include = ["recipe_scrapers", "recipe_scrapers.*"]
exclude = ["tests", "tests.*"]
[tool.setuptools.dynamic]
readme = {file = "README.rst"}
version = {attr = "recipe_scrapers.__version__.__version__"}
[tool.setuptools.package-data]
recipe_scrapers = ["py.typed"]
[tool.coverage.run]
branch = true
source = ["recipe_scrapers"]
relative_files = true
[tool.coverage.report]
omit = [
"recipe_scrapers/__version__.py",
"recipe_scrapers/plugins/template.py",
"recipe_scrapers/settings/template.py"
]
exclude_lines = [
"raise NotImplementedError"
]
[tool.mypy]
[[tool.mypy.overrides]]
module = "recipe_scrapers.*"
disable_error_code = "union-attr"
[[tool.mypy.overrides]]
module = "._abstract"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "isodate"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "extruct"
ignore_missing_imports = true